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

@babel/helpers

Package Overview
Dependencies
Maintainers
5
Versions
148
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/helpers - npm Package Compare versions

Comparing version 7.5.1 to 7.5.2

29

lib/helpers.js

@@ -410,2 +410,13 @@ "use strict";

function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
keys.push.apply(keys, Object.getOwnPropertySymbols(object));
}
if (enumerableOnly) keys = keys.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
});
return keys;
}
export default function _objectSpread2(target) {

@@ -415,13 +426,15 @@ for (var i = 1; i < arguments.length; i++) {

var source = (arguments[i] != null) ? arguments[i] : {};
var ownKeys = Object.keys(source);
if (typeof Object.getOwnPropertySymbols === 'function') {
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
}));
}
ownKeys.forEach(function(key) {
ownKeys(source, true).forEach(function (key) {
defineProperty(target, key, source[key]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(target, Object.getOwnPropertyDescriptors(arguments[i]));
} else {
Object.defineProperties(target, Object.getOwnPropertyDescriptors(arguments[i]));
ownKeys(source).forEach(function (key) {
Object.defineProperty(
target,
key,
Object.getOwnPropertyDescriptor(arguments[i], key)
);
});
}

@@ -428,0 +441,0 @@ }

{
"name": "@babel/helpers",
"version": "7.5.1",
"version": "7.5.2",
"description": "Collection of helper functions used by Babel transforms.",

@@ -21,3 +21,3 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>",

},
"gitHead": "d0519fa9076ad2b50fe0a4d745c863c61c226117"
"gitHead": "0dbf99bedb1d82b8414685181416c19336dd0d96"
}
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