This repository was archived by the owner on Mar 10, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 14 files changed +14
-14
lines changed
Expand file tree Collapse file tree 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 }) => {
3131 if ( options . preload !== null ) searchParams . set ( 'preload' , options . preload )
3232
3333 const res = await ky . post ( 'add' , {
34- timeout : options . timeout ,
34+ timeout : options . timeout || false ,
3535 signal : options . signal ,
3636 headers : options . headers ,
3737 searchParams,
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ module.exports = configure(({ ky }) => {
2424 } )
2525
2626 const res = await ky . post ( 'block/rm' , {
27- timeout : options . timeout ,
27+ timeout : options . timeout || false ,
2828 signal : options . signal ,
2929 headers : options . headers ,
3030 searchParams
Original file line number Diff line number Diff 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 ,
24+ timeout : options . timeout || false ,
2525 signal : options . signal ,
2626 headers : options . headers ,
2727 searchParams
Original file line number Diff line number Diff 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 ,
11+ timeout : options . timeout || false ,
1212 signal : options . signal ,
1313 headers : options . headers ,
1414 searchParams : {
Original file line number Diff line number Diff 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 ,
12+ timeout : options . timeout || false ,
1313 signal : options . signal ,
1414 headers : options . headers
1515 } )
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ module.exports = configure(({ ky }) => {
3737 }
3838
3939 const res = await ky . get ( 'get' , {
40- timeout : options . timeout ,
40+ timeout : options . timeout || false ,
4141 signal : options . signal ,
4242 headers : options . headers ,
4343 searchParams
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ module.exports = configure(({ ky }) => {
3232 }
3333
3434 const res = await ky . get ( 'ls' , {
35- timeout : options . timeout ,
35+ timeout : options . timeout || false ,
3636 signal : options . signal ,
3737 headers : options . headers ,
3838 searchParams
Original file line number Diff line number Diff 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 ,
13+ timeout : options . timeout || false ,
1414 signal : options . signal ,
1515 headers : options . headers
1616 } )
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ module.exports = configure(({ ky }) => {
5050 }
5151
5252 const res = await ky . get ( 'refs' , {
53- timeout : options . timeout ,
53+ timeout : options . timeout || false ,
5454 signal : options . signal ,
5555 headers : options . headers ,
5656 searchParams
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ module.exports = create => config => {
2727 // https://github.com/sindresorhus/ky/pull/153
2828 ky : ky . extend ( {
2929 prefixUrl : config . apiAddr + config . apiPath ,
30- timeout : config . timeout || 60 * 1000 ,
30+ timeout : config . timeout || false ,
3131 headers : config . headers ,
3232 hooks : {
3333 afterResponse : [ errorHandler ]
You can’t perform that action at this time.
0 commit comments