Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ipfs-log

Package Overview
Dependencies
Maintainers
1
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ipfs-log - npm Package Compare versions

Comparing version 1.5.2 to 1.6.0-beta.1

ipfs/blocks/CIQA2/CIQA2APQVX35HB63OGCHOSBIYKXFGKED7UVKIHV2S6F3DRQIDS4RJEQ.data

7

package.json
{
"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)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc