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

Commit

Permalink
refactor(dev): point main to src while under dev
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Aug 14, 2016
1 parent 940c997 commit 73078ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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": {
Expand Down
3 changes: 0 additions & 3 deletions src/request-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,14 @@ 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')

// -- Internal

function parseChunkedJson (res, cb) {
const parsed = []
const c = new Counter()
res
.pipe(c)
.pipe(ndjson.parse())
.on('data', (obj) => {
parsed.push(obj)
Expand Down

0 comments on commit 73078ea

Please sign in to comment.