@@ -96,7 +96,7 @@ class ServerlessDynamodbLocal {
96
96
97
97
dynamodbOptions ( ) {
98
98
const { config } = this ;
99
- const port = _ . get ( config , ' start.port' , 8000 ) ;
99
+ const port = _ . get ( config , " start.port" , 8000 ) ;
100
100
const dynamoOptions = {
101
101
endpoint : `http://localhost:${ port } ` ,
102
102
region : "localhost" ,
@@ -113,15 +113,15 @@ class ServerlessDynamodbLocal {
113
113
migrateHandler ( ) {
114
114
const dynamodb = this . dynamodbOptions ( ) ;
115
115
const { tables } = this ;
116
- return BbPromise . each ( tables , table => this . createTable ( dynamodb , table ) ) ;
116
+ return BbPromise . each ( tables , ( table ) => this . createTable ( dynamodb , table ) ) ;
117
117
}
118
118
119
119
seedHandler ( ) {
120
120
const { doc : documentClient } = this . dynamodbOptions ( ) ;
121
121
const { seedSources } = this ;
122
122
return BbPromise . each ( seedSources , source => {
123
123
if ( ! source . table ) {
124
- throw new Error ( "seeding source ' table' not defined" ) ;
124
+ throw new Error ( "seeding source \" table\" property not defined" ) ;
125
125
}
126
126
return locateSeeds ( source . sources || [ ] )
127
127
. then ( ( seeds ) => writeSeeds ( documentClient , source . table , seeds ) ) ;
@@ -163,7 +163,7 @@ class ServerlessDynamodbLocal {
163
163
if ( resources [ key ] . Type === "AWS::DynamoDB::Table" ) {
164
164
return resources [ key ] . Properties ;
165
165
}
166
- } ) . filter ( n => n ) ;
166
+ } ) . filter ( ( n ) => n ) ;
167
167
}
168
168
169
169
/**
@@ -174,11 +174,11 @@ class ServerlessDynamodbLocal {
174
174
const seedConfig = _ . get ( config , "seed" , { } ) ;
175
175
const { seed } = this . options ;
176
176
if ( ! seed ) {
177
- console . log ( "No seed option defined. Cannot seed data." )
177
+ console . log ( "No seed option defined. Cannot seed data." ) ;
178
178
return [ ] ;
179
179
}
180
180
const categories = seed . split ( "," ) ;
181
- const sourcesByCategory = categories . map ( category => seedConfig [ category ] . sources ) ;
181
+ const sourcesByCategory = categories . map ( ( category ) => seedConfig [ category ] . sources ) ;
182
182
return [ ] . concat . apply ( [ ] , sourcesByCategory ) ;
183
183
}
184
184
0 commit comments