babel-source 5.0.5 → 5.0.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 +7 -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
|
+
NzEwNDY1YWQ5N2I0ZjM5Y2QwNjg0MjQwY2RjNWQyZGZkY2Q5YjJlMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MGU5YjcyMmNmM2NlMmI3YzAzNGFhYTU3MDNjYzAxZmVlNWZhZjlhZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ODBjNjk3NDcwODdkZjZhMmFkZDY4YjNhOWMxMTg3YmQ5Mzc2Nzg1NGRkYThh
|
10
|
+
ZThjNGU1Mjc3NTQzY2Y4MGI1N2E2MzVjNTgyMWUwZTM2OTc4NmRjMzEyZDAx
|
11
|
+
NTgxYjY5MzYxZGMzNWY3Y2YwYWIzZjEzNTI5M2VmYTY5YjU0MDM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
M2QxYjY2NTUxZWFlZTk3MTg3NzVjMTgzZGVkMmY1ZWI2NTI3YTgzOGFmNDkz
|
14
|
+
NjdlMTI3ZjUyOThmMDYwYzdmNzcwMjUxZDI3MDY3Y2U5MWU3ZGM4ZGY0OGZi
|
15
|
+
MTA4ZGFiMzE5MzU3NDI4N2JlZjBhZWQ5ZWEzOGU2MWE3Njk2NGY=
|
data/lib/babel.js
CHANGED
@@ -10482,8 +10482,7 @@ var DefaultFormatter = (function () {
|
|
10482
10482
|
function DefaultFormatter(file) {
|
10483
10483
|
_classCallCheck(this, DefaultFormatter);
|
10484
10484
|
|
10485
|
-
this.internalRemap =
|
10486
|
-
|
10485
|
+
this.internalRemap = object();
|
10487
10486
|
this.defaultIds = object();
|
10488
10487
|
this.scope = file.scope;
|
10489
10488
|
this.file = file;
|
@@ -18516,7 +18515,11 @@ var Scope = (function () {
|
|
18516
18515
|
if (kind === "param") return;
|
18517
18516
|
if (kind === "hoisted" && local.kind === "let") return;
|
18518
18517
|
|
18519
|
-
|
18518
|
+
var duplicate = false;
|
18519
|
+
if (!duplicate) duplicate = local.kind === "let" || local.kind === "const" || local.kind === "module";
|
18520
|
+
if (!duplicate) duplicate = local.kind === "param" && (kind === "let" || kind === "const");
|
18521
|
+
|
18522
|
+
if (duplicate) {
|
18520
18523
|
throw this.file.errorWithNode(id, messages.get("scopeDuplicateDeclaration", name), TypeError);
|
18521
18524
|
}
|
18522
18525
|
};
|
@@ -49728,7 +49731,7 @@ module.exports = function (str) {
|
|
49728
49731
|
module.exports={
|
49729
49732
|
"name": "babel-core",
|
49730
49733
|
"description": "Turn ES6 code into readable vanilla ES5 with source maps",
|
49731
|
-
"version": "5.0.
|
49734
|
+
"version": "5.0.6",
|
49732
49735
|
"author": "Sebastian McKenzie <sebmck@gmail.com>",
|
49733
49736
|
"homepage": "https://babeljs.io/",
|
49734
49737
|
"repository": "babel/babel",
|
data/lib/babel/source.rb
CHANGED