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

Commit 08561d0

Browse files
committed
Merge remote-tracking branch 'origin/master' into add-listing-config-profiles
2 parents e11190b + aca704b commit 08561d0

File tree

5 files changed

+20
-11
lines changed

5 files changed

+20
-11
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
<a name="38.0.1"></a>
2+
## [38.0.1](https://github.com/ipfs/js-ipfs-http-client/compare/v38.0.0...v38.0.1) (2019-10-04)
3+
4+
5+
### Bug Fixes
6+
7+
* pull in preconfigured chai from interface tests ([6a7eb8a](https://github.com/ipfs/js-ipfs-http-client/commit/6a7eb8a))
8+
9+
10+
111
<a name="38.0.0"></a>
212
# [38.0.0](https://github.com/ipfs/js-ipfs-http-client/compare/v37.0.3...v38.0.0) (2019-09-25)
313

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ipfs-http-client",
3-
"version": "38.0.0",
3+
"version": "38.0.1",
44
"description": "A client library for the IPFS HTTP API",
55
"keywords": [
66
"ipfs"

src/add-from-fs/index.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
'use strict'
22

3-
const configure = require('../lib/configure')
43
const globSource = require('ipfs-utils/src/files/glob-source')
54

6-
module.exports = configure(({ ky }) => {
7-
const add = require('../add')({ ky })
5+
module.exports = (config) => {
6+
const add = require('../add')(config)
87
return (path, options) => add(globSource(path, options), options)
9-
})
8+
}

src/add-from-url.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
'use strict'
22

33
const kyDefault = require('ky-universal').default
4-
const configure = require('./lib/configure')
54
const toIterable = require('./lib/stream-to-iterable')
65

7-
module.exports = configure(({ ky }) => {
8-
const add = require('./add')({ ky })
6+
module.exports = (config) => {
7+
const add = require('./add')(config)
98

109
return (url, options) => (async function * () {
1110
options = options || {}
@@ -19,4 +18,4 @@ module.exports = configure(({ ky }) => {
1918

2019
yield * add(input, options)
2120
})()
22-
})
21+
}

src/pubsub/subscribe.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ const configure = require('../lib/configure')
99
const toIterable = require('../lib/stream-to-iterable')
1010
const SubscriptionTracker = require('./subscription-tracker')
1111

12-
module.exports = configure(({ ky }) => {
12+
module.exports = configure((config) => {
13+
const ky = config.ky
1314
const subsTracker = SubscriptionTracker.singleton()
14-
const publish = require('./publish')({ ky })
15+
const publish = require('./publish')(config)
1516

1617
return async (topic, handler, options) => {
1718
options = options || {}

0 commit comments

Comments
 (0)