Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@babel/traverse

Package Overview
Dependencies
Maintainers
6
Versions
183
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/traverse - npm Package Compare versions

Comparing version 7.8.3 to 7.8.4

14

lib/scope/index.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc