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

@babel/generator

Package Overview
Dependencies
Maintainers
6
Versions
182
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/generator - npm Package Compare versions

Comparing version 7.9.4 to 7.9.5

13

lib/node/whitespace.js

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

function crawl(node, state = {}) {
if (t.isMemberExpression(node)) {
if (t.isMemberExpression(node) || t.isOptionalMemberExpression(node)) {
crawl(node.object, state);

@@ -22,3 +22,3 @@ if (node.computed) crawl(node.property, state);

crawl(node.right, state);
} else if (t.isCallExpression(node)) {
} else if (t.isCallExpression(node) || t.isOptionalCallExpression(node)) {
state.hasCall = true;

@@ -97,2 +97,11 @@ crawl(node.callee, state);

OptionalCallExpression(node) {
if (t.isFunction(node.callee)) {
return {
before: true,
after: true
};
}
},
VariableDeclaration(node) {

@@ -99,0 +108,0 @@ for (let i = 0; i < node.declarations.length; i++) {

6

package.json
{
"name": "@babel/generator",
"version": "7.9.4",
"version": "7.9.5",
"description": "Turns an AST into code.",

@@ -17,3 +17,3 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>",

"dependencies": {
"@babel/types": "^7.9.0",
"@babel/types": "^7.9.5",
"jsesc": "^2.5.1",

@@ -27,3 +27,3 @@ "lodash": "^4.17.13",

},
"gitHead": "d3cf5fb5f4b46a1f7e9e33f2d24a466e3ea1e50f"
"gitHead": "5b97e77e030cf3853a147fdff81844ea4026219d"
}
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