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

get-port-please

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-port-please - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

## [2.1.0](https://github.com/nuxt-contrib/get-port-please/compare/v2.0.0...v2.1.0) (2020-12-04)
### Features
* allow config to be string or number ([13f4275](https://github.com/nuxt-contrib/get-port-please/commit/13f4275e021fe1cd69c3ac775c284d92cd6c601d))
## [2.0.0](https://github.com/nuxt-contrib/get-port-please/compare/v1.1.0...v2.0.0) (2020-12-04)

@@ -7,0 +14,0 @@

5

dist/index.d.ts

@@ -9,4 +9,5 @@ interface GetPortOptions {

}
declare function getPort(config?: Partial<GetPortOptions>): Promise<number>;
declare type GetPortInput = Partial<GetPortOptions> | number | string;
declare function getPort(config?: GetPortInput): Promise<number>;
export { GetPortOptions, getPort };
export { GetPortInput, GetPortOptions, getPort };

3

dist/index.js

@@ -16,2 +16,5 @@ 'use strict';

async function getPort(config) {
if (typeof config === "number" || typeof config === "string") {
config = {port: parseInt(config + "")};
}
const options = {...defaults, ...config};

@@ -18,0 +21,0 @@ const portsToCheck = [];

{
"name": "get-port-please",
"version": "2.0.0",
"version": "2.1.0",
"description": "Get an available TCP port to listen",

@@ -5,0 +5,0 @@ "repository": "nuxt-contrib/get-port-please",

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