@bbn/bbn 1.0.152 → 1.0.154
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,7 +2,7 @@ import { simpleHash1 } from './simpleHash1.js';
|
|
|
2
2
|
import { simpleHash2 } from './simpleHash2.js';
|
|
3
3
|
var simpleHash = function (str) {
|
|
4
4
|
var part1 = simpleHash1(str).toString(16).padStart(8, '0');
|
|
5
|
-
var part2 = simpleHash2(str).
|
|
5
|
+
var part2 = simpleHash2(str).padStart(8, '0');
|
|
6
6
|
return part1 + part2;
|
|
7
7
|
};
|
|
8
8
|
export { simpleHash };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const simpleHash2: (str: string) =>
|
|
1
|
+
declare const simpleHash2: (str: string) => string;
|
|
2
2
|
export { simpleHash2 };
|
package/dist/fn.d.ts
CHANGED
|
@@ -224,7 +224,7 @@ declare const fn: {
|
|
|
224
224
|
shuffle: (array: any[]) => any[];
|
|
225
225
|
simpleHash: (str: any) => string;
|
|
226
226
|
simpleHash1: (str: string) => number;
|
|
227
|
-
simpleHash2: (str: string) =>
|
|
227
|
+
simpleHash2: (str: string) => string;
|
|
228
228
|
startChrono: (name: any) => void;
|
|
229
229
|
stopChrono: (name: any) => number;
|
|
230
230
|
string2ArrayBuffer: (str: string) => ArrayBuffer;
|