Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

test-listen

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

test-listen - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

6

index.js
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc