babel-source 4.2.0 → 4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/babel.js +7 -5
  3. data/lib/babel/source.rb +2 -2
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1d8e472913fe88f7b5e75e5e81b5b3f207991f73
4
- data.tar.gz: 3bfe84daec685bb6f7d28987c623b76d550ca1f5
3
+ metadata.gz: 49ea625b4e1f7275ce18d34eaa20666a98b6feac
4
+ data.tar.gz: a2920ae955d5f482660fb74fdd407631661fbba3
5
5
  SHA512:
6
- metadata.gz: eb977fec8bc72a9b27f3d07cfd3bddcdef5d5a9f047d9aa8b3f13dd71d638f5394c93aaf150b236116e9ac8cdb33a0ca47b53f6404e3bffd09582588cd2605c2
7
- data.tar.gz: f3937dfc344ab0dd98d3ae54e79556fb6328b4d4f34babe708234bf26c41b6b14346cd47e88a41f1996b5bd13b13098c64ac2cf7bc7b56103e3f4d42fcdcb71c
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) body.push(retCheck);
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.0",
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
@@ -1,7 +1,7 @@
1
1
  module Babel
2
2
  module Source
3
- VERSION = "4.2.0"
4
- DATE = Time.at(1424219333)
3
+ VERSION = "4.2.1"
4
+ DATE = Time.at(1424219867)
5
5
  PATH = File.expand_path("../..", __FILE__)
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: babel-source
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.0
4
+ version: 4.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian McKenzie