diff --git a/package.json b/package.json index 7c35e4754..2236b624f 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "ipfs-api", "version": "6.0.3", "description": "A client library for the IPFS API", - "main": "lib/index.js", + "main": "src/index.js", "jsnext:main": "src/index.js", "scripts": { "test": "gulp test", @@ -32,6 +32,7 @@ "ndjson": "^1.4.3", "promisify-es6": "^1.0.1", "qs": "^6.2.1", + "tar-stream": "^1.5.2", "wreck": "^9.0.0" }, "engines": { diff --git a/src/request-api.js b/src/request-api.js index a8a48b944..f56907fcc 100644 --- a/src/request-api.js +++ b/src/request-api.js @@ -4,7 +4,6 @@ const Wreck = require('wreck') const Qs = require('qs') const ndjson = require('ndjson') const getFilesStream = require('./get-files-stream') -const Counter = require('passthrough-counter') const isNode = require('detect-node') @@ -12,9 +11,7 @@ const isNode = require('detect-node') function parseChunkedJson (res, cb) { const parsed = [] - const c = new Counter() res - .pipe(c) .pipe(ndjson.parse()) .on('data', (obj) => { parsed.push(obj)