babel-core
Advanced tools
Comparing version 5.0.8 to 5.0.9
@@ -16,2 +16,11 @@ # Changelog | ||
## 5.0.9 | ||
* **Polish** | ||
* Use `moduleId` for UMD global name if available. | ||
* **Bug Fix** | ||
* Fix UMD global `module` variable shadowing the `amd`/`common` `module` variable. | ||
* Fix Flow param type annotation regression. | ||
* Fix function name collision `toString` wrapper. Thanks [@alawatthe](https://github.com/alawatthe)! | ||
## 5.0.8 | ||
@@ -18,0 +27,0 @@ |
@@ -260,3 +260,3 @@ // A recursive descent parser operates by defining functions for all | ||
case tt._yield: | ||
if (this.inGenerator) unexpected(); | ||
if (this.inGenerator) this.unexpected(); | ||
@@ -263,0 +263,0 @@ case tt._do: |
@@ -132,3 +132,5 @@ "use strict"; | ||
} else { | ||
elts.push(this.parseAssignableListItemTypes(this.parseMaybeDefault())); | ||
var left = this.parseMaybeDefault(); | ||
this.parseAssignableListItemTypes(left); | ||
elts.push(this.parseMaybeDefault(null, left)); | ||
} | ||
@@ -135,0 +137,0 @@ } |
@@ -74,4 +74,4 @@ "use strict"; | ||
var browserArgs = [t.memberExpression(t.identifier("module"), t.identifier("exports"))]; | ||
if (this.passModuleArg) browserArgs.push(t.identifier("module")); | ||
var browserArgs = []; | ||
if (this.passModuleArg) browserArgs.push(t.identifier("mod")); | ||
@@ -88,2 +88,7 @@ for (var _name2 in this.ids) { | ||
// | ||
var globalArg = this.file.opts.basename; | ||
if (moduleName) globalArg = moduleName; | ||
globalArg = t.identifier(t.toIdentifier(globalArg)); | ||
var runner = util.template("umd-runner-body", { | ||
@@ -94,3 +99,3 @@ AMD_ARGUMENTS: defineArgs, | ||
BROWSER_ARGUMENTS: browserArgs, | ||
GLOBAL_ARG: t.identifier(t.toIdentifier(this.file.opts.basename)) | ||
GLOBAL_ARG: globalArg | ||
}); | ||
@@ -97,0 +102,0 @@ |
@@ -334,3 +334,3 @@ "use strict"; | ||
var key = prop.key; | ||
if (t.isIdentifier(key)) key = t.literal(prop.key.name); | ||
if (t.isIdentifier(key) && !prop.computed) key = t.literal(prop.key.name); | ||
keys.push(key); | ||
@@ -337,0 +337,0 @@ } |
{ | ||
"name": "babel-core", | ||
"description": "Turn ES6 code into readable vanilla ES5 with source maps", | ||
"version": "5.0.8", | ||
"version": "5.0.9", | ||
"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
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
2006305
181
20771