Comparing version 1.1.0 to 1.1.1
@@ -83,4 +83,22 @@ interface HashOptions { | ||
declare function diff(obj1: any, obj2: any, opts?: HashOptions): any[]; | ||
declare function diff(obj1: any, obj2: any, opts?: HashOptions): DiffEntry[]; | ||
declare class DiffEntry { | ||
key: string; | ||
type: "changed" | "added" | "removed"; | ||
newValue: DiffHashedObject; | ||
oldValue?: DiffHashedObject; | ||
constructor(key: string, type: "changed" | "added" | "removed", newValue: DiffHashedObject, oldValue?: DiffHashedObject); | ||
toString(): string; | ||
toJSON(): string; | ||
} | ||
declare class DiffHashedObject { | ||
key: string; | ||
value: any; | ||
hash?: string; | ||
props?: Record<string, DiffHashedObject>; | ||
constructor(key: string, value: any, hash?: string, props?: Record<string, DiffHashedObject>); | ||
toString(): string; | ||
toJSON(): string; | ||
} | ||
export { diff, hash, isEqual, murmurHash, objectHash, sha256, sha256base64 }; |
{ | ||
"name": "ohash", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Super fast hashing library based on murmurhash3 written in Vanilla JS", | ||
@@ -5,0 +5,0 @@ "repository": "unjs/ohash", |
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
68272
2274