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

babel-generator

Package Overview
Dependencies
Maintainers
1
Versions
94
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 6.0.12 to 6.0.14

2

lib/generators/types.js

@@ -79,3 +79,3 @@ /* @flow */

// shorthand!
if (node.shorthand && (t.isIdentifier(node.key) && t.isIdentifier(node.value) && node.key.name === node.value.name)) {
if (node.shorthand && t.isIdentifier(node.key) && t.isIdentifier(node.value) && node.key.name === node.value.name) {
return;

@@ -82,0 +82,0 @@ }

@@ -18,2 +18,3 @@ /* @flow */

exports.FunctionExpression = FunctionExpression;
exports.ArrowFunctionExpression = ArrowFunctionExpression;
exports.ConditionalExpression = ConditionalExpression;

@@ -181,2 +182,6 @@ exports.AssignmentExpression = AssignmentExpression;

return ArrowFunctionExpression(node, parent);
}
function ArrowFunctionExpression(node /*: Object*/, parent /*: Object*/) /*: boolean*/ {
// export default (function () {});

@@ -183,0 +188,0 @@ if (t.isExportDeclaration(parent)) {

{
"name": "babel-generator",
"version": "6.0.12",
"version": "6.0.14",
"description": "Turns an AST into code.",

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

"license": "MIT",
"repository": "babel/babel",
"repository": "https://github.com/babel/babel/tree/master/packages/babel-generator",
"main": "lib/index.js",
"files": [
"lib"
],
"dependencies": {
"babel-messages": "^6.0.12",
"babel-runtime": "^6.0.12",
"babel-types": "^6.0.12",
"babel-messages": "^6.0.14",
"babel-runtime": "^6.0.14",
"babel-types": "^6.0.14",
"detect-indent": "^3.0.1",

@@ -23,4 +26,4 @@ "is-integer": "^1.0.4",

"devDependencies": {
"babel-helper-fixtures": "^6.0.2"
"babel-helper-fixtures": "^6.0.14"
}
}
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