babel-source 5.1.1 → 5.1.2

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 +8 -8
  2. data/lib/babel.js +9 -4
  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
- YmU0ZWVkMTk2MGNiNzQ3YTg1NjA5ZTlhMzU4MWI2NGE1MDU5MjhiOA==
4
+ YWRiNTllN2Q0YmVhZTMwNWQxNDNkOGU2N2NhYmI5YTE0M2M1MGQ1ZQ==
5
5
  data.tar.gz: !binary |-
6
- NTk0MGM0NGE1ZDJkNjQwZmRjOWJlMDMxNDExZGMyMzQzY2ZlNjliYw==
6
+ ODY2N2UyNjQ4MGE4MDRjMzJlNWQyZTVmNDY1N2FlZjIxZDhjNDA3Nw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- M2JlNmNkNDdmNDI0YmQxMTFkMGVhN2JiMzg4YjRlNjYwOGMxNzg4NGZjMDBk
10
- MDI4OGJlNjJmZDQ2ZjE2NzE0MDY2NjZiZmY1YzBmMTllMmNlNzI2YzFkMjlk
11
- OTRhODZhZjBhNGFhMTNiM2I4ZTM0ZDY4ZGViNWQ5YjA3ZDg5N2E=
9
+ N2VmNGIxMGQ2OTdiYzgyYThlYmE0YTMyMjI2Mjk1MjY1ZTcyNGEyYzIwNTMw
10
+ OGU0YmVmNzRlYzIwYmFiYmViNWIxMmM1NzgxMzMyNzA1NzY4NDAxNDNjMjJk
11
+ N2YzZjVmZjIxODNiNDZiNmNlN2RhNTY1ODYzOGM4NWE2OWMwY2U=
12
12
  data.tar.gz: !binary |-
13
- MDMxYzc2Y2JjNzA3YjAxYzM3NDg2OTA5ODE4NDNkOTIyNzEyNzU0MGI5Njc3
14
- MmY4MTcwOWIyZmMzZmZkMWI4MDhiOTMxOTgxZmYxOGE3MjU1MDczZmViMDA4
15
- NTIxYTRiN2I2MDQ5ODgzYmZhYzYyMzA0ODIyZTM0NjQyN2JmMDQ=
13
+ Y2YyYWNjOTI5Y2U0ZTkxZTYwYjBmOGYxNDU5MjVjN2FhY2Q1MGEzMmVkNGI2
14
+ ZDZkMmZhODNjYzczNjQ5MmNhN2U0ZmYxOTJmZTA5YTkzYjkxM2M0ZGZiMWFj
15
+ YmYxYTIzZWQ0YmYwMGVkYWUwMmRjMjQyOWYwMWIzZDBlZjZmMTg=
data/lib/babel.js CHANGED
@@ -16594,7 +16594,7 @@ var astVisitor = {
16594
16594
  var left = node.left;
16595
16595
  if (!isSymbolIterator(left)) return;
16596
16596
 
16597
- return t.callExpression(file.addImport("" + RUNTIME_MODULE_NAME + "/core-js/is-iterator", "isIterable", true), [node.right]);
16597
+ return t.callExpression(file.addImport("" + RUNTIME_MODULE_NAME + "/core-js/is-iterable", "isIterable", true), [node.right]);
16598
16598
  }
16599
16599
  }
16600
16600
  };
@@ -18445,6 +18445,11 @@ var TraversalPath = (function () {
18445
18445
  var search = [this.node];
18446
18446
  var i = 0;
18447
18447
 
18448
+ function matches(name) {
18449
+ var part = parts[i];
18450
+ return part === "*" || name === part;
18451
+ }
18452
+
18448
18453
  while (search.length) {
18449
18454
  var node = search.shift();
18450
18455
 
@@ -18454,10 +18459,10 @@ var TraversalPath = (function () {
18454
18459
 
18455
18460
  if (t.isIdentifier(node)) {
18456
18461
  // this part doesn't match
18457
- if (parts[i] !== node.name) return false;
18462
+ if (!matches(node.name)) return false;
18458
18463
  } else if (t.isLiteral(node)) {
18459
18464
  // this part doesn't match
18460
- if (parts[i] !== node.value) return false;
18465
+ if (!matches(node.value)) return false;
18461
18466
  } else if (t.isMemberExpression(node)) {
18462
18467
  if (node.computed && !t.isLiteral(node.property)) {
18463
18468
  // we can't deal with this
@@ -77285,7 +77290,7 @@ module.exports = function (str) {
77285
77290
  module.exports={
77286
77291
  "name": "babel-core",
77287
77292
  "description": "Turn ES6 code into readable vanilla ES5 with source maps",
77288
- "version": "5.1.1",
77293
+ "version": "5.1.2",
77289
77294
  "author": "Sebastian McKenzie <sebmck@gmail.com>",
77290
77295
  "homepage": "https://babeljs.io/",
77291
77296
  "repository": "babel/babel",
data/lib/babel/source.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Babel
2
2
  module Source
3
- VERSION = "5.1.1"
4
- DATE = Time.at(1428909232)
3
+ VERSION = "5.1.2"
4
+ DATE = Time.at(1428911563)
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.1.1
4
+ version: 5.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian McKenzie