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

Commit

Permalink
feat: Wrap with dir (#730)
Browse files Browse the repository at this point in the history
* feat: add awareness of wrapWithDirectory option to utils/send-files-stream

* chore: update interface-ipfs-core

* chore: update deps
  • Loading branch information
daviddias committed Apr 5, 2018
1 parent 994bdad commit 160860e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"is-stream": "^1.1.0",
"libp2p-crypto": "^0.12.1",
"lru-cache": "^4.1.2",
"multiaddr": "^3.1.0",
"multiaddr": "^4.0.0",
"multibase": "^0.4.0",
"multihashes": "~0.4.13",
"ndjson": "^1.5.0",
Expand All @@ -53,7 +53,7 @@
"pull-pushable": "^2.2.0",
"pump": "^3.0.0",
"qs": "^6.5.1",
"readable-stream": "^2.3.5",
"readable-stream": "^2.3.6",
"stream-http": "^2.8.1",
"stream-to-pull-stream": "^1.7.2",
"streamifier": "^0.1.1",
Expand All @@ -76,14 +76,14 @@
"eslint-plugin-react": "^7.7.0",
"go-ipfs-dep": "^0.4.14",
"gulp": "^3.9.1",
"hapi": "^17.2.3",
"interface-ipfs-core": "~0.58.0",
"hapi": "^17.3.1",
"interface-ipfs-core": "~0.60.1",
"ipfs": "~0.28.2",
"ipfsd-ctl": "~0.31.0",
"pre-commit": "^1.2.2",
"pull-stream": "^3.6.2",
"socket.io": "^2.0.4",
"socket.io-client": "^2.0.4",
"pull-stream": "^3.6.7",
"socket.io": "^2.1.0",
"socket.io-client": "^2.1.0",
"stream-equal": "^1.1.1"
},
"pre-commit": [
Expand Down
1 change: 1 addition & 0 deletions src/utils/send-files-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ module.exports = (send, path) => {
qs['cid-version'] = propOrProp(options, 'cid-version', 'cidVersion')
qs['raw-leaves'] = propOrProp(options, 'raw-leaves', 'rawLeaves')
qs['only-hash'] = propOrProp(options, 'only-hash', 'onlyHash')
qs['wrap-with-directory'] = propOrProp(options, 'wrap-with-directory', 'wrapWithDirectory')
qs.hash = propOrProp(options, 'hash', 'hashAlg')

const args = {
Expand Down

0 comments on commit 160860e

Please sign in to comment.