This repository was archived by the owner on May 15, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +121
-155
lines changed Expand file tree Collapse file tree 4 files changed +121
-155
lines changed Original file line number Diff line number Diff line change 55
55
"dependencies" : {
56
56
"@google-cloud/storage" : " 1.1.1" ,
57
57
"adm-zip" : " 0.4.7" ,
58
- "ajv" : " 5.1.3 " ,
58
+ "ajv" : " 5.1.5 " ,
59
59
"body-parser" : " 1.17.2" ,
60
60
"cli-table2" : " 0.2.0" ,
61
61
"colors" : " 1.1.2" ,
62
62
"configstore" : " 3.1.0" ,
63
63
"express" : " 4.15.3" ,
64
64
"google-proto-files" : " 0.12.0" ,
65
65
"googleapis" : " 19.0.0" ,
66
- "got" : " 6.7.1 " ,
67
- "grpc" : " 1.3.2 " ,
66
+ "got" : " 7.0.0 " ,
67
+ "grpc" : " 1.3.8 " ,
68
68
"http-proxy" : " 1.16.2" ,
69
69
"lodash" : " 4.17.4" ,
70
70
"prompt" : " 1.0.0" ,
80
80
"devDependencies" : {
81
81
"intelli-espower-loader" : " 1.0.1" ,
82
82
"mocha" : " 3.4.2" ,
83
- "nyc" : " 10.3 .2" ,
84
- "power-assert" : " 1.4.2 " ,
83
+ "nyc" : " 11.0 .2" ,
84
+ "power-assert" : " 1.4.3 " ,
85
85
"proxyquire" : " 1.8.0" ,
86
86
"semistandard" : " 11.0.0" ,
87
87
"semistandard-format" : " 3.0.0" ,
88
- "sinon" : " 2.3.1 "
88
+ "sinon" : " 2.3.2 "
89
89
},
90
90
"repository" : {
91
91
"type" : " git" ,
Original file line number Diff line number Diff line change @@ -372,14 +372,11 @@ class Controller {
372
372
}
373
373
374
374
return got . post ( `http://${ this . config . host } :${ this . config . supervisorPort } /api/debug` , {
375
- body : JSON . stringify ( {
375
+ body : {
376
376
type : type ,
377
377
name : cloudfunction . name ,
378
378
port : opts . port ,
379
379
pause : opts . pause
380
- } ) ,
381
- headers : {
382
- 'Content-Type' : 'application/json'
383
380
} ,
384
381
json : true
385
382
} ) ;
@@ -571,12 +568,9 @@ class Controller {
571
568
return this . client . getFunction ( name )
572
569
. then ( ( [ cloudfunction ] ) => {
573
570
return got . post ( `http://${ this . config . host } :${ this . config . supervisorPort } /api/reset` , {
574
- body : JSON . stringify ( {
571
+ body : {
575
572
name : cloudfunction . name ,
576
573
keep : opts . keep
577
- } ) ,
578
- headers : {
579
- 'Content-Type' : 'application/json'
580
574
} ,
581
575
json : true
582
576
} ) ;
Original file line number Diff line number Diff line change @@ -390,9 +390,8 @@ class Functions {
390
390
return new Promise ( ( resolve , reject ) => {
391
391
setTimeout ( ( ) => {
392
392
got . post ( `${ this . getSupervisorHost ( ) } /api/deploy` , {
393
- body : JSON . stringify ( { name : cloudfunction . name } ) ,
394
- headers : {
395
- 'Content-Type' : 'application/json'
393
+ body : {
394
+ name : cloudfunction . name
396
395
} ,
397
396
json : true
398
397
} ) . then ( resolve , ( err ) => {
@@ -536,9 +535,8 @@ class Functions {
536
535
this . adapter . deleteFunction ( name )
537
536
. then ( ( ) => {
538
537
return got . post ( `${ this . getSupervisorHost ( ) } /api/delete` , {
539
- body : JSON . stringify ( { name : cloudfunction . name } ) ,
540
- headers : {
541
- 'Content-Type' : 'application/json'
538
+ body : {
539
+ name : cloudfunction . name
542
540
} ,
543
541
json : true
544
542
} ) ;
You can’t perform that action at this time.
0 commit comments