Comparing version 1.1.0 to 1.2.0
@@ -7,4 +7,4 @@ #!/usr/bin/env node | ||
const app = require('.') | ||
const port = randPort('user') | ||
const port = process.argv[2] || randPort('user') | ||
app.listen(port, () => console.log(port)) |
@@ -18,3 +18,2 @@ 'use strict' | ||
app.post('/:name', (req, res, next) => { | ||
console.log(req.params.name) | ||
fs.writeFile(path.resolve(tmpDir, req.params.name), '', (err) => { | ||
@@ -21,0 +20,0 @@ if (err) next(err) |
{ | ||
"name": "mockend", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "mock", | ||
@@ -20,3 +20,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@mockend/rand-port": "^1.1.0", | ||
"@mockend/rand-port": "^1.2.0", | ||
"express": "^4.17.1" | ||
@@ -23,0 +23,0 @@ }, |
@@ -6,3 +6,3 @@ # Usage | ||
``` | ||
mockend | ||
mockend [port] | ||
``` | ||
@@ -9,0 +9,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2017
46
Updated@mockend/rand-port@^1.2.0