Skip to content

Commit ac49d02

Browse files
authored
Update dev deps (#138)
* Update dev deps * update
1 parent a16cdbd commit ac49d02

File tree

5 files changed

+41
-38
lines changed

5 files changed

+41
-38
lines changed

Diff for: package.json

+33-33
Original file line numberDiff line numberDiff line change
@@ -22,44 +22,44 @@
2222
"semver": "^7.3.5"
2323
},
2424
"devDependencies": {
25-
"@babel/core": "^7.15.0",
26-
"@babel/eslint-parser": "^7.15.0",
27-
"@babel/plugin-syntax-decorators": "^7.14.5",
28-
"@babel/plugin-syntax-pipeline-operator": "^7.15.0",
29-
"@babel/plugin-syntax-typescript": "^7.14.5",
30-
"@types/debug": "0.0.30",
31-
"@types/eslint": "^7.2.6",
32-
"@types/estree": "0.0.45",
33-
"@types/lodash": "^4.14.120",
34-
"@types/mocha": "^5.2.4",
35-
"@types/node": "^10.12.21",
36-
"@types/semver": "^7.3.6",
37-
"@typescript-eslint/eslint-plugin": "^5.0.0-0",
38-
"@typescript-eslint/parser": "^5.0.0-0",
39-
"chokidar": "^2.0.4",
40-
"codecov": "^3.1.0",
41-
"cross-spawn": "^6.0.5",
25+
"@babel/core": "^7.16.0",
26+
"@babel/eslint-parser": "^7.16.3",
27+
"@babel/plugin-syntax-decorators": "^7.16.0",
28+
"@babel/plugin-syntax-pipeline-operator": "^7.16.0",
29+
"@babel/plugin-syntax-typescript": "^7.16.0",
30+
"@types/debug": "^4.1.7",
31+
"@types/eslint": "^7.29.0",
32+
"@types/estree": "^0.0.50",
33+
"@types/lodash": "^4.14.177",
34+
"@types/mocha": "^9.0.0",
35+
"@types/node": "^16.11.7",
36+
"@types/semver": "^7.3.9",
37+
"@typescript-eslint/eslint-plugin": "^5.4.0",
38+
"@typescript-eslint/parser": "^5.4.0",
39+
"chokidar": "^3.5.2",
40+
"codecov": "^3.8.3",
41+
"cross-spawn": "^7.0.3",
4242
"dts-bundle": "^0.7.3",
43-
"eslint": "^8.0.0",
43+
"eslint": "^8.2.0",
4444
"eslint-plugin-eslint-comments": "^3.2.0",
45-
"eslint-plugin-jsonc": "^1.4.0",
45+
"eslint-plugin-jsonc": "^2.0.0",
4646
"eslint-plugin-node": "^11.1.0",
47-
"eslint-plugin-node-dependencies": "^0.5.0",
47+
"eslint-plugin-node-dependencies": "^0.6.0",
4848
"eslint-plugin-prettier": "^4.0.0",
49-
"fs-extra": "^7.0.1",
50-
"jsonc-eslint-parser": "^0.6.0",
51-
"mocha": "^6.1.4",
49+
"fs-extra": "^10.0.0",
50+
"jsonc-eslint-parser": "^2.0.3",
51+
"mocha": "^9.1.3",
5252
"npm-run-all": "^4.1.5",
53-
"nyc": "^14.0.0",
54-
"opener": "^1.5.1",
55-
"prettier": "^2.3.1",
56-
"rimraf": "^2.6.3",
57-
"rollup": "^1.1.2",
58-
"rollup-plugin-node-resolve": "^4.0.0",
59-
"rollup-plugin-sourcemaps": "^0.4.2",
60-
"ts-node": "^8.1.0",
61-
"typescript": "~4.0.5",
62-
"wait-on": "^3.2.0",
53+
"nyc": "^15.1.0",
54+
"opener": "^1.5.2",
55+
"prettier": "^2.4.1",
56+
"rimraf": "^3.0.2",
57+
"rollup": "^2.60.0",
58+
"rollup-plugin-node-resolve": "^5.2.0",
59+
"rollup-plugin-sourcemaps": "^0.6.3",
60+
"ts-node": "^10.4.0",
61+
"typescript": "~4.4.4",
62+
"wait-on": "^6.0.0",
6363
"warun": "^1.0.0"
6464
},
6565
"scripts": {

Diff for: src/common/create-require.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ export const createRequire: (filename: string) => (modname: string) => any =
44
// Added in v12.2.0
55
(Module as any).createRequire ||
66
// Added in v10.12.0, but deprecated in v12.2.0.
7-
// eslint-disable-next-line node/no-deprecated-api
8-
Module.createRequireFromPath ||
7+
(Module as any).createRequireFromPath ||
98
// Polyfill - This is not executed on the tests on node@>=10.
109
/* istanbul ignore next */
1110
((modname) => {

Diff for: src/external/node-event-generator.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ function tryParseSelector(rawSelector: string): Selector {
143143
try {
144144
return esquery.parse(rawSelector.replace(/:exit$/, ""))
145145
}
146-
catch (err) {
146+
catch (err: any) {
147147
if (typeof err.offset === "number") {
148148
throw new Error(`Syntax error in selector "${rawSelector}" at position ${err.offset}: ${err.message}`)
149149
}

Diff for: test/define-custom-blocks-visitor.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -298,10 +298,13 @@ describe("parserServices.defineCustomBlocksVisitor tests", () => {
298298
const messages = linter.verify(code, LINTER_CONFIG)
299299

300300
assert.strictEqual(messages.length, 3)
301-
assert.strictEqual(messages[0].message, "Unexpected token :")
301+
assert.strictEqual(messages[0].message, "Unexpected token ':'.")
302302
assert.strictEqual(messages[0].line, 3)
303303
assert.strictEqual(messages[0].column, 6)
304-
assert.strictEqual(messages[1].message, "Unexpected end of expression.")
304+
assert.strictEqual(
305+
messages[1].message,
306+
"Expected to be an expression, but got empty.",
307+
)
305308
assert.strictEqual(messages[1].line, 5)
306309
assert.strictEqual(messages[1].column, 19)
307310
assert.strictEqual(

Diff for: test/fixtures/ast/multiple-scripts-with-ts/ast.json

+1
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@
138138
36,
139139
58
140140
],
141+
"assertions": [],
141142
"loc": {
142143
"start": {
143144
"line": 4,

0 commit comments

Comments
 (0)