cyclical-object-hash
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -1,2 +0,1 @@ | ||
const jc = require('json-cycle') | ||
const stringify = require('fast-json-stable-stringify') | ||
@@ -17,3 +16,3 @@ const blake2b = require('blake2b') | ||
if (error.message.indexOf('circular') >= 0) { | ||
string = stringify(jc.decycle(object)) | ||
string = stringify(object, {cycles: true}) | ||
} else { | ||
@@ -20,0 +19,0 @@ throw error |
{ | ||
"name": "cyclical-object-hash", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Deterministically hash a cyclical object with blake2b", | ||
@@ -23,4 +23,3 @@ "main": "index.js", | ||
"blake2b": "2.1.3", | ||
"fast-json-stable-stringify": "2.0.0", | ||
"json-cycle": "1.3.0" | ||
"fast-json-stable-stringify": "2.0.0" | ||
}, | ||
@@ -27,0 +26,0 @@ "devDependencies": { |
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
2
6765
93
- Removedjson-cycle@1.3.0
- Removedjson-cycle@1.3.0(transitive)