This repository was archived by the owner on Mar 10, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 15 files changed +34
-24
lines changed Expand file tree Collapse file tree 15 files changed +34
-24
lines changed Original file line number Diff line number Diff line change 81
81
"ky" : " ^0.15.0" ,
82
82
"ky-universal" : " ^0.3.0" ,
83
83
"lru-cache" : " ^5.1.1" ,
84
- "merge-options" : " ^1.0.1 " ,
84
+ "merge-options" : " github:achingbrain/merge-options#add-ignore-undefined-config-option " ,
85
85
"multiaddr" : " ^6.0.6" ,
86
86
"multibase" : " ~0.6.0" ,
87
87
"multicodec" : " ~0.5.1" ,
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ module.exports = configure(({ ky }) => {
31
31
if ( options . preload !== null ) searchParams . set ( 'preload' , options . preload )
32
32
33
33
const res = await ky . post ( 'add' , {
34
- timeout : options . timeout || false ,
34
+ timeout : options . timeout ,
35
35
signal : options . signal ,
36
36
headers : options . headers ,
37
37
searchParams,
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ module.exports = configure(({ ky }) => {
24
24
} )
25
25
26
26
const res = await ky . post ( 'block/rm' , {
27
- timeout : options . timeout || false ,
27
+ timeout : options . timeout ,
28
28
signal : options . signal ,
29
29
headers : options . headers ,
30
30
searchParams
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ module.exports = configure(({ ky }) => {
21
21
if ( options . length ) searchParams . set ( 'length' , options . length )
22
22
23
23
const res = await ky . get ( 'cat' , {
24
- timeout : options . timeout || false ,
24
+ timeout : options . timeout ,
25
25
signal : options . signal ,
26
26
headers : options . headers ,
27
27
searchParams
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ module.exports = configure(({ ky }) => {
8
8
options = options || { }
9
9
10
10
const res = await ky . post ( 'config/profile/apply' , {
11
- timeout : options . timeout || false ,
11
+ timeout : options . timeout ,
12
12
signal : options . signal ,
13
13
headers : options . headers ,
14
14
searchParams : {
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ module.exports = configure(({ ky }) => {
9
9
options = options || { }
10
10
11
11
const res = await ky . get ( 'config/profile/list' , {
12
- timeout : options . timeout || false ,
12
+ timeout : options . timeout ,
13
13
signal : options . signal ,
14
14
headers : options . headers
15
15
} )
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ module.exports = configure(({ ky }) => {
37
37
}
38
38
39
39
const res = await ky . get ( 'get' , {
40
- timeout : options . timeout || false ,
40
+ timeout : options . timeout ,
41
41
signal : options . signal ,
42
42
headers : options . headers ,
43
43
searchParams
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ module.exports = configure(({ ky }) => {
32
32
}
33
33
34
34
const res = await ky . get ( 'ls' , {
35
- timeout : options . timeout || false ,
35
+ timeout : options . timeout ,
36
36
signal : options . signal ,
37
37
headers : options . headers ,
38
38
searchParams
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ module.exports = configure(({ ky }) => {
10
10
options = options || { }
11
11
12
12
const res = await ky . get ( 'refs/local' , {
13
- timeout : options . timeout || false ,
13
+ timeout : options . timeout ,
14
14
signal : options . signal ,
15
15
headers : options . headers
16
16
} )
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ module.exports = configure(({ ky }) => {
50
50
}
51
51
52
52
const res = await ky . get ( 'refs' , {
53
- timeout : options . timeout || false ,
53
+ timeout : options . timeout ,
54
54
signal : options . signal ,
55
55
headers : options . headers ,
56
56
searchParams
You can’t perform that action at this time.
0 commit comments