@untool/express
Advanced tools
Comparing version 0.4.1 to 0.4.3
@@ -6,2 +6,13 @@ # Change Log | ||
<a name="0.4.3"></a> | ||
## [0.4.3](https://github.com/untool/untool/compare/v0.4.2...v0.4.3) (2018-04-24) | ||
### Bug Fixes | ||
* **express:** fix rare race condition ([9c9b7f5](https://github.com/untool/untool/commit/9c9b7f5)) | ||
<a name="0.4.1"></a> | ||
@@ -8,0 +19,0 @@ ## [0.4.1](https://github.com/untool/untool/compare/v0.4.0...v0.4.1) (2018-04-20) |
@@ -30,5 +30,7 @@ const { readFileSync: readFile } = require('fs'); | ||
} else { | ||
const server = createNetServer().unref(); | ||
server.on('error', () => resolve(findPort(ip, port + 1, max))); | ||
server.listen(port, ip, () => server.close(() => resolve(port))); | ||
process.nextTick(() => { | ||
const server = createNetServer().unref(); | ||
server.on('error', () => resolve(findPort(ip, port + 1, max))); | ||
server.listen(port, ip, () => server.close(() => resolve(port))); | ||
}); | ||
} | ||
@@ -35,0 +37,0 @@ }); |
@@ -8,2 +8,6 @@ const { sync: { sequence } } = require('mixinable'); | ||
class ExpressMixin extends Mixin { | ||
constructor(...args) { | ||
super(...args); | ||
this.options = {}; | ||
} | ||
create(method, options) { | ||
@@ -89,5 +93,3 @@ const create = require(`./lib/${method}`); | ||
}, | ||
handler: argv => { | ||
this.runServer(argv); | ||
}, | ||
handler: argv => this.runServer(argv), | ||
}); | ||
@@ -94,0 +96,0 @@ } |
{ | ||
"name": "@untool/express", | ||
"version": "0.4.1", | ||
"version": "0.4.3", | ||
"description": "untool express mixin", | ||
@@ -26,3 +26,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@untool/core": "^0.4.1", | ||
"@untool/core": "^0.4.3", | ||
"compression": "^1.7.2", | ||
@@ -29,0 +29,0 @@ "directory-index": "^0.1.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
21972
300
Updated@untool/core@^0.4.3