get-port-please
Advanced tools
Comparing version 2.6.1 to 3.0.1
@@ -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 }; |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
0
527
5
0
14839
10
80
- Removedfs-memo@^1.2.0
- Removedfs-memo@1.2.0(transitive)