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

detect-port

Package Overview
Dependencies
Maintainers
2
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

detect-port - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

6

lib/detect-port.js

@@ -26,6 +26,6 @@ /* ================================================================

const port = args[0];
const port = parseInt(args[0], 10);
if (typeof port !== 'number') {
reject(`wrong type of arguments with: ${port}`);
if (isNaN(port)) {
reject(`wrong type of arguments with: '${args[0]}'`);
}

@@ -32,0 +32,0 @@

{
"name": "detect-port",
"version": "1.0.4",
"version": "1.0.5",
"description": "detect available port",

@@ -26,3 +26,4 @@ "keywords": [

"pre-commit": "^1.1.3",
"should": "~6.0.3"
"should": "~6.0.3",
"startserver": "^1.3.1"
},

@@ -29,0 +30,0 @@ "scripts": {

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