@ipld/dag-json
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -21,3 +21,3 @@ import json from 'fast-json-stable-stringify' | ||
const encode = obj => { | ||
if (isCircular(obj)) { | ||
if (typeof obj === 'object' && isCircular(obj)) { | ||
throw new Error('Object contains circular references.') | ||
@@ -24,0 +24,0 @@ } |
{ | ||
"name": "@ipld/dag-json", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "JSON Directed Acrylic Graph for IPLD", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
6086