Socket
Socket
Sign inDemoInstall

@babel/traverse

Package Overview
Dependencies
Maintainers
9
Versions
180
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.0.0-beta.35 to 7.0.0-beta.36

4

lib/path/lib/hoister.js

@@ -112,6 +112,2 @@ "use strict";

if (path.parentPath.isExportDeclaration()) {
path = path.parentPath;
}
return path;

@@ -118,0 +114,0 @@ };

4

lib/path/modification.js

@@ -32,3 +32,3 @@ "use strict";

if (this.parentPath.isExpressionStatement() || this.parentPath.isLabeledStatement()) {
if (this.parentPath.isExpressionStatement() || this.parentPath.isLabeledStatement() || this.parentPath.isExportDeclaration()) {
return this.parentPath.insertBefore(nodes);

@@ -110,3 +110,3 @@ } else if (this.isNodeType("Expression") && this.listKey !== "params" && this.listKey !== "arguments" || this.parentPath.isForStatement() && this.key === "init") {

if (this.parentPath.isExpressionStatement() || this.parentPath.isLabeledStatement()) {
if (this.parentPath.isExpressionStatement() || this.parentPath.isLabeledStatement() || this.parentPath.isExportDeclaration()) {
return this.parentPath.insertAfter(nodes);

@@ -113,0 +113,0 @@ } else if (this.isNodeType("Expression") || this.parentPath.isForStatement() && this.key === "init") {

{
"name": "@babel/traverse",
"version": "7.0.0-beta.35",
"version": "7.0.0-beta.36",
"description": "The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes",

@@ -11,8 +11,8 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>",

"dependencies": {
"@babel/code-frame": "7.0.0-beta.35",
"@babel/helper-function-name": "7.0.0-beta.35",
"@babel/types": "7.0.0-beta.35",
"babylon": "7.0.0-beta.35",
"@babel/code-frame": "7.0.0-beta.36",
"@babel/helper-function-name": "7.0.0-beta.36",
"@babel/types": "7.0.0-beta.36",
"babylon": "7.0.0-beta.36",
"debug": "^3.0.1",
"globals": "^10.0.0",
"globals": "^11.1.0",
"invariant": "^2.2.0",

@@ -22,5 +22,5 @@ "lodash": "^4.2.0"

"devDependencies": {
"@babel/generator": "7.0.0-beta.35",
"@babel/helper-plugin-test-runner": "7.0.0-beta.35"
"@babel/generator": "7.0.0-beta.36",
"@babel/helper-plugin-test-runner": "7.0.0-beta.36"
}
}
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