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
},
@@ -263,7 +263,7 @@ class ServerlessDynamodbLocal {
263
263
.then(()=>options.seed&&this.seedHandler())
264
264
.then(()=>{
265
265
if(options.userStop){
266
-
this.serverlessLog("DynamoDB - Database is running. Waiting for user to stop...")
266
+
this.serverlessLog("DynamoDB - Database is running. Waiting for user to stop...");
267
267
returnBbPromise.resolve()
268
268
.then(()=>this._listenForTermination())
269
269
.then(()=>this.endHandler());
@@ -304,18 +304,18 @@ class ServerlessDynamodbLocal {
304
304
305
305
_listenForTermination(){
306
306
// SIGINT will be usually sent when user presses ctrl+c
307
-
constwaitForSigInt=newPromise(resolve=>{
308
-
process.on('SIGINT',()=>resolve('SIGINT'));
307
+
constwaitForSigInt=newPromise((resolve)=>{
308
+
process.on("SIGINT",()=>resolve("SIGINT"));
309
309
});
310
310
311
311
// SIGTERM is a default termination signal in many cases,
312
312
// for example when "killing" a subprocess spawned in node
0 commit comments