Socket
Socket
Sign inDemoInstall

@emotion/hash

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@emotion/hash - npm Package Compare versions

Comparing version 0.7.1 to 0.7.2

CHANGELOG.md

52

dist/hash.cjs.prod.js
"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",

}
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc