Socket
Socket
Sign inDemoInstall

babel-core

Package Overview
Dependencies
Maintainers
1
Versions
257
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-core - npm Package Compare versions

Comparing version 5.0.8 to 5.0.9

9

CHANGELOG.md

@@ -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 @@

2

lib/acorn/src/expression.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc