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
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.6.4 to 6.6.5

19

lib/generators/jsx.js
"use strict";
var _getIterator = require("babel-runtime/core-js/get-iterator")["default"];
exports.__esModule = true;

@@ -64,16 +62,5 @@ exports.JSXAttribute = JSXAttribute;

this.indent();
for (var _iterator = node.children, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _getIterator(_iterator);;) {
var _ref;
if (_isArray) {
if (_i >= _iterator.length) break;
_ref = _iterator[_i++];
} else {
_i = _iterator.next();
if (_i.done) break;
_ref = _i.value;
}
var child = _ref;
var _arr = node.children;
for (var _i = 0; _i < _arr.length; _i++) {
var child = _arr[_i];
this.print(child, node);

@@ -80,0 +67,0 @@ }

"use strict";
var _getIterator = require("babel-runtime/core-js/get-iterator")["default"];
var _interopRequireDefault = require("babel-runtime/helpers/interop-require-default")["default"];

@@ -247,16 +245,6 @@

if (!t.isFor(parent)) {
for (var _iterator = node.declarations, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _getIterator(_iterator);;) {
var _ref;
var _arr = node.declarations;
if (_isArray) {
if (_i >= _iterator.length) break;
_ref = _iterator[_i++];
} else {
_i = _iterator.next();
if (_i.done) break;
_ref = _i.value;
}
var declar = _ref;
for (var _i = 0; _i < _arr.length; _i++) {
var declar = _arr[_i];
if (declar.init) {

@@ -263,0 +251,0 @@ // has an init so let's split it up over multiple lines

4

lib/index.js

@@ -80,4 +80,4 @@ "use strict";

if (code) {
var indent = _detectIndent2["default"](code).indent;
if (indent && indent !== " ") style = indent;
var _indent = _detectIndent2["default"](code).indent;
if (_indent && _indent !== " ") style = _indent;
}

@@ -84,0 +84,0 @@

@@ -1,2 +0,1 @@

/**

@@ -3,0 +2,0 @@ * Track current position in code generation.

@@ -9,4 +9,2 @@ /* eslint max-len: 0 */

var _getIterator = require("babel-runtime/core-js/get-iterator")["default"];
var _Object$assign = require("babel-runtime/core-js/object/assign")["default"];

@@ -366,16 +364,4 @@

for (var _iterator = comments, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _getIterator(_iterator);;) {
var _ref;
if (_isArray) {
if (_i >= _iterator.length) break;
_ref = _iterator[_i++];
} else {
_i = _iterator.next();
if (_i.done) break;
_ref = _i.value;
}
var comment = _ref;
for (var _i = 0; _i < comments.length; _i++) {
var comment = comments[_i];
this.printComment(comment);

@@ -382,0 +368,0 @@ }

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

@@ -14,5 +14,5 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>",

"dependencies": {
"babel-messages": "^6.6.0",
"babel-messages": "^6.6.5",
"babel-runtime": "^5.0.0",
"babel-types": "^6.6.4",
"babel-types": "^6.6.5",
"detect-indent": "^3.0.1",

@@ -26,5 +26,5 @@ "is-integer": "^1.0.4",

"devDependencies": {
"babel-helper-fixtures": "^6.6.4",
"babylon": "^6.6.4"
"babel-helper-fixtures": "^6.6.5",
"babylon": "^6.6.5"
}
}
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