@babel/traverse 7.13.15 → 7.13.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of @babel/traverse might be problematic. Click here for more details.

@@ -176,7 +176,7 @@ function _getCompletionRecords(path, context) {
176
176
  if (path.isIfStatement()) {
177
177
  records = addCompletionRecords(path.get("consequent"), records, context);
178
178
  records = addCompletionRecords(path.get("alternate"), records, context);
179
- } else if (path.isDoExpression() || path.isFor() || path.isWhile()) {
179
+ } else if (path.isDoExpression() || path.isFor() || path.isWhile() || path.isLabeledStatement()) {
180
180
  records = addCompletionRecords(path.get("body"), records, context);
181
181
  } else if (path.isProgram() || path.isBlockStatement()) {
182
182
  records = records.concat(getStatementListCompletion(path.get("body"), context));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babel/traverse",
3
- "version": "7.13.15",
3
+ "version": "7.13.17",
4
4
  "description": "The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes",
5
5
  "author": "Sebastian McKenzie <sebmck@gmail.com>",
6
6
  "homepage": "https://babel.dev/docs/en/next/babel-traverse",
@@ -17,11 +17,11 @@
17
17
  "main": "lib/index.js",
18
18
  "dependencies": {
19
19
  "@babel/code-frame": "^7.12.13",
20
- "@babel/generator": "^7.13.9",
20
+ "@babel/generator": "^7.13.16",
21
21
  "@babel/helper-function-name": "^7.12.13",
22
22
  "@babel/helper-split-export-declaration": "^7.12.13",
23
- "@babel/parser": "^7.13.15",
24
- "@babel/types": "^7.13.14",
23
+ "@babel/parser": "^7.13.16",
24
+ "@babel/types": "^7.13.17",
25
25
  "debug": "^4.1.0",
26
26
  "globals": "^11.1.0"
27
27
  },