Skip to content

Commit 55f48d7

Browse files
authored
feat: use address@2 (#53)
1 parent 9804ad5 commit 55f48d7

File tree

12 files changed

+17
-113
lines changed

12 files changed

+17
-113
lines changed

.eslintrc.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict';
2-
31
module.exports = {
42
extends: 'eslint-config-egg',
53
parserOptions: {

.github/workflows/codeql-analysis.yml

Lines changed: 0 additions & 74 deletions
This file was deleted.

.github/workflows/nodejs.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,13 @@ name: CI
33
on:
44
push:
55
branches: [ master ]
6-
76
pull_request:
87
branches: [ master ]
98

10-
workflow_dispatch: {}
11-
129
jobs:
1310
Job:
1411
name: Node.js
15-
uses: artusjs/github-actions/.github/workflows/node-test.yml@v1
12+
uses: node-modules/github-actions/.github/workflows/node-test.yml@master
1613
with:
1714
os: 'ubuntu-latest'
18-
version: '14, 16, 18'
15+
version: '14, 16, 18, 20, 22'

.github/workflows/release.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,10 @@ on:
44
push:
55
branches: [ master ]
66

7-
workflow_dispatch: {}
8-
97
jobs:
108
release:
119
name: Node.js
12-
uses: artusjs/github-actions/.github/workflows/node-release.yml@v1
10+
uses: node-modules/github-actions/.github/workflows/node-release.yml@master
1311
secrets:
1412
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1513
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
16-
with:
17-
checkTest: false

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Most likely network error, check that your `/etc/hosts` and make sure the conten
102102
| :---: | :---: | :---: | :---: | :---: | :---: |
103103
[<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/>
104104

105-
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`.
105+
This project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Wed May 08 2024 15:54:54 GMT+0800`.
106106

107107
<!-- GITCONTRIBUTOR_END -->
108108

bin/detect-port.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/usr/bin/env node
22

3-
'use strict';
4-
53
const pkg = require('../package');
64

75
const args = process.argv.slice(2);

lib/detect-port.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
'use strict';
2-
31
const net = require('net');
2+
const debug = require('util').debuglog('detect-port');
43
const address = require('address');
5-
const debug = require('debug')('detect-port');
64

75
module.exports = (port, callback) => {
86
let hostname = '';

lib/wait-port.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
'use strict';
2-
3-
const debug = require('debug')('wait-port');
1+
const debug = require('util').debuglog('wait-port');
42
const detect = require('./detect-port');
53

64
const sleep = ms => new Promise(resolve => setTimeout(resolve, ms));

package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,26 @@
2121
"url": "git://github.com/node-modules/detect-port.git"
2222
},
2323
"dependencies": {
24-
"address": "^1.0.1",
25-
"debug": "4"
24+
"address": "^2.0.2"
2625
},
2726
"devDependencies": {
2827
"command-line-test": "1",
29-
"egg-bin": "^5.2.0",
30-
"eslint": "^8.23.1",
31-
"eslint-config-egg": "^12.0.0",
32-
"git-contributor": "1",
33-
"mm": "^2.1.0",
34-
"pedding": "^1.1.0",
35-
"power-assert": "^1.6.1"
28+
"egg-bin": "6",
29+
"eslint": "8",
30+
"eslint-config-egg": "12",
31+
"git-contributor": "2",
32+
"mm": "3",
33+
"pedding": "1"
3634
},
3735
"scripts": {
3836
"test": "egg-bin test",
3937
"ci": "npm run lint && egg-bin cov",
4038
"lint": "eslint .",
4139
"contributor": "git-contributor"
4240
},
41+
"engines": {
42+
"node": ">= 14.0.0"
43+
},
4344
"homepage": "https://github.com/node-modules/detect-port",
4445
"license": "MIT"
4546
}

test/cli.test.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict';
2-
31
const path = require('path');
42
const assert = require('assert');
53
const CliTest = require('command-line-test');

0 commit comments

Comments
 (0)