Socket
Socket
Sign inDemoInstall

@babel/traverse

Package Overview
Dependencies
30
Maintainers
5
Versions
168
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.1.5 to 7.1.6

4

lib/path/modification.js

@@ -107,3 +107,5 @@ "use strict";

if (parentPath.isExpressionStatement() || parentPath.isLabeledStatement() || parentPath.isExportNamedDeclaration() || parentPath.isExportDefaultDeclaration() && this.isDeclaration()) {
return parentPath.insertAfter(nodes);
return parentPath.insertAfter(nodes.map(node => {
return t().isExpression(node) ? t().expressionStatement(node) : node;
}));
} else if (this.isNodeType("Expression") && !this.isJSXElement() || parentPath.isForStatement() && this.key === "init") {

@@ -110,0 +112,0 @@ if (this.node) {

{
"name": "@babel/traverse",
"version": "7.1.5",
"version": "7.1.6",
"description": "The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes",

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

"@babel/code-frame": "^7.0.0",
"@babel/generator": "^7.1.5",
"@babel/generator": "^7.1.6",
"@babel/helper-function-name": "^7.1.0",
"@babel/helper-split-export-declaration": "^7.0.0",
"@babel/parser": "^7.1.5",
"@babel/types": "^7.1.5",
"debug": "^3.1.0",
"@babel/parser": "^7.1.6",
"@babel/types": "^7.1.6",
"debug": "^4.1.0",
"globals": "^11.1.0",

@@ -23,0 +23,0 @@ "lodash": "^4.17.10"

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