Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-runtime

Package Overview
Dependencies
Maintainers
1
Versions
191
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-runtime - npm Package Compare versions

Comparing version 4.7.16 to 5.0.0-beta1

helpers/create-decorated-class.js

12

helpers/create-class.js

@@ -5,9 +5,9 @@ "use strict";

function defineProperties(target, props) {
for (var key in props) {
var prop = props[key];
prop.configurable = true;
if (prop.value) prop.writable = true;
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if (descriptor.value) descriptor.writable = true;
Object.defineProperty(target, descriptor.key, descriptor);
}
Object.defineProperties(target, props);
}

@@ -14,0 +14,0 @@

"use strict";
var _core = require("babel-runtime/core-js")["default"];
exports["default"] = function (obj, key, value) {
return Object.defineProperty(obj, key, {
value: value,
enumerable: true,
enumerable: key == null || typeof _core.Symbol == "undefined" || key.constructor !== _core.Symbol,
configurable: true,

@@ -8,0 +10,0 @@ writable: true

@@ -10,7 +10,21 @@ "use strict";

var _arr = [];
var _n = true;
var _d = false;
var _e = undefined;
for (var _iterator = _core.$for.getIterator(arr), _step; !(_step = _iterator.next()).done;) {
_arr.push(_step.value);
try {
for (var _i = _core.$for.getIterator(arr), _s; !(_n = (_s = _i.next()).done); _n = true) {
_arr.push(_s.value);
if (i && _arr.length === i) break;
if (i && _arr.length === i) break;
}
} catch (err) {
_d = true;
_e = err;
} finally {
try {
if (!_n && _i["return"]) _i["return"]();
} finally {
if (_d) throw _e;
}
}

@@ -17,0 +31,0 @@

{
"name": "babel-runtime",
"description": "babel selfContained runtime",
"version": "4.7.16",
"version": "5.0.0-beta1",
"repository": "babel/babel",

@@ -6,0 +6,0 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>",

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