babel-source 5.8.13 → 5.8.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +8 -8
  2. data/lib/babel.js +16 -5
  3. data/lib/babel/source.rb +2 -2
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZWZhZDdkODA0ZmQ2ZTYzNjE1MmUyN2RjMTcyMGJkMGE1YTgyODY4MQ==
4
+ NTA3YzQ2NWNmNGEwZGE5NmIyYWNlZGUxZDhkMTgyYjE0ZDJjZWI0NA==
5
5
  data.tar.gz: !binary |-
6
- NzExNDBkNTg2MjIyNmZlNGVmNmY3MTcyZWZhMTY4NGRkNGMzZTU4Mg==
6
+ MTVmZDU3NGViMWNlYmFkMTliNWMyODM3OTUyOGViYjk3MmZhNjVjYg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MzU2ZjFlNjFjOTU4YTc5Y2FiMGMzNGRlMDZhODhhN2RiNjVkMDI4NTA2NzY3
10
- ZmI2MzU0YjE0OGVlMDJiNWY4YzhmNmE5MzI3Njk0MGFiMWY1YjMzMTUwNmY1
11
- YzkzODNjZjlhMTZlODIzOTJjYmFiMzMwNWM2YzQwNDVmNjkxNjU=
9
+ NmM1MWUxMDM0NzZmM2ZkZjc2YWFkNzc5Y2VjZmY3MTJmNTVlZjE4YzdhODk3
10
+ NTFlZDk4OWIwMTRkNGM1ZTUwM2NhNWFjOGU5ZTk1ZTA2Mjk5OGI3N2EyYjg3
11
+ ZjY1NzllOGI4MDg3MzRiZmYyY2ZjYmU1YTNjMjFiYTQ4MDJkOWY=
12
12
  data.tar.gz: !binary |-
13
- MDZjMDAzYjVhYzAyNmQzOGZkZmNjMTZjZDZmZmUxN2NhOWI4MjU5MDYxZDhj
14
- ZjY5NGMyMmRiNTI3MjUyNWVmNmI0NmI4NmUyODM1YzZmZTAxOTcwZWQwMTBh
15
- ZDE0OWQ2OTI0OGI4ZDRlYWVmZTIyZjhkZGE3ODFmMTk1MDBiYzQ=
13
+ ZWFlZTViODc2Y2JhZWM5MDJmMTgzODIyMGQ1ZGZmM2ViOTQwMjU2NzMxMDM2
14
+ NTZlN2FmN2Q4NDUxOWQzYTU1NTBlNjE1MmQzOGQ5ZTlmN2U5YTdmN2YyZjgx
15
+ NTFmZDIxMDZkOTg4NDBhZWUwNDg3NTg0NTA0YTU0MjZmNzUxYjM=
@@ -9985,10 +9985,10 @@ exports["default"] = function (lines, lineNumber, colNumber) {
9985
9985
  }).join("\n");
9986
9986
 
9987
9987
  if (highlighted) {
9988
- frame = _chalk2["default"].reset() + frame;
9988
+ return _chalk2["default"].reset(frame);
9989
+ } else {
9990
+ return frame;
9989
9991
  }
9990
-
9991
- return frame;
9992
9992
  };
9993
9993
 
9994
9994
  module.exports = exports["default"];
@@ -27737,8 +27737,19 @@ var Scope = (function () {
27737
27737
  */
27738
27738
 
27739
27739
  Scope.prototype.removeBinding = function removeBinding(name) {
27740
+ // clear literal binding
27740
27741
  var info = this.getBinding(name);
27741
- if (info) info.scope.removeOwnBinding(name);
27742
+ if (info) {
27743
+ info.scope.removeOwnBinding(name);
27744
+ }
27745
+
27746
+ // clear uids with this name - https://github.com/babel/babel/issues/2101
27747
+ var scope = this;
27748
+ do {
27749
+ if (scope.uids[name]) {
27750
+ scope.uids[name] = false;
27751
+ }
27752
+ } while (scope = scope.parent);
27742
27753
  };
27743
27754
 
27744
27755
  _createClass(Scope, null, [{
@@ -68400,7 +68411,7 @@ resolve.relative = function (loc) {
68400
68411
  },{"_process":12,"module":1}],552:[function(require,module,exports){
68401
68412
  module.exports={
68402
68413
  "name": "babel-core",
68403
- "version": "5.8.12",
68414
+ "version": "5.8.14",
68404
68415
  "description": "A compiler for writing next generation JavaScript",
68405
68416
  "author": "Sebastian McKenzie <sebmck@gmail.com>",
68406
68417
  "homepage": "https://babeljs.io/",
@@ -1,7 +1,7 @@
1
1
  module Babel
2
2
  module Source
3
- VERSION = "5.8.13"
4
- DATE = Time.at(1438087260)
3
+ VERSION = "5.8.14"
4
+ DATE = Time.at(1438105208)
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: 5.8.13
4
+ version: 5.8.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian McKenzie