Skip to content

Commit

Permalink
feat: use address@2 (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed May 8, 2024
1 parent 9804ad5 commit 55f48d7
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 113 deletions.
2 changes: 0 additions & 2 deletions .eslintrc.js
@@ -1,5 +1,3 @@
'use strict';

module.exports = {
extends: 'eslint-config-egg',
parserOptions: {
Expand Down
74 changes: 0 additions & 74 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

7 changes: 2 additions & 5 deletions .github/workflows/nodejs.yml
Expand Up @@ -3,16 +3,13 @@ name: CI
on:
push:
branches: [ master ]

pull_request:
branches: [ master ]

workflow_dispatch: {}

jobs:
Job:
name: Node.js
uses: artusjs/github-actions/.github/workflows/node-test.yml@v1
uses: node-modules/github-actions/.github/workflows/node-test.yml@master
with:
os: 'ubuntu-latest'
version: '14, 16, 18'
version: '14, 16, 18, 20, 22'
6 changes: 1 addition & 5 deletions .github/workflows/release.yml
Expand Up @@ -4,14 +4,10 @@ on:
push:
branches: [ master ]

workflow_dispatch: {}

jobs:
release:
name: Node.js
uses: artusjs/github-actions/.github/workflows/node-release.yml@v1
uses: node-modules/github-actions/.github/workflows/node-release.yml@master
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
with:
checkTest: false
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -102,7 +102,7 @@ Most likely network error, check that your `/etc/hosts` and make sure the conten
| :---: | :---: | :---: | :---: | :---: | :---: |
[<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/>

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`.
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`.

<!-- GITCONTRIBUTOR_END -->

Expand Down
2 changes: 0 additions & 2 deletions bin/detect-port.js
@@ -1,7 +1,5 @@
#!/usr/bin/env node

'use strict';

const pkg = require('../package');

const args = process.argv.slice(2);
Expand Down
4 changes: 1 addition & 3 deletions lib/detect-port.js
@@ -1,8 +1,6 @@
'use strict';

const net = require('net');
const debug = require('util').debuglog('detect-port');
const address = require('address');
const debug = require('debug')('detect-port');

module.exports = (port, callback) => {
let hostname = '';
Expand Down
4 changes: 1 addition & 3 deletions lib/wait-port.js
@@ -1,6 +1,4 @@
'use strict';

const debug = require('debug')('wait-port');
const debug = require('util').debuglog('wait-port');
const detect = require('./detect-port');

const sleep = ms => new Promise(resolve => setTimeout(resolve, ms));
Expand Down
19 changes: 10 additions & 9 deletions package.json
Expand Up @@ -21,25 +21,26 @@
"url": "git://github.com/node-modules/detect-port.git"
},
"dependencies": {
"address": "^1.0.1",
"debug": "4"
"address": "^2.0.2"
},
"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"
"egg-bin": "6",
"eslint": "8",
"eslint-config-egg": "12",
"git-contributor": "2",
"mm": "3",
"pedding": "1"
},
"scripts": {
"test": "egg-bin test",
"ci": "npm run lint && egg-bin cov",
"lint": "eslint .",
"contributor": "git-contributor"
},
"engines": {
"node": ">= 14.0.0"
},
"homepage": "https://github.com/node-modules/detect-port",
"license": "MIT"
}
2 changes: 0 additions & 2 deletions test/cli.test.js
@@ -1,5 +1,3 @@
'use strict';

const path = require('path');
const assert = require('assert');
const CliTest = require('command-line-test');
Expand Down
5 changes: 1 addition & 4 deletions test/detect-port.test.js
@@ -1,12 +1,9 @@
'use strict';

const mm = require('mm');
const dns = require('dns');
const net = require('net');
const pedding = require('pedding');
const address = require('address');
const assert = require('power-assert');

const assert = require('assert');
const detectPort = require('..');

describe('test/detect-port.test.js', () => {
Expand Down
3 changes: 0 additions & 3 deletions test/wait-port.test.js
@@ -1,8 +1,5 @@
'use strict';

const mm = require('mm');
const net = require('net');

const { waitPort } = require('..');

describe('test/wait-port.test.js', () => {
Expand Down

0 comments on commit 55f48d7

Please sign in to comment.