Skip to content

Update dev deps #138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 33 additions & 33 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,44 +22,44 @@
"semver": "^7.3.5"
},
"devDependencies": {
"@babel/core": "^7.15.0",
"@babel/eslint-parser": "^7.15.0",
"@babel/plugin-syntax-decorators": "^7.14.5",
"@babel/plugin-syntax-pipeline-operator": "^7.15.0",
"@babel/plugin-syntax-typescript": "^7.14.5",
"@types/debug": "0.0.30",
"@types/eslint": "^7.2.6",
"@types/estree": "0.0.45",
"@types/lodash": "^4.14.120",
"@types/mocha": "^5.2.4",
"@types/node": "^10.12.21",
"@types/semver": "^7.3.6",
"@typescript-eslint/eslint-plugin": "^5.0.0-0",
"@typescript-eslint/parser": "^5.0.0-0",
"chokidar": "^2.0.4",
"codecov": "^3.1.0",
"cross-spawn": "^6.0.5",
"@babel/core": "^7.16.0",
"@babel/eslint-parser": "^7.16.3",
"@babel/plugin-syntax-decorators": "^7.16.0",
"@babel/plugin-syntax-pipeline-operator": "^7.16.0",
"@babel/plugin-syntax-typescript": "^7.16.0",
"@types/debug": "^4.1.7",
"@types/eslint": "^7.29.0",
"@types/estree": "^0.0.50",
"@types/lodash": "^4.14.177",
"@types/mocha": "^9.0.0",
"@types/node": "^16.11.7",
"@types/semver": "^7.3.9",
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0",
"chokidar": "^3.5.2",
"codecov": "^3.8.3",
"cross-spawn": "^7.0.3",
"dts-bundle": "^0.7.3",
"eslint": "^8.0.0",
"eslint": "^8.2.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-jsonc": "^1.4.0",
"eslint-plugin-jsonc": "^2.0.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-node-dependencies": "^0.5.0",
"eslint-plugin-node-dependencies": "^0.6.0",
"eslint-plugin-prettier": "^4.0.0",
"fs-extra": "^7.0.1",
"jsonc-eslint-parser": "^0.6.0",
"mocha": "^6.1.4",
"fs-extra": "^10.0.0",
"jsonc-eslint-parser": "^2.0.3",
"mocha": "^9.1.3",
"npm-run-all": "^4.1.5",
"nyc": "^14.0.0",
"opener": "^1.5.1",
"prettier": "^2.3.1",
"rimraf": "^2.6.3",
"rollup": "^1.1.2",
"rollup-plugin-node-resolve": "^4.0.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"ts-node": "^8.1.0",
"typescript": "~4.0.5",
"wait-on": "^3.2.0",
"nyc": "^15.1.0",
"opener": "^1.5.2",
"prettier": "^2.4.1",
"rimraf": "^3.0.2",
"rollup": "^2.60.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-sourcemaps": "^0.6.3",
"ts-node": "^10.4.0",
"typescript": "~4.4.4",
"wait-on": "^6.0.0",
"warun": "^1.0.0"
},
"scripts": {
Expand Down
3 changes: 1 addition & 2 deletions src/common/create-require.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ export const createRequire: (filename: string) => (modname: string) => any =
// Added in v12.2.0
(Module as any).createRequire ||
// Added in v10.12.0, but deprecated in v12.2.0.
// eslint-disable-next-line node/no-deprecated-api
Module.createRequireFromPath ||
(Module as any).createRequireFromPath ||
// Polyfill - This is not executed on the tests on node@>=10.
/* istanbul ignore next */
((modname) => {
Expand Down
2 changes: 1 addition & 1 deletion src/external/node-event-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function tryParseSelector(rawSelector: string): Selector {
try {
return esquery.parse(rawSelector.replace(/:exit$/, ""))
}
catch (err) {
catch (err: any) {
if (typeof err.offset === "number") {
throw new Error(`Syntax error in selector "${rawSelector}" at position ${err.offset}: ${err.message}`)
}
Expand Down
7 changes: 5 additions & 2 deletions test/define-custom-blocks-visitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,13 @@ describe("parserServices.defineCustomBlocksVisitor tests", () => {
const messages = linter.verify(code, LINTER_CONFIG)

assert.strictEqual(messages.length, 3)
assert.strictEqual(messages[0].message, "Unexpected token :")
assert.strictEqual(messages[0].message, "Unexpected token ':'.")
assert.strictEqual(messages[0].line, 3)
assert.strictEqual(messages[0].column, 6)
assert.strictEqual(messages[1].message, "Unexpected end of expression.")
assert.strictEqual(
messages[1].message,
"Expected to be an expression, but got empty.",
)
assert.strictEqual(messages[1].line, 5)
assert.strictEqual(messages[1].column, 19)
assert.strictEqual(
Expand Down
1 change: 1 addition & 0 deletions test/fixtures/ast/multiple-scripts-with-ts/ast.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@
36,
58
],
"assertions": [],
"loc": {
"start": {
"line": 4,
Expand Down