babel-source 5.6.11 → 5.6.12

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 +15 -16
  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
- MzYwOTM1YWNjNjAyZGZkYjg4ZDIzOWJiOTBjM2I5OTk2MTQ3YjVmMA==
4
+ ODE3ODBhYTJlNzg5ZWIwNjYyM2Y4YTc0NzQzZTE5NGNmYTg3M2YxYQ==
5
5
  data.tar.gz: !binary |-
6
- NjQwYzEzNDE2NjBiZDFiMDRmZmYxYTg2ODQ5ZTRlYThiN2IxNjA2ZA==
6
+ YmI5YTEwNGY2NDdlNWFkZmYyY2RlZDMwOTgyMjQzMzBlNmY2ZTg4ZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MGRkMDE3NTVmNTYxMjNjMTJkNzM0YjU2NjVhZGRjZjg1MjE2OTk3NWZhODlm
10
- OTFhODJmMDNjODMyMDM0MGEwMzBiOWU2OTg2OGY2MTk0NDVlYWYyZDMxMjlk
11
- MmRlYTlkNzA3YmFkZmQyOGEwYThmZjIwZjNlYjQ4OGNlZmEyNjc=
9
+ MzY0Mzc2OTYwZmMwMGRlZmY4OTkyYjA3NDVmZDY0ZWQ1ZDYyYTQxYmQ1ZWE0
10
+ MTE3MzBkYjdhMzJhNTZiMjc4MzI4MDIzODcyYmFkYmU5ZjBiMWMwOTc1ZDZh
11
+ NWRjYTczYjg0NWQ4OTkwZDQ3ZDlhYTQ5MzhlYzY0MmNhNzhlODM=
12
12
  data.tar.gz: !binary |-
13
- ZGQ1YjU3NGVlY2E1ZTg3YWY4ZDBiYjM2ZjVhZjIzMjlhZGQ4YjBjYjJkODFi
14
- ZjlmY2Q3YTg3MWJhZDQyMzJiODk0ZjkwMmY1NDI2MzhmMTRjNGM1MGJkOTJj
15
- Y2ZkNjkxYjBiZGFmMTYwMjUzOGViYWFiZTJjYTRjNmNiOGIxZDY=
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 shadowed = path.node._shadowedFunctionLiteral;
18154
+ var shadowFunction = path.node._shadowedFunctionLiteral;
18155
18155
  var currentFunction;
18156
18156
 
18157
18157
  var fnPath = path.findParent(function (path) {
18158
- if (shadowed) {
18159
- // only match our shadowed function parent
18160
- if (path === shadowed) {
18161
- // found our target reference function
18162
- currentFunction = path;
18163
- return true;
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 false;
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.11",
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
@@ -1,7 +1,7 @@
1
1
  module Babel
2
2
  module Source
3
- VERSION = "5.6.11"
4
- DATE = Time.at(1435282744)
3
+ VERSION = "5.6.12"
4
+ DATE = Time.at(1435315240)
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.6.11
4
+ version: 5.6.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian McKenzie