babel-generator
Advanced tools
Comparing version 6.6.4 to 6.6.5
"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 |
@@ -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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
85049
2614
Updatedbabel-messages@^6.6.5
Updatedbabel-types@^6.6.5