Socket
Socket
Sign inDemoInstall

babel-core

Package Overview
Dependencies
68
Maintainers
1
Versions
257
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.7.15 to 4.7.16

test.js

6

CHANGELOG.md

@@ -16,2 +16,8 @@ # Changelog

## 4.7.16
* **Bug Fix**
* Fix constructor spreading of typed arrays.
* Fix break/continue/return aliasing of non-loops in block scoping transformer.
## 4.7.15

@@ -18,0 +24,0 @@

4

lib/babel/transformation/transformers/es6/block-scoping.js

@@ -548,6 +548,2 @@ "use strict";

if (has.hasBreakContinue) {
if (!loop) {
throw new Error("Aren't in a loop and we're trying to reassign breaks and continues, something is going wrong here.");
}
for (var key in has.map) {

@@ -554,0 +550,0 @@ cases.push(t.switchCase(t.literal(key), [has.map[key]]));

@@ -112,3 +112,3 @@ "use strict";

exports.STATEMENT_OR_BLOCK_KEYS = STATEMENT_OR_BLOCK_KEYS;
var NATIVE_TYPE_NAMES = ["Array", "Object", "Number", "Boolean", "Date", "Array", "String", "Promise", "Set", "Map", "WeakMap", "WeakSet"];
var NATIVE_TYPE_NAMES = ["Array", "Object", "Number", "Boolean", "Date", "Array", "String", "Promise", "Set", "Map", "WeakMap", "WeakSet", "Uint16Array", "ArrayBuffer", "DataView", "Int8Array", "Uint8Array", "Uint8ClampedArray", "Uint32Array", "Int32Array", "Float32Array", "Int16Array", "Float64Array"];
exports.NATIVE_TYPE_NAMES = NATIVE_TYPE_NAMES;

@@ -115,0 +115,0 @@ var FLATTENABLE_KEYS = ["body", "expressions"];

{
"name": "babel-core",
"description": "Turn ES6 code into readable vanilla ES5 with source maps",
"version": "4.7.15",
"version": "4.7.16",
"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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc