🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

ipfs-repo

Package Overview
Dependencies
Maintainers
1
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ipfs-repo - npm Package Compare versions

Comparing version

to
0.3.2

6

package.json
{
"name": "ipfs-repo",
"version": "0.3.0",
"version": "0.3.2",
"description": "IPFS Repo implementation",

@@ -13,3 +13,3 @@ "main": "src/index.js",

"type": "git",
"url": "https://github.com/diasdavid/js-ipfs-repo.git"
"url": "https://github.com/ipfs/js-ipfs-repo.git"
},

@@ -23,3 +23,3 @@ "keywords": [

],
"homepage": "https://github.com/ipfs/js-ipfs-record",
"homepage": "https://github.com/ipfs/js-ipfs-repo",
"devDependencies": {

@@ -26,0 +26,0 @@ "bl": "^1.0.0",

@@ -165,2 +165,3 @@ /* globals describe, before, after, it*/

const buf = new Buffer(base58.decode(baseFileHash))
repo.datastore.exists(buf, (err, exists) => {

@@ -173,2 +174,12 @@ expect(err).to.not.exist

it('check for non existent block', done => {
const buf = new Buffer('random buffer')
repo.datastore.exists(buf, (err, exists) => {
expect(err).to.not.exist
expect(exists).to.equal(false)
done()
})
})
it('remove a block', done => {

@@ -175,0 +186,0 @@ const buf = new Buffer(base58.decode(baseFileHash))