You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.js
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -90,7 +90,7 @@ class ServerlessDynamodbLocal {
90
90
usage: "Set to true if you would like the document client to convert empty values (0-length strings, binary buffers, and sets) to be converted to NULL types when persisting to DynamoDB.",
91
91
},
92
92
userStop: {
93
-
usage: 'After starting dynamodb local and all migrations and seeding is completed (if set to run), process will stay open until user terminates running process. When terminate signal received, it will stop the database on the running port.'
93
+
usage: "After starting dynamodb local and all migrations and seeding is completed (if set to run), process will stay open until user terminates running process. When terminate signal received, it will stop the database on the running port."
94
94
}
95
95
}
96
96
},
@@ -234,7 +234,7 @@ class ServerlessDynamodbLocal {
234
234
.then(()=>options.seed&&this.seedHandler())
235
235
.then(()=>{
236
236
if(options.userStop){
237
-
this.serverlessLog("DynamoDB - Database is running. Waiting for user to stop...")
237
+
this.serverlessLog("DynamoDB - Database is running. Waiting for user to stop...");
238
238
returnBbPromise.resolve()
239
239
.then(()=>this._listenForTermination())
240
240
.then(()=>this.endHandler());
@@ -273,18 +273,18 @@ class ServerlessDynamodbLocal {
273
273
274
274
_listenForTermination(){
275
275
// SIGINT will be usually sent when user presses ctrl+c
276
-
constwaitForSigInt=newPromise(resolve=>{
277
-
process.on('SIGINT',()=>resolve('SIGINT'));
276
+
constwaitForSigInt=newPromise((resolve)=>{
277
+
process.on("SIGINT",()=>resolve("SIGINT"));
278
278
});
279
279
280
280
// SIGTERM is a default termination signal in many cases,
281
281
// for example when "killing" a subprocess spawned in node
0 commit comments