Skip to content

Commit 131a617

Browse files
committed
Bump meriyah
1 parent ca507d4 commit 131a617

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"typescript": "^5.3.3"
3434
},
3535
"dependencies": {
36-
"meriyah": "^4.3.9"
36+
"meriyah": "^6.0.3"
3737
},
3838
"files": [
3939
"lib/**/*"

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,9 +519,9 @@ export function multiQuery<T extends Record<string, string>>(code: string | ASTN
519519

520520
export function parseSource(source: string) : ASTNode {
521521
try {
522-
return parseScript(source, { module: true, next: true, specDeviation: true});
522+
return parseScript(source, { module: true, next: true });
523523
} catch(e) {
524-
return parseScript(source, { module: false, next: true, specDeviation: true});
524+
return parseScript(source, { module: false, next: true });
525525
}
526526
}
527527

src/nodeutils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ export const VISITOR_KEYS: Record<ESTree.Node["type"], string[]> = {
159159
FunctionExpression: ["id", "params", "body"],
160160
Identifier: [],
161161
IfStatement: ["test", "consequent", "alternate"],
162+
ImportAttribute: ["key", "value"],
162163
ImportDeclaration: ["specifiers", "source"],
163164
ImportDefaultSpecifier: ["local"],
164165
ImportNamespaceSpecifier: ["local"],

0 commit comments

Comments
 (0)