@@ -34,8 +34,8 @@ function createCallback(response) {
34
34
35
35
function promiseCallback ( promise , callback ) {
36
36
if ( ! promise ) return ;
37
- if ( typeof promise . then !== ' function' ) return ;
38
- if ( typeof callback !== ' function' ) return ;
37
+ if ( typeof promise . then !== " function" ) return ;
38
+ if ( typeof callback !== " function" ) return ;
39
39
40
40
promise . then (
41
41
function ( data ) { callback ( null , data ) } ,
@@ -46,7 +46,7 @@ function promiseCallback(promise, callback) {
46
46
function createHandler ( dir , static ) {
47
47
return function ( request , response ) {
48
48
// handle proxies without path re-writes (http-servr)
49
- var cleanPath = request . path . replace ( / ^ \/ .n e t l i f y \/ f u n c t i o n s / , '' )
49
+ var cleanPath = request . path . replace ( / ^ \/ .n e t l i f y \/ f u n c t i o n s / , "" )
50
50
51
51
var func = cleanPath . split ( "/" ) . filter ( function ( e ) {
52
52
return e ;
@@ -71,7 +71,7 @@ function createHandler(dir, static) {
71
71
httpMethod : request . method ,
72
72
queryStringParameters : queryString . parse ( request . url . split ( "?" ) [ 1 ] ) ,
73
73
headers : request . headers ,
74
- body : isBase64 ? Buffer . from ( request . body . toString ( ) , "utf8" ) . toString ( ' base64' ) : request . body ,
74
+ body : isBase64 ? Buffer . from ( request . body . toString ( ) , "utf8" ) . toString ( " base64" ) : request . body ,
75
75
isBase64Encoded : isBase64
76
76
} ;
77
77
@@ -88,7 +88,7 @@ exports.listen = function(port, static) {
88
88
app . use ( bodyParser . raw ( { limit : "6mb" } ) ) ;
89
89
app . use ( bodyParser . text ( { limit : "6mb" , type : "*/*" } ) ) ;
90
90
app . use ( expressLogging ( console , {
91
- blacklist : [ ' /favicon.ico' ] ,
91
+ blacklist : [ " /favicon.ico" ] ,
92
92
} ) ) ;
93
93
94
94
app . get ( "/favicon.ico" , function ( req , res ) {
0 commit comments