1
- const path = require ( " path" ) ;
1
+ const path = require ( ' path' ) ;
2
2
3
3
/**
4
4
* BasePathPlugin class.
@@ -14,19 +14,19 @@ class BasePathPlugin {
14
14
this . serverless = serverless ;
15
15
this . options = options ;
16
16
this . basePath =
17
- typeof this . serverless . service . custom . functionsBasePath === " string"
17
+ typeof this . serverless . service . custom . functionsBasePath === ' string'
18
18
? this . serverless . service . custom . functionsBasePath
19
- : "" ;
19
+ : '' ;
20
20
21
21
this . hooks = {
22
- " before:run:run" : this . rewriteHandlersPath . bind ( this ) ,
23
- " before:offline:start" : this . rewriteHandlersPath . bind ( this ) ,
24
- " before:offline:start:init" : this . rewriteHandlersPath . bind ( this ) ,
25
- " before:package:initialize" : this . rewriteHandlersPath . bind ( this ) ,
26
- " before:deploy:function:packageFunction" : this . rewriteHandlersPath . bind (
22
+ ' before:run:run' : this . rewriteHandlersPath . bind ( this ) ,
23
+ ' before:offline:start' : this . rewriteHandlersPath . bind ( this ) ,
24
+ ' before:offline:start:init' : this . rewriteHandlersPath . bind ( this ) ,
25
+ ' before:package:initialize' : this . rewriteHandlersPath . bind ( this ) ,
26
+ ' before:deploy:function:packageFunction' : this . rewriteHandlersPath . bind (
27
27
this
28
28
) ,
29
- " before:invoke:local:invoke" : this . rewriteHandlersPath . bind ( this )
29
+ ' before:invoke:local:invoke' : this . rewriteHandlersPath . bind ( this )
30
30
} ;
31
31
}
32
32
@@ -50,7 +50,7 @@ class BasePathPlugin {
50
50
) ;
51
51
}
52
52
53
- if ( typeof handlerPath !== " string" ) {
53
+ if ( typeof handlerPath !== ' string' ) {
54
54
throw new Error (
55
55
`handler path must be a string for function "${ functionName } "`
56
56
) ;
0 commit comments