Comparing version 2.0.1 to 2.1.1
@@ -9,2 +9,3 @@ #!/usr/bin/env node | ||
const DEFAULT_HOST = 'localhost'; | ||
const DEFAULT_PORT = 4576; | ||
@@ -22,2 +23,3 @@ | ||
'--help Display this help message and exit', | ||
'--host <host> The host to listen on (default: localhost)', | ||
'--port <port> The port to listen on (default: 4567)', | ||
@@ -28,6 +30,12 @@ 'Report bugs at github.com/jennyEckstein/sqslite/issues' | ||
} else { | ||
sqslite({}).listen(argv.port || DEFAULT_PORT, (err, address) => { | ||
if (err) throw err; | ||
console.log(`server listening on ${address}`); | ||
}); | ||
sqslite({}).listen( | ||
{ | ||
host: argv.host || DEFAULT_HOST, | ||
port: argv.port || DEFAULT_PORT | ||
}, | ||
(err, address) => { | ||
if (err) throw err; | ||
console.log(`server listening on ${address}`); | ||
} | ||
); | ||
} |
{ | ||
"name": "sqslite", | ||
"version": "2.0.1", | ||
"version": "2.1.1", | ||
"description": "Lightweight module for integration testing AWS SQS.", | ||
@@ -48,4 +48,4 @@ "keywords": [], | ||
"dedent": "^0.7.0", | ||
"fastify": "^3.28.0", | ||
"fastify-formbody": "^5.2.0", | ||
"fastify": "^3.29.0", | ||
"fastify-formbody": "^5.3.0", | ||
"md5": "^2.3.0", | ||
@@ -59,5 +59,5 @@ "minimist": "^1.2.6", | ||
"@types/md5": "^2.3.2", | ||
"@types/node": "^16.11.30", | ||
"@types/node": "^17.0.35", | ||
"@types/uuid": "^8.3.4", | ||
"aws-sdk": "^2.1122.0", | ||
"aws-sdk": "^2.1140.0", | ||
"core-commons": "1.0.0-alpha.6", | ||
@@ -64,0 +64,0 @@ "jest-xml-matcher": "^1.2.0" |
@@ -28,2 +28,3 @@ # SQSLite | ||
--help Display this help message and exit | ||
--host <host> The host to listen on (default: localhost) | ||
--port <port> The port to listen on (default: 4567) | ||
@@ -30,0 +31,0 @@ Report bugs at github.com/jennyEckstein/sqslite/issues |
Sorry, the diff of this file is too big to display
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
176619
56
2677
114
1
Updatedfastify@^3.29.0
Updatedfastify-formbody@^5.3.0