update estree-walker - closes #3977, closes #3979

pull/3984/head
Richard Harris 5 years ago
parent cd21acfb3c
commit 1a34a5e552

6
package-lock.json generated

@ -1190,9 +1190,9 @@
"dev": true "dev": true
}, },
"estree-walker": { "estree-walker": {
"version": "0.8.1", "version": "1.0.0",
"resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.8.1.tgz", "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.0.tgz",
"integrity": "sha512-H6cJORkqvrNziu0KX2hqOMAlA2CiuAxHeGJXSIoKA/KLv229Dw806J3II6mKTm5xiDX1At1EXCfsOQPB+tMB+g==", "integrity": "sha512-vY6xMN2j47HfQfVWGRqHshr1olf+XS1Y488NoqjDP1c8E1TcoZr/D3eSGa6akBs76WL1X9nluWjgBsCKdt/qKg==",
"dev": true "dev": true
}, },
"esutils": { "esutils": {

@ -70,7 +70,7 @@
"eslint": "^6.3.0", "eslint": "^6.3.0",
"eslint-plugin-import": "^2.18.2", "eslint-plugin-import": "^2.18.2",
"eslint-plugin-svelte3": "^2.7.3", "eslint-plugin-svelte3": "^2.7.3",
"estree-walker": "^0.8.1", "estree-walker": "^1.0.0",
"is-reference": "^1.1.4", "is-reference": "^1.1.4",
"jsdom": "^15.1.1", "jsdom": "^15.1.1",
"kleur": "^3.0.3", "kleur": "^3.0.3",

@ -1,4 +1,4 @@
import { walk, childKeys } from 'estree-walker'; import { walk } from 'estree-walker';
import { getLocator } from 'locate-character'; import { getLocator } from 'locate-character';
import Stats from '../Stats'; import Stats from '../Stats';
import { globals, reserved, is_valid } from '../utils/names'; import { globals, reserved, is_valid } from '../utils/names';
@ -37,13 +37,6 @@ interface ComponentOptions {
preserveWhitespace?: boolean; preserveWhitespace?: boolean;
} }
// We need to tell estree-walker that it should always
// look for an `else` block, otherwise it might get
// the wrong idea about the shape of each/if blocks
childKeys.EachBlock = childKeys.IfBlock = ['children', 'else'];
childKeys.Attribute = ['value'];
childKeys.ExportNamedDeclaration = ['declaration', 'specifiers'];
export default class Component { export default class Component {
stats: Stats; stats: Stats;
warnings: Warning[]; warnings: Warning[];

Loading…
Cancel
Save