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 5555 "dependencies" : {
5656 "@google-cloud/storage" : " 1.1.1" ,
5757 "adm-zip" : " 0.4.7" ,
58- "ajv" : " 5.1.3 " ,
58+ "ajv" : " 5.1.5 " ,
5959 "body-parser" : " 1.17.2" ,
6060 "cli-table2" : " 0.2.0" ,
6161 "colors" : " 1.1.2" ,
6262 "configstore" : " 3.1.0" ,
6363 "express" : " 4.15.3" ,
6464 "google-proto-files" : " 0.12.0" ,
6565 "googleapis" : " 19.0.0" ,
66- "got" : " 6.7.1 " ,
67- "grpc" : " 1.3.2 " ,
66+ "got" : " 7.0.0 " ,
67+ "grpc" : " 1.3.8 " ,
6868 "http-proxy" : " 1.16.2" ,
6969 "lodash" : " 4.17.4" ,
7070 "prompt" : " 1.0.0" ,
8080 "devDependencies" : {
8181 "intelli-espower-loader" : " 1.0.1" ,
8282 "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 " ,
8585 "proxyquire" : " 1.8.0" ,
8686 "semistandard" : " 11.0.0" ,
8787 "semistandard-format" : " 3.0.0" ,
88- "sinon" : " 2.3.1 "
88+ "sinon" : " 2.3.2 "
8989 },
9090 "repository" : {
9191 "type" : " git" ,
Original file line number Diff line number Diff line change @@ -372,14 +372,11 @@ class Controller {
372372 }
373373
374374 return got . post ( `http://${ this . config . host } :${ this . config . supervisorPort } /api/debug` , {
375- body : JSON . stringify ( {
375+ body : {
376376 type : type ,
377377 name : cloudfunction . name ,
378378 port : opts . port ,
379379 pause : opts . pause
380- } ) ,
381- headers : {
382- 'Content-Type' : 'application/json'
383380 } ,
384381 json : true
385382 } ) ;
@@ -571,12 +568,9 @@ class Controller {
571568 return this . client . getFunction ( name )
572569 . then ( ( [ cloudfunction ] ) => {
573570 return got . post ( `http://${ this . config . host } :${ this . config . supervisorPort } /api/reset` , {
574- body : JSON . stringify ( {
571+ body : {
575572 name : cloudfunction . name ,
576573 keep : opts . keep
577- } ) ,
578- headers : {
579- 'Content-Type' : 'application/json'
580574 } ,
581575 json : true
582576 } ) ;
Original file line number Diff line number Diff line change @@ -390,9 +390,8 @@ class Functions {
390390 return new Promise ( ( resolve , reject ) => {
391391 setTimeout ( ( ) => {
392392 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
396395 } ,
397396 json : true
398397 } ) . then ( resolve , ( err ) => {
@@ -536,9 +535,8 @@ class Functions {
536535 this . adapter . deleteFunction ( name )
537536 . then ( ( ) => {
538537 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
542540 } ,
543541 json : true
544542 } ) ;
You can’t perform that action at this time.
0 commit comments