Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit 8cc853f

Browse files
committed
point main to src while under dev
1 parent f991a9c commit 8cc853f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "ipfs-api",
33
"version": "6.0.3",
44
"description": "A client library for the IPFS API",
5-
"main": "lib/index.js",
5+
"main": "src/index.js",
66
"jsnext:main": "src/index.js",
77
"scripts": {
88
"test": "gulp test",
@@ -32,6 +32,7 @@
3232
"ndjson": "^1.4.3",
3333
"promisify-es6": "^1.0.1",
3434
"qs": "^6.2.1",
35+
"tar-stream": "^1.5.2",
3536
"wreck": "^9.0.0"
3637
},
3738
"engines": {

src/request-api.js

-3
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,14 @@ const Wreck = require('wreck')
44
const Qs = require('qs')
55
const ndjson = require('ndjson')
66
const getFilesStream = require('./get-files-stream')
7-
const Counter = require('passthrough-counter')
87

98
const isNode = require('detect-node')
109

1110
// -- Internal
1211

1312
function parseChunkedJson (res, cb) {
1413
const parsed = []
15-
const c = new Counter()
1614
res
17-
.pipe(c)
1815
.pipe(ndjson.parse())
1916
.on('data', (obj) => {
2017
parsed.push(obj)

0 commit comments

Comments
 (0)