diff --git a/examples/ipfs-101/1.js b/examples/ipfs-101/1.js index 5f60a0f500..a958b3c8aa 100644 --- a/examples/ipfs-101/1.js +++ b/examples/ipfs-101/1.js @@ -21,7 +21,7 @@ series([ console.log('\nAdded file:', result[0].path, result[0].hash) fileMultihash = result[0].hash - // cb() + cb() }), (cb) => node.files.cat(fileMultihash, (err, stream) => { if (err) { return cb(err) } diff --git a/examples/ipfs-101/package.json b/examples/ipfs-101/package.json new file mode 100644 index 0000000000..ab0435699b --- /dev/null +++ b/examples/ipfs-101/package.json @@ -0,0 +1,15 @@ +{ + "name": "ipfs-101", + "version": "0.0.0", + "description": "this package.json needs to exist because of new npm config https://github.com/ipfs/js-ipfs/issues/977#issuecomment-326741092", + "main": "1.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "David Dias ", + "license": "MIT", + "dependencies": { + "async": "^2.5.0", + "ipfs": "^0.25.4" + } +}