@@ -21,15 +21,15 @@ function injectRequirements(requirementsPath, packagePath, options) {
2121
2222 return fse
2323 . readFileAsync ( packagePath )
24- . then ( buffer => JSZip . loadAsync ( buffer ) )
25- . then ( zip =>
24+ . then ( ( buffer ) => JSZip . loadAsync ( buffer ) )
25+ . then ( ( zip ) =>
2626 BbPromise . resolve (
2727 glob . sync ( [ path . join ( requirementsPath , '**' ) ] , {
2828 mark : true ,
29- dot : true
29+ dot : true ,
3030 } )
3131 )
32- . map ( file => [ file , path . relative ( requirementsPath , file ) ] )
32+ . map ( ( file ) => [ file , path . relative ( requirementsPath , file ) ] )
3333 . filter (
3434 ( [ file , relativeFile ] ) =>
3535 ! file . endsWith ( '/' ) &&
@@ -42,7 +42,7 @@ function injectRequirements(requirementsPath, packagePath, options) {
4242 . mapSeries ( ( [ file , relativeFile , fileStat ] ) =>
4343 zipFile ( zip , relativeFile , fse . readFileAsync ( file ) , {
4444 unixPermissions : fileStat . mode ,
45- createFolders : false
45+ createFolders : false ,
4646 } )
4747 )
4848 . then ( ( ) => writeZip ( zip , packagePath ) )
@@ -61,16 +61,16 @@ function moveModuleUp(source, target, module) {
6161
6262 return fse
6363 . readFileAsync ( source )
64- . then ( buffer => JSZip . loadAsync ( buffer ) )
65- . then ( sourceZip =>
64+ . then ( ( buffer ) => JSZip . loadAsync ( buffer ) )
65+ . then ( ( sourceZip ) =>
6666 sourceZip . filter (
67- file =>
67+ ( file ) =>
6868 file . startsWith ( module + '/' ) ||
6969 file . startsWith ( 'serverless_sdk/' ) ||
7070 file . match ( / ^ s _ .* \. p y / ) !== null
7171 )
7272 )
73- . map ( srcZipObj =>
73+ . map ( ( srcZipObj ) =>
7474 zipFile (
7575 targetZip ,
7676 srcZipObj . name . startsWith ( module + '/' )
@@ -96,18 +96,18 @@ function injectAllRequirements(funcArtifact) {
9696
9797 if ( this . serverless . service . package . individually ) {
9898 return BbPromise . resolve ( this . targetFuncs )
99- . filter ( func =>
99+ . filter ( ( func ) =>
100100 ( func . runtime || this . serverless . service . provider . runtime ) . match (
101101 / ^ p y t h o n .* /
102102 )
103103 )
104- . map ( func => {
104+ . map ( ( func ) => {
105105 if ( ! get ( func , 'module' ) ) {
106106 set ( func , [ 'module' ] , '.' ) ;
107107 }
108108 return func ;
109109 } )
110- . map ( func => {
110+ . map ( ( func ) => {
111111 if ( func . module !== '.' ) {
112112 const artifact = func . package ? func . package . artifact : funcArtifact ;
113113 const newArtifact = path . join (
@@ -122,7 +122,7 @@ function injectAllRequirements(funcArtifact) {
122122 return func ;
123123 }
124124 } )
125- . map ( func => {
125+ . map ( ( func ) => {
126126 return this . options . zip
127127 ? func
128128 : injectRequirements (
0 commit comments