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

Commit af66a0a

Browse files
committed
chore: remove git url
1 parent 4955d33 commit af66a0a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"ky": "^0.15.0",
8282
"ky-universal": "^0.3.0",
8383
"lru-cache": "^5.1.1",
84-
"merge-options": "github:achingbrain/merge-options#add-ignore-undefined-config-option",
84+
"merge-options": "^2.0.0",
8585
"multiaddr": "^6.0.6",
8686
"multibase": "~0.6.0",
8787
"multicodec": "~0.5.1",

src/lib/configure.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const ky = require('ky-universal').default
55
const { isBrowser, isWebWorker } = require('ipfs-utils/src/env')
66
const { toUri } = require('./multiaddr')
77
const errorHandler = require('./error-handler')
8-
const mergeOptions = require('merge-options')
8+
const mergeOptions = require('merge-options').bind({ ignoreUndefined: true })
99

1010
// Set default configuration and call create function with them
1111
module.exports = create => config => {
@@ -72,6 +72,6 @@ function getDefaultApiAddr ({ protocol, host, port }) {
7272
// undefined values in the passed `options` object
7373
function wrap (fn, defaults) {
7474
return (input, options) => {
75-
return fn(input, mergeOptions.call({ ignoreUndefined: true }, (defaults, options)))
75+
return fn(input, mergeOptions(defaults, options))
7676
}
7777
}

0 commit comments

Comments
 (0)