@babel/traverse 7.17.3 → 7.17.9

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.

@@ -120,7 +120,7 @@ function isStatementOrBlock() {
120
120
 
121
121
  function referencesImport(moduleSource, importName) {
122
122
  if (!this.isReferencedIdentifier()) {
123
- if ((this.isMemberExpression() || this.isOptionalMemberExpression()) && (this.node.computed ? isStringLiteral(this.node.property, {
123
+ if (this.isJSXMemberExpression() && this.node.property.name === importName || (this.isMemberExpression() || this.isOptionalMemberExpression()) && (this.node.computed ? isStringLiteral(this.node.property, {
124
124
  value: importName
125
125
  }) : this.node.property.name === importName)) {
126
126
  const object = this.get("object");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babel/traverse",
3
- "version": "7.17.3",
3
+ "version": "7.17.9",
4
4
  "description": "The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes",
5
5
  "author": "The Babel Team (https://babel.dev/team)",
6
6
  "homepage": "https://babel.dev/docs/en/next/babel-traverse",
@@ -17,12 +17,12 @@
17
17
  "main": "./lib/index.js",
18
18
  "dependencies": {
19
19
  "@babel/code-frame": "^7.16.7",
20
- "@babel/generator": "^7.17.3",
20
+ "@babel/generator": "^7.17.9",
21
21
  "@babel/helper-environment-visitor": "^7.16.7",
22
- "@babel/helper-function-name": "^7.16.7",
22
+ "@babel/helper-function-name": "^7.17.9",
23
23
  "@babel/helper-hoist-variables": "^7.16.7",
24
24
  "@babel/helper-split-export-declaration": "^7.16.7",
25
- "@babel/parser": "^7.17.3",
25
+ "@babel/parser": "^7.17.9",
26
26
  "@babel/types": "^7.17.0",
27
27
  "debug": "^4.1.0",
28
28
  "globals": "^11.1.0"