@phensley/cldr-utils
Advanced tools
Comparing version 0.25.4 to 0.25.5
@@ -0,1 +1,2 @@ | ||
import { FNV } from './fnv'; | ||
/** | ||
@@ -10,8 +11,3 @@ * FNV-1A incremental checksum. | ||
Checksum.prototype.update = function (s) { | ||
var r = this.v; | ||
for (var i = 0; i < s.length; i++) { | ||
r ^= s.charCodeAt(i); | ||
r += ((r << 1) + (r << 4) + (r << 7) + (r << 8) + (r << 24)); | ||
} | ||
this.v = r >>> 0; | ||
this.v = FNV(this.v, s); | ||
return this; | ||
@@ -18,0 +14,0 @@ }; |
export * from './cache'; | ||
export * from './checksum'; | ||
export * from './fnv'; | ||
export * from './lru'; | ||
export * from './mphash'; | ||
export * from './search'; |
export * from './cache'; | ||
export * from './checksum'; | ||
export * from './fnv'; | ||
export * from './lru'; | ||
export * from './mphash'; | ||
export * from './search'; | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var fnv_1 = require("./fnv"); | ||
/** | ||
@@ -12,8 +13,3 @@ * FNV-1A incremental checksum. | ||
Checksum.prototype.update = function (s) { | ||
var r = this.v; | ||
for (var i = 0; i < s.length; i++) { | ||
r ^= s.charCodeAt(i); | ||
r += ((r << 1) + (r << 4) + (r << 7) + (r << 8) + (r << 24)); | ||
} | ||
this.v = r >>> 0; | ||
this.v = fnv_1.FNV(this.v, s); | ||
return this; | ||
@@ -20,0 +16,0 @@ }; |
export * from './cache'; | ||
export * from './checksum'; | ||
export * from './fnv'; | ||
export * from './lru'; | ||
export * from './mphash'; | ||
export * from './search'; |
@@ -6,4 +6,6 @@ "use strict"; | ||
tslib_1.__exportStar(require("./checksum"), exports); | ||
tslib_1.__exportStar(require("./fnv"), exports); | ||
tslib_1.__exportStar(require("./lru"), exports); | ||
tslib_1.__exportStar(require("./mphash"), exports); | ||
tslib_1.__exportStar(require("./search"), exports); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@phensley/cldr-utils", | ||
"version": "0.25.4", | ||
"version": "0.25.5", | ||
"description": "Utilities for cldr-engine packages", | ||
@@ -65,3 +65,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "52cf835e9a4ddc35c4dc7eeeb9e9dc5cb57c5158" | ||
"gitHead": "4066c30580c5d4dffd9261c1a989aff283a899ea" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
41922
45
595