Socket
Socket
Sign inDemoInstall

babel-traverse

Package Overview
Dependencies
23
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.0.14 to 6.0.16

16

lib/path/index.js

@@ -97,2 +97,14 @@ /* @flow */

if (path && !(path instanceof NodePath)) {
if (path.constructor.name === "NodePath") {
// we're going to absolutley thrash the tree and allocate way too many node paths
// than is necessary but there's no way around this as the node module resolution
// algorithm is ridiculous
path = null;
} else {
// badly deserialised probably
throw new Error("We found a path that isn't a NodePath instance. Possiblly due to bad serialisation.");
}
}
if (!path) {

@@ -103,6 +115,2 @@ path = new NodePath(hub, parent);

if (!(path instanceof NodePath)) {
throw new Error("We found a path that isn't a NodePath instance");
}
path.setup(parentPath, container, listKey, key);

@@ -109,0 +117,0 @@

{
"name": "babel-traverse",
"version": "6.0.14",
"version": "6.0.16",
"description": "",

@@ -21,2 +21,2 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>",

}
}
}
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc