Comparing version 1.5.2 to 1.6.0-beta.1
{ | ||
"name": "ipfs-log", | ||
"version": "1.5.2", | ||
"version": "1.6.0-beta.1", | ||
"description": "Append-only log for IPFS", | ||
@@ -26,6 +26,5 @@ "main": "src/log.js", | ||
"idb-plus-blob-store": "^1.1.2", | ||
"ipfs": "^0.16.0", | ||
"ipfs-daemon": "0.0.3", | ||
"ipfs": "^0.18.0", | ||
"ipfs-merkle-dag": "^0.6.0", | ||
"ipfs-test-apis": "0.0.1", | ||
"ipfs-test-apis": "0.1.0-beta.2", | ||
"json-loader": "^0.5.4", | ||
@@ -32,0 +31,0 @@ "libp2p-ipfs-browser": "^0.12.0", |
@@ -37,3 +37,3 @@ 'use strict' | ||
return ipfs.object.put(data) | ||
.then((res) => res.toJSON().Hash) | ||
.then((res) => res.toJSON().multihash) | ||
} | ||
@@ -50,3 +50,3 @@ | ||
.then((obj) => { | ||
const data = JSON.parse(obj.toJSON().Data) | ||
const data = JSON.parse(obj.toJSON().data) | ||
const entry = { | ||
@@ -53,0 +53,0 @@ hash: hash, |
@@ -112,3 +112,3 @@ 'use strict' | ||
return ipfs.object.put(data) | ||
.then((res) => res.toJSON().Hash) | ||
.then((res) => res.toJSON().multihash) | ||
} | ||
@@ -122,3 +122,3 @@ | ||
return ipfs.object.get(hash, { enc: 'base58' }) | ||
.then((res) => logData = JSON.parse(res.toJSON().Data)) | ||
.then((res) => logData = JSON.parse(res.toJSON().data)) | ||
.then((res) => { | ||
@@ -125,0 +125,0 @@ if (!logData.items) throw new Error("Not a Log instance") |
@@ -117,3 +117,3 @@ 'use strict' | ||
const res = await(ipfs.object.get(hash, { enc: 'base58' })) | ||
const result = JSON.parse(res.toJSON().Data) | ||
const result = JSON.parse(res.toJSON().data) | ||
assert.equal(result.id, expectedData.id) | ||
@@ -120,0 +120,0 @@ assert.equal(result.items.length, expectedData.items.length) |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 10 instances in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
390275
19
316
2
10