babel-source 4.2.0 → 4.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/babel.js +7 -5
- data/lib/babel/source.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49ea625b4e1f7275ce18d34eaa20666a98b6feac
|
4
|
+
data.tar.gz: a2920ae955d5f482660fb74fdd407631661fbba3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad62f4f27aaa77cdd16c72aa0530bd0ee7f211d0c3f2f99126779d3d92978fc6dd54602b18b7a53e2d50b791d0b38d4fdb8cc93f3761babbf5eab41c1c4e2b33
|
7
|
+
data.tar.gz: 8e6b321637dfbfb971f0c697f020aa2e7e5adf3d22209a5b4482721124c3611c6820a1117ca1ed9c5c19b6812009ee3c5026f08f3b9a325cb81a04499776e9f9
|
data/lib/babel.js
CHANGED
@@ -5647,15 +5647,17 @@ BlockScoping.prototype.buildHas = function (ret, call) {
|
|
5647
5647
|
|
5648
5648
|
if (cases.length === 1) {
|
5649
5649
|
var single = cases[0];
|
5650
|
-
body.push(t.ifStatement(
|
5650
|
+
body.push(this.file.attachAuxiliaryComment(t.ifStatement(
|
5651
5651
|
t.binaryExpression("===", ret, single.test),
|
5652
5652
|
single.consequent[0]
|
5653
|
-
));
|
5653
|
+
)));
|
5654
5654
|
} else {
|
5655
|
-
body.push(t.switchStatement(ret, cases));
|
5655
|
+
body.push(this.file.attachAuxiliaryComment(t.switchStatement(ret, cases)));
|
5656
5656
|
}
|
5657
5657
|
} else {
|
5658
|
-
if (has.hasReturn)
|
5658
|
+
if (has.hasReturn) {
|
5659
|
+
body.push(this.file.attachAuxiliaryComment(retCheck));
|
5660
|
+
}
|
5659
5661
|
}
|
5660
5662
|
};
|
5661
5663
|
|
@@ -42562,7 +42564,7 @@ module.exports = function (str) {
|
|
42562
42564
|
module.exports={
|
42563
42565
|
"name": "babel",
|
42564
42566
|
"description": "Turn ES6 code into readable vanilla ES5 with source maps",
|
42565
|
-
"version": "4.2.
|
42567
|
+
"version": "4.2.1",
|
42566
42568
|
"author": "Sebastian McKenzie <sebmck@gmail.com>",
|
42567
42569
|
"homepage": "https://babeljs.io/",
|
42568
42570
|
"repository": "babel/babel",
|
data/lib/babel/source.rb
CHANGED