object-code
Advanced tools
Comparing version 1.3.2 to 1.3.3
@@ -25,3 +25,3 @@ /** | ||
*/ | ||
export declare function hash(val: unknown, seen?: WeakSet<WeakKey>): number; | ||
export declare function hash(val: unknown, seen?: WeakSet<object>): number; | ||
//# sourceMappingURL=hash.d.ts.map |
{ | ||
"name": "object-code", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "A blazing fast hash code generator that supports every possible javascript value.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://tinylibs.js.org/packages/object-code", |
@@ -27,3 +27,3 @@ import { sortNumbers } from './util'; | ||
*/ | ||
export function hash(val: unknown, seen?: WeakSet<WeakKey>): number { | ||
export function hash(val: unknown, seen?: WeakSet<object>): number { | ||
let h = 5381; | ||
@@ -47,3 +47,3 @@ | ||
const key = keys[i]; | ||
const value = val[key as keyof typeof val] as WeakKey; | ||
const value = val[key as keyof typeof val] as object; | ||
@@ -50,0 +50,0 @@ h = (h * 33) ^ hash(key, seen); |
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
Sorry, the diff of this file is not supported yet
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
27507