We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
turbo-crc32
1 parent 89c048a commit f3ef163Copy full SHA for f3ef163
lib/util.js
@@ -1,6 +1,6 @@
1
'use strict';
2
3
-const crc = require('crc').crc32;
+const crc = require('turbo-crc32/crc32');
4
5
module.exports = {
6
@@ -32,6 +32,6 @@ module.exports = {
32
},
33
34
hash(sess) {
35
- return crc(JSON.stringify(sess));
+ return crc(JSON.stringify(sess)) >> 0; // eslint-disable-line no-bitwise
36
37
};
package.json
@@ -27,9 +27,9 @@
27
28
"license": "MIT",
29
"dependencies": {
30
- "crc": "^3.4.4",
31
"debug": "^3.1.0",
"is-type-of": "^1.0.0",
+ "turbo-crc32": "^1.0.1",
"uid-safe": "^2.1.3"
"engines": {
0 commit comments