babel-source 5.4.5 → 5.4.6

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 +6 -2
  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
- Y2Y3NTFjMDRmYjQ5MmRmNjIwNWZhZWIyZTVhMjc1ZTczNTFjNmU1NQ==
4
+ NzI1Nzk5ZTlkNTBhMmM3MWY2YWJhMmVjYTY1ODhkNTk2NzUzZWFlMg==
5
5
  data.tar.gz: !binary |-
6
- MTcwNGJiZTJlMzM3YmIxMTQzODMzYTBjYTMwZjM5NjljZDIzYzA2OA==
6
+ MmZiNWRiNDg3M2NiNTZmNzQ0Y2U0OWJiNmM2MGU2Y2Y1NThmOGVlNg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NjQ1ODJkM2ExMDYzODMxZTRiNTIyNWE0MmY0ODFmMDAwY2Q3ZGVmZWVmYzgy
10
- ZjVhMTFmNzcxMjcxODQyOGZiMTE4ZDJiNTIwYjk1MjdiYjU2YjA0NjkwNjEy
11
- OGQxOTViYWNjZjk5Njk0NjAxMTk3YTJiNDk3NmNhNTlmOWQyMGY=
9
+ MjQ4MGVhZDQ5ZmQ3NTk0MTRhNjc0NDFkODFlYTM3ZmVkMzdlMTJkNDdlYWU2
10
+ ODlhOTcyM2M1NzE5OGU3ZDQxNjVhODRjMGRkZjM1ZTU4MjBjZWM1MTczZjBj
11
+ YWFhNzJjZGFmOGZjNDBkMDdlYWI0OWI1ZWZhZGFhMDJjMTI0MGM=
12
12
  data.tar.gz: !binary |-
13
- ODlkYjllM2FhNWI0M2QxNjU2YTk2OGNjYTQwNDU3Yjg1YzM5YjJiMjNlMzZk
14
- NzQwZGU1ZDU2MTJhOTQ2OTA5MjBiNzViYzA3ZTc2OTUyZThiZjg2YzJjNWRh
15
- NjMzZDBlYmFlYjQ4MTI5YTIxMWI2YmYzZDJmM2M4OWFiYWJmNTE=
13
+ Mjc3YmViMjhjMGNlZmFjOTA1MGU2YWZjNjdjYTdhNjQwYmJkZjNmMjkxYTVi
14
+ YmI5MWFlNmU1OTQzMjA3YjY4ZjMzMDQwNjM0NzljZTRhMTc4ODU1ZWQ5MWM5
15
+ OWIxMWQxMWZmY2VjOTBjNjhiYWU1NDA0MDAyMmViNjJmNTQ5OGI=
data/lib/babel.js CHANGED
@@ -8566,6 +8566,10 @@ var File = (function () {
8566
8566
  };
8567
8567
 
8568
8568
  File.prototype.getModuleFormatter = function getModuleFormatter(type) {
8569
+ if ((0, _lodashLangIsFunction2["default"])(type) || !_modules2["default"][type]) {
8570
+ this.log.deprecate("Custom module formatters are deprecated and will be removed in the next major. Please use Babel plugins instead.");
8571
+ }
8572
+
8569
8573
  var ModuleFormatter = (0, _lodashLangIsFunction2["default"])(type) ? type : _modules2["default"][type];
8570
8574
 
8571
8575
  if (!ModuleFormatter) {
@@ -9976,7 +9980,7 @@ var visitor = {
9976
9980
 
9977
9981
  var wrap = function wrap(state, method, id, scope) {
9978
9982
  if (state.selfReference) {
9979
- if (scope.hasBinding(id.name)) {
9983
+ if (scope.hasBinding(id.name) && !scope.hasGlobal(id.name)) {
9980
9984
  // we can just munge the local binding
9981
9985
  scope.rename(id.name);
9982
9986
  } else {
@@ -86294,7 +86298,7 @@ module.exports = function (str) {
86294
86298
  module.exports={
86295
86299
  "name": "babel-core",
86296
86300
  "description": "A compiler for writing next generation JavaScript",
86297
- "version": "5.4.5",
86301
+ "version": "5.4.6",
86298
86302
  "author": "Sebastian McKenzie <sebmck@gmail.com>",
86299
86303
  "homepage": "https://babeljs.io/",
86300
86304
  "license": "MIT",
data/lib/babel/source.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Babel
2
2
  module Source
3
- VERSION = "5.4.5"
4
- DATE = Time.at(1432169069)
3
+ VERSION = "5.4.6"
4
+ DATE = Time.at(1432230382)
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.4.5
4
+ version: 5.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian McKenzie