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

Commit df2a7e3

Browse files
committed
fix: use ignoreUndefined merge-options option
1 parent 7ac6b30 commit df2a7e3

File tree

15 files changed

+34
-24
lines changed

15 files changed

+34
-24
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": "^1.0.1",
84+
"merge-options": "github:achingbrain/merge-options#add-ignore-undefined-config-option",
8585
"multiaddr": "^6.0.6",
8686
"multibase": "~0.6.0",
8787
"multicodec": "~0.5.1",

src/add/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module.exports = configure(({ ky }) => {
3131
if (options.preload !== null) searchParams.set('preload', options.preload)
3232

3333
const res = await ky.post('add', {
34-
timeout: options.timeout || false,
34+
timeout: options.timeout,
3535
signal: options.signal,
3636
headers: options.headers,
3737
searchParams,

src/block/rm-async-iterator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module.exports = configure(({ ky }) => {
2424
})
2525

2626
const res = await ky.post('block/rm', {
27-
timeout: options.timeout || false,
27+
timeout: options.timeout,
2828
signal: options.signal,
2929
headers: options.headers,
3030
searchParams

src/cat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = configure(({ ky }) => {
2121
if (options.length) searchParams.set('length', options.length)
2222

2323
const res = await ky.get('cat', {
24-
timeout: options.timeout || false,
24+
timeout: options.timeout,
2525
signal: options.signal,
2626
headers: options.headers,
2727
searchParams

src/config/profiles/apply.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = configure(({ ky }) => {
88
options = options || {}
99

1010
const res = await ky.post('config/profile/apply', {
11-
timeout: options.timeout || false,
11+
timeout: options.timeout,
1212
signal: options.signal,
1313
headers: options.headers,
1414
searchParams: {

src/config/profiles/list.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = configure(({ ky }) => {
99
options = options || {}
1010

1111
const res = await ky.get('config/profile/list', {
12-
timeout: options.timeout || false,
12+
timeout: options.timeout,
1313
signal: options.signal,
1414
headers: options.headers
1515
})

src/files-regular/get.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module.exports = configure(({ ky }) => {
3737
}
3838

3939
const res = await ky.get('get', {
40-
timeout: options.timeout || false,
40+
timeout: options.timeout,
4141
signal: options.signal,
4242
headers: options.headers,
4343
searchParams

src/files-regular/ls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module.exports = configure(({ ky }) => {
3232
}
3333

3434
const res = await ky.get('ls', {
35-
timeout: options.timeout || false,
35+
timeout: options.timeout,
3636
signal: options.signal,
3737
headers: options.headers,
3838
searchParams

src/files-regular/refs-local.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = configure(({ ky }) => {
1010
options = options || {}
1111

1212
const res = await ky.get('refs/local', {
13-
timeout: options.timeout || false,
13+
timeout: options.timeout,
1414
signal: options.signal,
1515
headers: options.headers
1616
})

src/files-regular/refs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ module.exports = configure(({ ky }) => {
5050
}
5151

5252
const res = await ky.get('refs', {
53-
timeout: options.timeout || false,
53+
timeout: options.timeout,
5454
signal: options.signal,
5555
headers: options.headers,
5656
searchParams

0 commit comments

Comments
 (0)