test-listen
Advanced tools
Comparing version 1.0.1 to 1.0.2
module.exports = srv => new Promise((resolve, reject) => { | ||
srv.listen(err => { | ||
if (err) { | ||
return reject(err) | ||
} | ||
srv.on('error', reject) | ||
srv.listen(() => { | ||
const {port} = srv.address() | ||
@@ -8,0 +6,0 @@ resolve(`http://localhost:${port}`) |
{ | ||
"name": "test-listen", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Produce URLs to test HTTP servers with ephemeral ports", | ||
"main": "./index", | ||
"license": "MIT", | ||
"repository": "zeit/test-listen", | ||
"greenkeeper": { | ||
@@ -11,2 +13,3 @@ "emails": false | ||
"ava": "0.16.0", | ||
"husky": "^0.13.1", | ||
"request": "^2.79.0", | ||
@@ -17,2 +20,3 @@ "request-promise": "4.1.1", | ||
"scripts": { | ||
"precommit": "npm run test", | ||
"test": "xo && ava" | ||
@@ -19,0 +23,0 @@ }, |
Sorry, the diff of this file is not supported yet
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
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
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
2507
0
1
5
25