Skip to content
This repository was archived by the owner on Feb 1, 2022. It is now read-only.

Commit b4d3c1a

Browse files
committed
chore: Update dependencies
Update ESLint and tap to quell warnings from `npm audit` and the GitHub interface. ESLint update required some changes to other files as indentation rules are now more strictly enforced. I'm seeing tests failing locally but that was the case before I updated anything too, so hopefully this passes on Travis-CI or whatever.
1 parent 680e738 commit b4d3c1a

4 files changed

Lines changed: 24 additions & 24 deletions

File tree

lib/_inspect.js

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ const runAsStandalone = typeof __dirname !== 'undefined';
3030
const [ InspectClient, createRepl ] =
3131
runAsStandalone ?
3232
// This copy of node-inspect is on-disk, relative paths make sense.
33-
[
34-
require('./internal/inspect_client'),
35-
require('./internal/inspect_repl')
36-
] :
33+
[
34+
require('./internal/inspect_client'),
35+
require('./internal/inspect_repl')
36+
] :
3737
// This copy of node-inspect is built into the node executable.
38-
[
39-
require('node-inspect/lib/internal/inspect_client'),
40-
require('node-inspect/lib/internal/inspect_repl')
41-
];
38+
[
39+
require('node-inspect/lib/internal/inspect_client'),
40+
require('node-inspect/lib/internal/inspect_repl')
41+
];
4242

4343
const debuglog = util.debuglog('inspect');
4444

@@ -50,7 +50,7 @@ class StartupError extends Error {
5050
}
5151

5252
function portIsFree(host, port, timeout = 2000) {
53-
if (port === 0) return Promise.resolve(); // Binding to a random port.
53+
if (port === 0) return Promise.resolve(); // Binding to a random port.
5454

5555
const retryDelay = 150;
5656
let didTimeOut = false;
@@ -96,9 +96,9 @@ function runScript(script, scriptArgs, inspectHost, inspectPort, childPrint) {
9696
return new Promise((resolve) => {
9797
const needDebugBrk = process.version.match(/^v(6|7)\./);
9898
const args = (needDebugBrk ?
99-
['--inspect', `--debug-brk=${inspectPort}`] :
100-
[`--inspect-brk=${inspectPort}`])
101-
.concat([script], scriptArgs);
99+
['--inspect', `--debug-brk=${inspectPort}`] :
100+
[`--inspect-brk=${inspectPort}`])
101+
.concat([script], scriptArgs);
102102
const child = spawn(process.execPath, args);
103103
child.stdout.setEncoding('utf8');
104104
child.stderr.setEncoding('utf8');
@@ -154,11 +154,11 @@ class NodeInspector {
154154

155155
if (options.script) {
156156
this._runScript = runScript.bind(null,
157-
options.script,
158-
options.scriptArgs,
159-
options.host,
160-
options.port,
161-
this.childPrint.bind(this));
157+
options.script,
158+
options.scriptArgs,
159+
options.host,
160+
options.port,
161+
this.childPrint.bind(this));
162162
} else {
163163
this._runScript =
164164
() => Promise.resolve([null, options.port, options.host]);
@@ -333,8 +333,8 @@ function parseArgv([target, ...args]) {
333333
}
334334

335335
function startInspect(argv = process.argv.slice(2),
336-
stdin = process.stdin,
337-
stdout = process.stdout) {
336+
stdin = process.stdin,
337+
stdout = process.stdout) {
338338
/* eslint-disable no-console */
339339
if (argv.length < 1) {
340340
const invokedAs = runAsStandalone ?

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
},
2828
"dependencies": {},
2929
"devDependencies": {
30-
"eslint": "^3.10.2",
30+
"eslint": "^6.0.1",
3131
"nlm": "^3.0.0",
32-
"tap": "^10.7.0"
32+
"tap": "^14.4.2"
3333
},
3434
"author": {
3535
"name": "Jan Krems",

test/cli/invalid-args.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ test('launch w/ invalid host:port', (t) => {
2727
});
2828
});
2929

30-
test('launch w/ unavailable port', async (t) => {
30+
test('launch w/ unavailable port', async(t) => {
3131
const blocker = createServer((socket) => socket.end());
3232
const port = await new Promise((resolve, reject) => {
3333
blocker.on('error', reject);

test/cli/start-cli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ tap.test('startCLI', (t) => t.end());
88

99
const CLI =
1010
process.env.USE_EMBEDDED_NODE_INSPECT === '1' ?
11-
'inspect' :
12-
require.resolve('../../cli.js');
11+
'inspect' :
12+
require.resolve('../../cli.js');
1313

1414
const BREAK_MESSAGE = new RegExp('(?:' + [
1515
'assert', 'break', 'break on start', 'debugCommand',

0 commit comments

Comments
 (0)