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.6.1 to 3.0.1

10

dist/index.d.ts

@@ -12,9 +12,7 @@ declare function isUnsafePort(port: number): boolean;

host: string;
memoDir: string;
memoName: string;
verbose?: boolean;
}
declare type GetPortInput = Partial<GetPortOptions> | number | string;
declare type HostAddress = undefined | string;
declare type PortNumber = number;
type GetPortInput = Partial<GetPortOptions> | number | string;
type HostAddress = undefined | string;
type PortNumber = number;
declare function getPort(config?: GetPortInput): Promise<PortNumber>;

@@ -27,5 +25,5 @@ declare function getRandomPort(host?: HostAddress): Promise<number>;

}
declare function waitForPort(port: PortNumber, opts?: WaitForPortOptions): Promise<void>;
declare function waitForPort(port: PortNumber, options?: WaitForPortOptions): Promise<void>;
declare function checkPort(port: PortNumber, host?: HostAddress | HostAddress[], _verbose?: boolean): Promise<PortNumber | false>;
export { GetPortInput, GetPortOptions, HostAddress, PortNumber, WaitForPortOptions, checkPort, getPort, getRandomPort, isSafePort, isUnsafePort, waitForPort };

27

package.json
{
"name": "get-port-please",
"version": "2.6.1",
"version": "3.0.1",
"description": "Get an available TCP port to listen",

@@ -10,2 +10,3 @@ "repository": "unjs/get-port-please",

"import": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs"

@@ -19,21 +20,19 @@ }

],
"dependencies": {
"fs-memo": "^1.2.0"
},
"devDependencies": {
"@nuxtjs/eslint-config-typescript": "latest",
"@types/node": "latest",
"c8": "latest",
"eslint": "latest",
"jiti": "^1.14.0",
"standard-version": "latest",
"@types/node": "^18.11.18",
"@vitest/coverage-c8": "^0.26.3",
"eslint": "^8.31.0",
"eslint-config-unjs": "^0.0.3",
"jiti": "^1.16.1",
"prettier": "^2.8.1",
"standard-version": "^9.5.0",
"typescript": "latest",
"unbuild": "latest",
"vitest": "^0.21.0"
"unbuild": "^1.0.2",
"vitest": "^0.26.3"
},
"packageManager": "pnpm@7.9.0",
"packageManager": "pnpm@7.21.0",
"scripts": {
"build": "unbuild",
"dev": "vitest",
"lint": "eslint --ext ts .",
"lint": "eslint --ext ts . && prettier -c src test",
"release": "pnpm test && pnpm build && standard-version && pnpm publish && git push --follow-tags",

@@ -40,0 +39,0 @@ "test": "pnpm lint && vitest run"

@@ -34,3 +34,3 @@ ![get-port-please](https://user-images.githubusercontent.com/904724/101664848-9bc16380-3a4c-11eb-9e3a-faad60c86b2e.png)

Try sequence is: port > ports > memo > random
Try sequence is: port > ports > random

@@ -78,11 +78,4 @@ ## Options

### `memoDir` / `memoName`
Options passed to [fs-memo](https://github.com/unjs/fs-memo)
- Default dir: `node_modules/get-port/dist`
- Default name: `.get-port`
## License
MIT

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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