@ipld/dag-json
Advanced tools
Comparing version 3.0.15 to 3.0.16
{ | ||
"name": "@ipld/dag-json", | ||
"version": "3.0.15", | ||
"version": "3.0.16", | ||
"description": "JSON Directed Acrylic Graph for IPLD", | ||
@@ -19,7 +19,5 @@ "directories": { | ||
"exports": { | ||
"import": { | ||
"require": "./cjs/index.js", | ||
"import": "./esm/index.js", | ||
"browser": "./esm/index.js" | ||
} | ||
"require": "./cjs/index.js", | ||
"import": "./esm/index.js", | ||
"browser": "./esm/index.js" | ||
}, | ||
@@ -26,0 +24,0 @@ "repository": { |
@@ -18,5 +18,5 @@ ## JSON Directed Acrylic Graph for IPLD | ||
/* CID instances are encoded as links */ | ||
y: [2, 3, new CID('QmaozNR7DZHQK1ZcU9p7QdrshMvXqWK6gpu5rmrkPdT3L4')], | ||
y: [2, 3, CID.from('QmaozNR7DZHQK1ZcU9p7QdrshMvXqWK6gpu5rmrkPdT3L4')], | ||
z: { | ||
a: new CID('QmaozNR7DZHQK1ZcU9p7QdrshMvXqWK6gpu5rmrkPdT3L4'), | ||
a: CID.from('QmaozNR7DZHQK1ZcU9p7QdrshMvXqWK6gpu5rmrkPdT3L4'), | ||
b: null, | ||
@@ -31,3 +31,3 @@ c: 'string' | ||
decoded.y[0] // 2 | ||
CID.isCID(decoded.z.a) // true | ||
CID.asCID(decoded.z.a) // cid instance | ||
``` | ||
@@ -34,0 +34,0 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
6938