Socket
Socket
Sign inDemoInstall

tcp-port-used

Package Overview
Dependencies
4
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 0.1.1

10

index.js

@@ -92,2 +92,5 @@ /**

client.removeAllListeners('error');
client.end();
client.destroy();
client.unref();
}

@@ -100,4 +103,2 @@ //debug('listeners removed from client socket');

deferred.resolve(inUse);
client.end();
client.unref();
cleanUp();

@@ -110,3 +111,2 @@ }

deferred.reject(err);
cleanUp();
} else {

@@ -117,6 +117,4 @@ //debug('ECONNREFUSED');

deferred.resolve(inUse);
cleanUp();
}
client.destroy();
client.unref();
cleanUp();
}

@@ -123,0 +121,0 @@

2

package.json
{
"name": "tcp-port-used",
"version": "0.1.0",
"version": "0.1.1",
"description": "A simple Node.js module to check if a TCP port is already bound.",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc