@emotion/hash
Advanced tools
Comparing version 0.7.1 to 0.7.2
"use strict"; | ||
function murmurhash2_32_gc(str) { | ||
for (var k, l = str.length, h = l ^ l, i = 0; 4 <= l; ) | ||
(k = | ||
1540483477 * | ||
(65535 & | ||
(k = | ||
(255 & str.charCodeAt(i)) | | ||
((255 & str.charCodeAt(++i)) << 8) | | ||
((255 & str.charCodeAt(++i)) << 16) | | ||
((255 & str.charCodeAt(++i)) << 24))) + | ||
(((1540483477 * (k >>> 16)) & 65535) << 16)), | ||
(h = | ||
(1540483477 * (65535 & h) + | ||
(((1540483477 * (h >>> 16)) & 65535) << 16)) ^ | ||
(k = | ||
1540483477 * (65535 & (k ^= k >>> 24)) + | ||
(((1540483477 * (k >>> 16)) & 65535) << 16))), | ||
(l -= 4), | ||
++i; | ||
for (var k, l = str.length, h = l ^ l, i = 0; l >= 4; ) k = 1540483477 * (65535 & (k = 255 & str.charCodeAt(i) | (255 & str.charCodeAt(++i)) << 8 | (255 & str.charCodeAt(++i)) << 16 | (255 & str.charCodeAt(++i)) << 24)) + ((1540483477 * (k >>> 16) & 65535) << 16), | ||
h = 1540483477 * (65535 & h) + ((1540483477 * (h >>> 16) & 65535) << 16) ^ (k = 1540483477 * (65535 & (k ^= k >>> 24)) + ((1540483477 * (k >>> 16) & 65535) << 16)), | ||
l -= 4, ++i; | ||
switch (l) { | ||
case 3: | ||
h ^= (255 & str.charCodeAt(i + 2)) << 16; | ||
case 2: | ||
h ^= (255 & str.charCodeAt(i + 1)) << 8; | ||
case 1: | ||
h = | ||
1540483477 * (65535 & (h ^= 255 & str.charCodeAt(i))) + | ||
(((1540483477 * (h >>> 16)) & 65535) << 16); | ||
case 3: | ||
h ^= (255 & str.charCodeAt(i + 2)) << 16; | ||
case 2: | ||
h ^= (255 & str.charCodeAt(i + 1)) << 8; | ||
case 1: | ||
h = 1540483477 * (65535 & (h ^= 255 & str.charCodeAt(i))) + ((1540483477 * (h >>> 16) & 65535) << 16); | ||
} | ||
return ( | ||
(h = | ||
1540483477 * (65535 & (h ^= h >>> 13)) + | ||
(((1540483477 * (h >>> 16)) & 65535) << 16)), | ||
((h ^= h >>> 15) >>> 0).toString(36) | ||
); | ||
return h = 1540483477 * (65535 & (h ^= h >>> 13)) + ((1540483477 * (h >>> 16) & 65535) << 16), | ||
((h ^= h >>> 15) >>> 0).toString(36); | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: !0 }), | ||
(exports.default = murmurhash2_32_gc); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: !0 | ||
}), exports.default = murmurhash2_32_gc; |
{ | ||
"name": "@emotion/hash", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"description": "A MurmurHash2 implementation", | ||
@@ -20,2 +20,2 @@ "main": "dist/hash.cjs.js", | ||
} | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8015
11
192