Skip to content

Commit 48dfe47

Browse files
authored
Revert "feat: use address@2 (#53)" (#54)
This reverts commit 55f48d7.
1 parent 174fc43 commit 48dfe47

File tree

12 files changed

+114
-15
lines changed

12 files changed

+114
-15
lines changed

.eslintrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
module.exports = {
24
extends: 'eslint-config-egg',
35
parserOptions: {
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ "master" ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ "master" ]
20+
schedule:
21+
- cron: '38 21 * * 1'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: [ 'javascript' ]
36+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
38+
39+
steps:
40+
- name: Checkout repository
41+
uses: actions/checkout@v3
42+
43+
# Initializes the CodeQL tools for scanning.
44+
- name: Initialize CodeQL
45+
uses: github/codeql-action/init@v2
46+
with:
47+
languages: ${{ matrix.language }}
48+
# If you wish to specify custom queries, you can do so here or in a config file.
49+
# By default, queries listed here will override any specified in a config file.
50+
# Prefix the list here with "+" to use these queries and those in the config file.
51+
52+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
53+
# queries: security-extended,security-and-quality
54+
55+
56+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
57+
# If this step fails, then you should remove it and run the build manually (see below)
58+
- name: Autobuild
59+
uses: github/codeql-action/autobuild@v2
60+
61+
# ℹ️ Command-line programs to run using the OS shell.
62+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
63+
64+
# If the Autobuild fails above, remove it and uncomment the following three lines.
65+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
66+
67+
# - run: |
68+
# echo "Run, Build Application using script"
69+
# ./location_of_script_within_repo/buildscript.sh
70+
71+
- name: Perform CodeQL Analysis
72+
uses: github/codeql-action/analyze@v2
73+
with:
74+
category: "/language:${{matrix.language}}"

.github/workflows/nodejs.yml

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

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

.github/workflows/release.yml

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

7+
workflow_dispatch: {}
8+
79
jobs:
810
release:
911
name: Node.js
10-
uses: node-modules/github-actions/.github/workflows/node-release.yml@master
12+
uses: artusjs/github-actions/.github/workflows/node-release.yml@v1
1113
secrets:
1214
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1315
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 May 08 2024 15:54:54 GMT+0800`.
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`.
106106

107107
<!-- GITCONTRIBUTOR_END -->
108108

bin/detect-port.js

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

3+
'use strict';
4+
35
const pkg = require('../package');
46

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

lib/detect-port.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
'use strict';
2+
13
const net = require('net');
2-
const debug = require('util').debuglog('detect-port');
34
const address = require('address');
5+
const debug = require('debug')('detect-port');
46

57
module.exports = (port, callback) => {
68
let hostname = '';

lib/wait-port.js

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

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

package.json

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,18 @@
2121
"url": "git://github.com/node-modules/detect-port.git"
2222
},
2323
"dependencies": {
24-
"address": "^2.0.2"
24+
"address": "^1.0.1",
25+
"debug": "4"
2526
},
2627
"devDependencies": {
2728
"command-line-test": "1",
28-
"egg-bin": "6",
29-
"eslint": "8",
30-
"eslint-config-egg": "12",
31-
"git-contributor": "2",
32-
"mm": "3",
33-
"pedding": "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"
3436
},
3537
"scripts": {
3638
"test": "egg-bin test",
@@ -39,7 +41,7 @@
3941
"contributor": "git-contributor"
4042
},
4143
"engines": {
42-
"node": ">= 14.0.0"
44+
"node": ">= 4.0.0"
4345
},
4446
"homepage": "https://github.com/node-modules/detect-port",
4547
"license": "MIT"

test/cli.test.js

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

0 commit comments

Comments
 (0)