babel-core
Advanced tools
Comparing version 5.0.5 to 5.0.6
@@ -16,2 +16,8 @@ # Changelog | ||
## 5.0.6 | ||
* **Bug Fix** | ||
* Fix mangling of import references that collide with properties on `Object.prototype`. | ||
* Fix duplicate declarations incorrectly being reported for `var`. | ||
## 5.0.5 | ||
@@ -18,0 +24,0 @@ |
@@ -125,4 +125,3 @@ "use strict"; | ||
this.internalRemap = {}; | ||
this.internalRemap = object(); | ||
this.defaultIds = object(); | ||
@@ -129,0 +128,0 @@ this.scope = file.scope; |
@@ -287,3 +287,7 @@ "use strict"; | ||
if (local.kind === "let" || local.kind === "const" || local.kind === "module" || local.kind === "param") { | ||
var duplicate = false; | ||
if (!duplicate) duplicate = local.kind === "let" || local.kind === "const" || local.kind === "module"; | ||
if (!duplicate) duplicate = local.kind === "param" && (kind === "let" || kind === "const"); | ||
if (duplicate) { | ||
throw this.file.errorWithNode(id, messages.get("scopeDuplicateDeclaration", name), TypeError); | ||
@@ -290,0 +294,0 @@ } |
{ | ||
"name": "babel-core", | ||
"description": "Turn ES6 code into readable vanilla ES5 with source maps", | ||
"version": "5.0.5", | ||
"version": "5.0.6", | ||
"author": "Sebastian McKenzie <sebmck@gmail.com>", | ||
@@ -6,0 +6,0 @@ "homepage": "https://babeljs.io/", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
2005723
185
20941
0
18