babel-source 5.1.1 → 5.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/babel.js +9 -4
- data/lib/babel/source.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YWRiNTllN2Q0YmVhZTMwNWQxNDNkOGU2N2NhYmI5YTE0M2M1MGQ1ZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODY2N2UyNjQ4MGE4MDRjMzJlNWQyZTVmNDY1N2FlZjIxZDhjNDA3Nw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
N2VmNGIxMGQ2OTdiYzgyYThlYmE0YTMyMjI2Mjk1MjY1ZTcyNGEyYzIwNTMw
|
10
|
+
OGU0YmVmNzRlYzIwYmFiYmViNWIxMmM1NzgxMzMyNzA1NzY4NDAxNDNjMjJk
|
11
|
+
N2YzZjVmZjIxODNiNDZiNmNlN2RhNTY1ODYzOGM4NWE2OWMwY2U=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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-
|
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 (
|
18462
|
+
if (!matches(node.name)) return false;
|
18458
18463
|
} else if (t.isLiteral(node)) {
|
18459
18464
|
// this part doesn't match
|
18460
|
-
if (
|
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.
|
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