Comparing version 4.2.0 to 4.2.1
@@ -16,2 +16,7 @@ # Changelog | ||
## 4.2.1 | ||
* **Polish** | ||
* Add auxiliary comment to let scoping closure flow control. | ||
## 4.2.0 | ||
@@ -18,0 +23,0 @@ |
@@ -549,12 +549,14 @@ "use strict"; | ||
var single = cases[0]; | ||
body.push(t.ifStatement( | ||
body.push(this.file.attachAuxiliaryComment(t.ifStatement( | ||
t.binaryExpression("===", ret, single.test), | ||
single.consequent[0] | ||
)); | ||
))); | ||
} else { | ||
body.push(t.switchStatement(ret, cases)); | ||
body.push(this.file.attachAuxiliaryComment(t.switchStatement(ret, cases))); | ||
} | ||
} else { | ||
if (has.hasReturn) body.push(retCheck); | ||
if (has.hasReturn) { | ||
body.push(this.file.attachAuxiliaryComment(retCheck)); | ||
} | ||
} | ||
}; |
{ | ||
"name": "babel", | ||
"description": "Turn ES6 code into readable vanilla ES5 with source maps", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"author": "Sebastian McKenzie <sebmck@gmail.com>", | ||
@@ -6,0 +6,0 @@ "homepage": "https://babeljs.io/", |
Sorry, the diff of this file is too big to display
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
1608685
13203