Socket
Socket
Sign inDemoInstall

@babel/traverse

Package Overview
Dependencies
Maintainers
5
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.36 to 7.0.0-beta.37

4

lib/path/modification.js

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

if (this.parentPath.isExpressionStatement() || this.parentPath.isLabeledStatement() || this.parentPath.isExportDeclaration()) {
if (this.parentPath.isExpressionStatement() || this.parentPath.isLabeledStatement() || this.parentPath.isExportNamedDeclaration() || this.parentPath.isExportDefaultDeclaration() && this.isDeclaration()) {
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() || this.parentPath.isExportDeclaration()) {
if (this.parentPath.isExpressionStatement() || this.parentPath.isLabeledStatement() || this.parentPath.isExportNamedDeclaration() || this.parentPath.isExportDefaultDeclaration() && this.isDeclaration()) {
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.36",
"version": "7.0.0-beta.37",
"description": "The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes",

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

"dependencies": {
"@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",
"@babel/code-frame": "7.0.0-beta.37",
"@babel/helper-function-name": "7.0.0-beta.37",
"@babel/types": "7.0.0-beta.37",
"babylon": "7.0.0-beta.37",
"debug": "^3.0.1",

@@ -22,5 +22,5 @@ "globals": "^11.1.0",

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