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.
Files changed (4) hide show
  1. checksums.yaml +8 -8
  2. data/lib/babel.js +7 -4
  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
- ZGY4NmUyNzBkZTExNzVmNDM4ZWI4MGViZGU4MjUxNmYzOWI5NDZmNQ==
4
+ NzEwNDY1YWQ5N2I0ZjM5Y2QwNjg0MjQwY2RjNWQyZGZkY2Q5YjJlMw==
5
5
  data.tar.gz: !binary |-
6
- MTU5OTg5N2Y1YzkyOTBjYWM4YmVlNzgwYTdlOWUzZjhhZTU2MmQxMQ==
6
+ MGU5YjcyMmNmM2NlMmI3YzAzNGFhYTU3MDNjYzAxZmVlNWZhZjlhZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZjZkOWYzYWVjYzQ4YTkzODQxYTNlODk2MDNmYjFjMzk2ZDNmZTUyOGQ3NTJm
10
- ZDU2MTFhZTk3YTY1ZjAxZWUyM2EwZTg0N2FkMzE5NmE2ZTU4MDc1ZmQwYjk1
11
- NDIyZDBjMWQ4YmE5YjkzMDU2MWNmYTA5Y2NmZjNiMWVkNjI0YTk=
9
+ ODBjNjk3NDcwODdkZjZhMmFkZDY4YjNhOWMxMTg3YmQ5Mzc2Nzg1NGRkYThh
10
+ ZThjNGU1Mjc3NTQzY2Y4MGI1N2E2MzVjNTgyMWUwZTM2OTc4NmRjMzEyZDAx
11
+ NTgxYjY5MzYxZGMzNWY3Y2YwYWIzZjEzNTI5M2VmYTY5YjU0MDM=
12
12
  data.tar.gz: !binary |-
13
- NGRkNzEyZmU0NjBkMzMzN2NiYmRjM2NkZDZkZGUzYjFmZDBhNzQwZGJkNWFj
14
- NWI2M2RlZDk5NWI4MDU1NWVmNmNiYTgwYTY3ZTk1MjJlNmE2NzViMTkxYjFm
15
- OTE3ZGVkMGI0NGIxZDZmMTQwNzQ4ZTA5M2JhNTIxM2MzYzZmMWY=
13
+ M2QxYjY2NTUxZWFlZTk3MTg3NzVjMTgzZGVkMmY1ZWI2NTI3YTgzOGFmNDkz
14
+ NjdlMTI3ZjUyOThmMDYwYzdmNzcwMjUxZDI3MDY3Y2U5MWU3ZGM4ZGY0OGZi
15
+ MTA4ZGFiMzE5MzU3NDI4N2JlZjBhZWQ5ZWEzOGU2MWE3Njk2NGY=
@@ -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
- if (local.kind === "let" || local.kind === "const" || local.kind === "module" || local.kind === "param") {
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.5",
49734
+ "version": "5.0.6",
49732
49735
  "author": "Sebastian McKenzie <sebmck@gmail.com>",
49733
49736
  "homepage": "https://babeljs.io/",
49734
49737
  "repository": "babel/babel",
@@ -1,7 +1,7 @@
1
1
  module Babel
2
2
  module Source
3
- VERSION = "5.0.5"
4
- DATE = Time.at(1428061370)
3
+ VERSION = "5.0.6"
4
+ DATE = Time.at(1428063223)
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.0.5
4
+ version: 5.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian McKenzie