@ipld/dag-cbor
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -18,3 +18,3 @@ import cbor from 'borc' | ||
function replaceCIDbyTAG (dagNode) { | ||
if (isCircular(dagNode)) { | ||
if (dagNode && typeof dagNode === 'object' && isCircular(dagNode)) { | ||
throw new Error('The object passed has circular references') | ||
@@ -115,3 +115,3 @@ } | ||
const serialized = cbor.encode(nodeTagged) | ||
return serialized | ||
return bytes.coerce(serialized) | ||
} | ||
@@ -118,0 +118,0 @@ |
{ | ||
"name": "@ipld/dag-cbor", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "JS implementation of dag-cbor", | ||
@@ -5,0 +5,0 @@ "main": "src/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
19051