babel-source 5.6.11 → 5.6.12
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.
- checksums.yaml +8 -8
- data/lib/babel.js +15 -16
- 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
|
+
ODE3ODBhYTJlNzg5ZWIwNjYyM2Y4YTc0NzQzZTE5NGNmYTg3M2YxYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YmI5YTEwNGY2NDdlNWFkZmYyY2RlZDMwOTgyMjQzMzBlNmY2ZTg4ZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MzY0Mzc2OTYwZmMwMGRlZmY4OTkyYjA3NDVmZDY0ZWQ1ZDYyYTQxYmQ1ZWE0
|
10
|
+
MTE3MzBkYjdhMzJhNTZiMjc4MzI4MDIzODcyYmFkYmU5ZjBiMWMwOTc1ZDZh
|
11
|
+
NWRjYTczYjg0NWQ4OTkwZDQ3ZDlhYTQ5MzhlYzY0MmNhNzhlODM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NTgwZDg0MjAxNTRjNGNkYzg2MWY2OTNmZjBiNDlkNWNjZmI2ZjNjYWVjYzBj
|
14
|
+
MGZkYTFkMmY4YzU0YjI3OTU5MDU1ZWRkMDRhMzM2NmVmNTM4ZWMwMDljYTNi
|
15
|
+
OTU3NTdlNmQwM2Y5NzYwMTU2ZGExODk2ZWRjYjAwYTI3Zjc4MTk=
|
data/lib/babel.js
CHANGED
@@ -18151,27 +18151,26 @@ function remap(path, key, create) {
|
|
18151
18151
|
// ensure that we're shadowed
|
18152
18152
|
if (!path.inShadow()) return;
|
18153
18153
|
|
18154
|
-
var
|
18154
|
+
var shadowFunction = path.node._shadowedFunctionLiteral;
|
18155
18155
|
var currentFunction;
|
18156
18156
|
|
18157
18157
|
var fnPath = path.findParent(function (path) {
|
18158
|
-
if (
|
18159
|
-
//
|
18160
|
-
|
18161
|
-
|
18162
|
-
|
18163
|
-
|
18158
|
+
if (path.isProgram() || path.isFunction()) {
|
18159
|
+
// catch current function in case this is the shadowed one and we can ignore it
|
18160
|
+
currentFunction = currentFunction || path;
|
18161
|
+
}
|
18162
|
+
|
18163
|
+
if (path.isProgram()) {
|
18164
|
+
return true;
|
18165
|
+
} else if (path.isFunction()) {
|
18166
|
+
if (shadowFunction) {
|
18167
|
+
return path === shadowFunction || path.node === shadowFunction.node;
|
18164
18168
|
} else {
|
18165
|
-
return
|
18169
|
+
return !path.is("shadow");
|
18166
18170
|
}
|
18167
|
-
} else if (path.isFunction() || path.isProgram()) {
|
18168
|
-
// catch current function in case this is the shadowed one
|
18169
|
-
if (!currentFunction) currentFunction = path;
|
18170
|
-
|
18171
|
-
return !path.is("shadow");
|
18172
|
-
} else {
|
18173
|
-
return false;
|
18174
18171
|
}
|
18172
|
+
|
18173
|
+
return false;
|
18175
18174
|
});
|
18176
18175
|
|
18177
18176
|
// no point in realiasing if we're in this function
|
@@ -64581,7 +64580,7 @@ module.exports = function (str) {
|
|
64581
64580
|
module.exports={
|
64582
64581
|
"name": "babel-core",
|
64583
64582
|
"description": "A compiler for writing next generation JavaScript",
|
64584
|
-
"version": "5.6.
|
64583
|
+
"version": "5.6.12",
|
64585
64584
|
"author": "Sebastian McKenzie <sebmck@gmail.com>",
|
64586
64585
|
"homepage": "https://babeljs.io/",
|
64587
64586
|
"license": "MIT",
|
data/lib/babel/source.rb
CHANGED