New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

wait-port

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wait-port - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

4

bin/wait-port.js

@@ -41,4 +41,6 @@ #!/usr/bin/env node

console.error(chalk.red(err.message));
process.exit(2);
} else {
console.error(`Unknown error occurred waiting for ${port}: ${err}`);
console.error(`Unknown error occurred waiting for ${target}: ${err}`);
process.exit(3);
}

@@ -45,0 +47,0 @@ });

@@ -101,2 +101,8 @@ const debug = require('debug')('wait-port');

return resolve(false);
} else if (err.code === 'ECONNRESET') {
// This can happen if the target server kills its connection before
// we can read from it, we can normally just try again.
debug('Socket not open: ECONNRESET');
socket.destroy();
return resolve(false);
}

@@ -103,0 +109,0 @@

{
"name": "wait-port",
"version": "0.2.0",
"version": "0.2.1",
"description": "Utility to wait for a TCP port to open.",

@@ -5,0 +5,0 @@ "main": "./lib/wait-port.js",

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