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.
- checksums.yaml +8 -8
- data/lib/babel.js +6 -2
- 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
|
+
NzI1Nzk5ZTlkNTBhMmM3MWY2YWJhMmVjYTY1ODhkNTk2NzUzZWFlMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MmZiNWRiNDg3M2NiNTZmNzQ0Y2U0OWJiNmM2MGU2Y2Y1NThmOGVlNg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MjQ4MGVhZDQ5ZmQ3NTk0MTRhNjc0NDFkODFlYTM3ZmVkMzdlMTJkNDdlYWU2
|
10
|
+
ODlhOTcyM2M1NzE5OGU3ZDQxNjVhODRjMGRkZjM1ZTU4MjBjZWM1MTczZjBj
|
11
|
+
YWFhNzJjZGFmOGZjNDBkMDdlYWI0OWI1ZWZhZGFhMDJjMTI0MGM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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.
|
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