@babel/traverse
Advanced tools
Comparing version 7.8.3 to 7.8.4
@@ -149,10 +149,10 @@ "use strict"; | ||
if (scope.path === path) scope = scope.parent; | ||
scope.getBlockParent().registerDeclaration(path); | ||
}, | ||
const parent = scope.getBlockParent(); | ||
parent.registerDeclaration(path); | ||
ClassDeclaration(path) { | ||
const id = path.node.id; | ||
if (!id) return; | ||
const name = id.name; | ||
path.scope.bindings[name] = path.scope.getBinding(name); | ||
if (path.isClassDeclaration() && path.node.id) { | ||
const id = path.node.id; | ||
const name = id.name; | ||
path.scope.bindings[name] = path.scope.parent.getBinding(name); | ||
} | ||
}, | ||
@@ -159,0 +159,0 @@ |
{ | ||
"name": "@babel/traverse", | ||
"version": "7.8.3", | ||
"version": "7.8.4", | ||
"description": "The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes", | ||
@@ -15,6 +15,6 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>", | ||
"@babel/code-frame": "^7.8.3", | ||
"@babel/generator": "^7.8.3", | ||
"@babel/generator": "^7.8.4", | ||
"@babel/helper-function-name": "^7.8.3", | ||
"@babel/helper-split-export-declaration": "^7.8.3", | ||
"@babel/parser": "^7.8.3", | ||
"@babel/parser": "^7.8.4", | ||
"@babel/types": "^7.8.3", | ||
@@ -28,3 +28,3 @@ "debug": "^4.1.0", | ||
}, | ||
"gitHead": "a7620bd266ae1345975767bbc7abf09034437017" | ||
"gitHead": "5c2e6bc07fed3d28801d93168622c99ae622653a" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
154034
Updated@babel/generator@^7.8.4
Updated@babel/parser@^7.8.4