File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 7
7
"lib" : " lib"
8
8
},
9
9
"dependencies" : {
10
- "@root/request" : " ^1.7.0 "
10
+ "@root/request" : " ^1.9.2 "
11
11
},
12
12
"devDependencies" : {},
13
13
"scripts" : {
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ module.exports = {
16
16
console . log ( `Requesting ${ path } with params: ` , params )
17
17
18
18
return ( await request ( {
19
- uri : `${ this . endpoint + path } ${ Object . keys ( params ) . length > 0 ? `?${ new URLSearchParams ( params ) . toString ( ) } ` : '' } ` ,
19
+ url : `${ this . endpoint + path } ${ Object . keys ( params ) . length > 0 ? `?${ new URLSearchParams ( params ) . toString ( ) } ` : '' } ` ,
20
20
json : true
21
21
} ) ) . body
22
22
} ,
@@ -28,7 +28,7 @@ module.exports = {
28
28
29
29
return ( await request ( {
30
30
method : 'POST' ,
31
- uri : this . endpoint + path ,
31
+ url : this . endpoint + path ,
32
32
body : body ,
33
33
json : true
34
34
} ) ) . body
You can’t perform that action at this time.
0 commit comments