Comparing version 2.0.0 to 2.0.1
@@ -0,0 +0,0 @@ export = murmurhash; |
(function(){ | ||
var _global = this; | ||
const _global = this; | ||
@@ -20,3 +20,3 @@ const createBuffer = (val) => new TextEncoder().encode(val) | ||
if (typeof str === 'string') str = createBuffer(str); | ||
var | ||
let | ||
l = str.length, | ||
@@ -58,3 +58,3 @@ h = seed ^ l, | ||
/** | ||
/* | ||
* JS Implementation of MurmurHash3 (r136) (as of May 20, 2011) | ||
@@ -74,3 +74,3 @@ * | ||
var remainder, bytes, h1, h1b, c1, c1b, c2, c2b, k1, i; | ||
let remainder, bytes, h1, h1b, c1, c1b, c2, c2b, k1, i; | ||
@@ -126,3 +126,3 @@ remainder = key.length & 3; // key.length % 4 | ||
var murmur = MurmurHashV3; | ||
const murmur = MurmurHashV3; | ||
murmur.v2 = MurmurHashV2; | ||
@@ -134,3 +134,3 @@ murmur.v3 = MurmurHashV3; | ||
} else { | ||
var _previousRoot = _global.murmur; | ||
const _previousRoot = _global.murmur; | ||
murmur.noConflict = function() { | ||
@@ -137,0 +137,0 @@ _global.murmur = _previousRoot; |
{ | ||
"name" : "murmurhash", | ||
"version" : "2.0.0", | ||
"version" : "2.0.1", | ||
"description" : "A Node.js module for the optimized JavaScript implementation of the MurmurHash algorithms.", | ||
"author": { | ||
"authors": { | ||
"Gary Court": "gary.court@gmail.com", | ||
@@ -7,0 +7,0 @@ "Derek Perez": "derek@derekperez.com" |
@@ -0,0 +0,0 @@ # node-murmurhash |
@@ -0,0 +0,0 @@ const { v3 } = require("./murmurhash"); |
Sorry, the diff of this file is not supported yet
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
7
8692