detect-port
Advanced tools
Comparing version 1.6.1 to 2.0.0
{ | ||
"name": "detect-port", | ||
"version": "1.6.1", | ||
"version": "2.0.0", | ||
"description": "Node.js implementation of port detector", | ||
@@ -10,10 +10,9 @@ "keywords": [ | ||
"bin": { | ||
"detect": "./bin/detect-port.js", | ||
"detect-port": "./bin/detect-port.js" | ||
"detect": "dist/commonjs/bin/detect-port.js", | ||
"detect-port": "dist/commonjs/bin/detect-port.js" | ||
}, | ||
"main": "index.js", | ||
"main": "./dist/commonjs/index.js", | ||
"files": [ | ||
"bin", | ||
"lib", | ||
"index.js" | ||
"dist", | ||
"src" | ||
], | ||
@@ -25,26 +24,52 @@ "repository": { | ||
"dependencies": { | ||
"address": "^1.0.1", | ||
"debug": "4" | ||
"address": "^2.0.1" | ||
}, | ||
"devDependencies": { | ||
"command-line-test": "1", | ||
"egg-bin": "^5.2.0", | ||
"eslint": "^8.23.1", | ||
"eslint-config-egg": "^12.0.0", | ||
"git-contributor": "1", | ||
"mm": "^2.1.0", | ||
"pedding": "^1.1.0", | ||
"power-assert": "^1.6.1" | ||
"@eggjs/tsconfig": "^1.3.3", | ||
"@types/mocha": "^10.0.6", | ||
"@types/node": "^22.10.1", | ||
"egg-bin": "^6.9.0", | ||
"eslint": "^8.52.0", | ||
"eslint-config-egg": "^13.0.0", | ||
"execa": "^8.0.1", | ||
"mm": "^3.4.0", | ||
"strip-ansi": "^7.1.0", | ||
"tshy": "^3.0.2", | ||
"tshy-after": "^1.0.0", | ||
"typescript": "^5.2.2" | ||
}, | ||
"scripts": { | ||
"pretest": "npm run lint -- --fix && npm run prepublishOnly", | ||
"test": "egg-bin test", | ||
"ci": "npm run lint && egg-bin cov", | ||
"lint": "eslint .", | ||
"contributor": "git-contributor" | ||
"lint": "eslint src test --ext ts", | ||
"ci": "npm run lint && npm run cov && npm run prepublishOnly", | ||
"prepublishOnly": "tshy && tshy-after", | ||
"precov": "npm run prepublishOnly", | ||
"cov": "egg-bin cov" | ||
}, | ||
"engines": { | ||
"node": ">= 4.0.0" | ||
"node": ">= 16.0.0" | ||
}, | ||
"homepage": "https://github.com/node-modules/detect-port", | ||
"license": "MIT" | ||
"license": "MIT", | ||
"tshy": { | ||
"exports": { | ||
".": "./src/index.ts" | ||
} | ||
}, | ||
"exports": { | ||
".": { | ||
"import": { | ||
"types": "./dist/esm/index.d.ts", | ||
"default": "./dist/esm/index.js" | ||
}, | ||
"require": { | ||
"types": "./dist/commonjs/index.d.ts", | ||
"default": "./dist/commonjs/index.js" | ||
} | ||
} | ||
}, | ||
"types": "./dist/commonjs/index.d.ts", | ||
"type": "module", | ||
"module": "./dist/esm/index.js" | ||
} |
@@ -1,20 +0,20 @@ | ||
[![logo][logo-image]][logo-url] | ||
# detect-port | ||
--- | ||
[![NPM version][npm-image]][npm-url] | ||
[![build status][travis-image]][travis-url] | ||
[![CI](https://github.com/node-modules/detect-port/actions/workflows/nodejs.yml/badge.svg)](https://github.com/node-modules/detect-port/actions/workflows/nodejs.yml) | ||
[![Test coverage][codecov-image]][codecov-url] | ||
[![Known Vulnerabilities][snyk-image]][snyk-url] | ||
[![npm download][download-image]][download-url] | ||
[![Node.js Version][node-version-image]][node-version-url] | ||
[logo-image]: ./logo.png | ||
[logo-url]: https://npmjs.org/package/detect-port | ||
[npm-image]: https://img.shields.io/npm/v/detect-port.svg | ||
[npm-image]: https://img.shields.io/npm/v/detect-port.svg?style=flat-square | ||
[npm-url]: https://npmjs.org/package/detect-port | ||
[travis-image]: https://img.shields.io/travis/node-modules/detect-port.svg | ||
[travis-url]: https://travis-ci.org/node-modules/detect-port | ||
[codecov-image]: https://img.shields.io/coveralls/node-modules/detect-port.svg | ||
[codecov-image]: https://codecov.io/gh/node-modules/detect-port/branch/master/graph/badge.svg | ||
[codecov-url]: https://codecov.io/gh/node-modules/detect-port | ||
[download-image]: https://img.shields.io/npm/dm/detect-port.svg | ||
[snyk-image]: https://snyk.io/test/npm/detect-port/badge.svg?style=flat-square | ||
[snyk-url]: https://snyk.io/test/npm/detect-port | ||
[download-image]: https://img.shields.io/npm/dm/detect-port.svg?style=flat-square | ||
[download-url]: https://npmjs.org/package/detect-port | ||
[node-version-image]: https://img.shields.io/node/v/detect-port.svg?style=flat-square | ||
[node-version-url]: https://nodejs.org/en/download/ | ||
@@ -42,3 +42,3 @@ > Node.js implementation of port detector | ||
```bash | ||
$ npm i detect-port --save | ||
npm i detect-port | ||
``` | ||
@@ -69,3 +69,3 @@ | ||
```bash | ||
$ npm i detect-port -g | ||
npm i detect-port -g | ||
``` | ||
@@ -93,3 +93,3 @@ | ||
``` | ||
```bash | ||
127.0.0.1 localhost | ||
@@ -100,16 +100,10 @@ 255.255.255.255 broadcasthost | ||
<!-- GITCONTRIBUTOR_START --> | ||
## License | ||
[MIT](LICENSE) | ||
## Contributors | ||
|[<img src="https://avatars.githubusercontent.com/u/1011681?v=4" width="100px;"/><br/><sub><b>xudafeng</b></sub>](https://github.com/xudafeng)<br/>|[<img src="https://avatars.githubusercontent.com/u/156269?v=4" width="100px;"/><br/><sub><b>fengmk2</b></sub>](https://github.com/fengmk2)<br/>|[<img src="https://avatars.githubusercontent.com/u/1044425?v=4" width="100px;"/><br/><sub><b>ziczhu</b></sub>](https://github.com/ziczhu)<br/>|[<img src="https://avatars.githubusercontent.com/u/810438?v=4" width="100px;"/><br/><sub><b>gaearon</b></sub>](https://github.com/gaearon)<br/>|[<img src="https://avatars.githubusercontent.com/u/34906299?v=4" width="100px;"/><br/><sub><b>chnliquan</b></sub>](https://github.com/chnliquan)<br/>|[<img src="https://avatars.githubusercontent.com/u/360661?v=4" width="100px;"/><br/><sub><b>popomore</b></sub>](https://github.com/popomore)<br/>| | ||
| :---: | :---: | :---: | :---: | :---: | :---: | | ||
[<img src="https://avatars.githubusercontent.com/u/52845048?v=4" width="100px;"/><br/><sub><b>snapre</b></sub>](https://github.com/snapre)<br/>|[<img src="https://avatars.githubusercontent.com/u/56271907?v=4" width="100px;"/><br/><sub><b>yavuzakyuz</b></sub>](https://github.com/yavuzakyuz)<br/>|[<img src="https://avatars.githubusercontent.com/u/197375?v=4" width="100px;"/><br/><sub><b>antife-yinyue</b></sub>](https://github.com/antife-yinyue)<br/> | ||
[![Contributors](https://contrib.rocks/image?repo=node-modules/detect-port)](https://github.com/node-modules/detect-port/graphs/contributors) | ||
This project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Wed Sep 21 2022 23:10:27 GMT+0800`. | ||
<!-- GITCONTRIBUTOR_END --> | ||
## License | ||
[MIT](LICENSE) | ||
Made with [contributors-img](https://contrib.rocks). |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
52213
1
26
752
Yes
12
106
+ Addedaddress@2.0.3(transitive)
- Removeddebug@4
- Removedaddress@1.2.2(transitive)
- Removeddebug@4.4.0(transitive)
- Removedms@2.1.3(transitive)
Updatedaddress@^2.0.1