This repository was archived by the owner on Mar 10, 2020. It is now read-only.
File tree 14 files changed +14
-14
lines changed
14 files changed +14
-14
lines changed 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 ,
34
+ timeout : options . timeout || false ,
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 ,
27
+ timeout : options . timeout || false ,
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 ,
24
+ timeout : options . timeout || false ,
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 ,
11
+ timeout : options . timeout || false ,
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 ,
12
+ timeout : options . timeout || false ,
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 ,
40
+ timeout : options . timeout || false ,
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 ,
35
+ timeout : options . timeout || false ,
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 ,
13
+ timeout : options . timeout || false ,
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 ,
53
+ timeout : options . timeout || false ,
54
54
signal : options . signal ,
55
55
headers : options . headers ,
56
56
searchParams
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ module.exports = create => config => {
27
27
// https://github.com/sindresorhus/ky/pull/153
28
28
ky : ky . extend ( {
29
29
prefixUrl : config . apiAddr + config . apiPath ,
30
- timeout : config . timeout || 60 * 1000 ,
30
+ timeout : config . timeout || false ,
31
31
headers : config . headers ,
32
32
hooks : {
33
33
afterResponse : [ errorHandler ]
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ module.exports = configure(({ ky }) => {
7
7
options = options || { }
8
8
9
9
const { Strings } = await ky . get ( 'pubsub/ls' , {
10
- timeout : options . timeout ,
10
+ timeout : options . timeout || false ,
11
11
signal : options . signal ,
12
12
headers : options . headers ,
13
13
searchParams : options . searchParams
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ module.exports = configure(({ ky }) => {
15
15
searchParams . set ( 'arg' , topic )
16
16
17
17
const { Strings } = await ky . get ( 'pubsub/peers' , {
18
- timeout : options . timeout ,
18
+ timeout : options . timeout || false ,
19
19
signal : options . signal ,
20
20
headers : options . headers ,
21
21
searchParams
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ module.exports = configure(({ ky }) => {
12
12
searchParams . set ( 'arg' , topic )
13
13
14
14
const res = await ky . post ( `pubsub/pub?${ searchParams } &arg=${ encodeBuffer ( data ) } ` , {
15
- timeout : options . timeout ,
15
+ timeout : options . timeout || false ,
16
16
signal : options . signal ,
17
17
headers : options . headers
18
18
} ) . text ( )
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ module.exports = configure((config) => {
38
38
39
39
try {
40
40
res = await ky . post ( 'pubsub/sub' , {
41
- timeout : options . timeout ,
41
+ timeout : options . timeout || false ,
42
42
signal : options . signal ,
43
43
headers : options . headers ,
44
44
searchParams
You can’t perform that action at this time.
0 commit comments