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

object-assign

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-assign - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

27

object-assign.js

@@ -11,11 +11,32 @@ /*!

var ToObject = function (val) {
if (val == null) {
throw new TypeError();
}
return Object(val);
}
var objectAssign = Object.assign || function (target, source) {
var keys = Object.keys(source);
var pendingException;
var to = ToObject(target);
var from = ToObject(source);
var keys = Object.keys(from);
var i = keys.length;
while (i--) {
target[keys[i]] = source[keys[i]];
try {
to[keys[i]] = from[keys[i]];
} catch (err) {
if (pendingException === undefined) {
pendingException = err;
}
}
}
return target;
if (pendingException) {
throw pendingException;
}
return to;
};

@@ -22,0 +43,0 @@

2

package.json
{
"name": "object-assign",
"version": "0.1.1",
"version": "0.1.2",
"description": "ES6 Object.assign() ponyfill",

@@ -5,0 +5,0 @@ "license": "MIT",

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