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

abstract-object

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abstract-object - npm Package Compare versions

Comparing version 1.6.0 to 1.6.1

19

lib/util/_extend.js
var isObject = require('./isObject');
module.exports = function(origin, add) {
// Don't do anything if add isn't an object
if (!add || !isObject(add)) return origin;
var keys = Object.keys(add);
var i = keys.length;
while (i--) {
origin[keys[i]] = add[keys[i]];
module.exports = function (origin) {
for (var i=1; i < arguments.length; i++) {
var add = arguments[i];
// Don't do anything if add isn't an object
if (!add || !isObject(add)) continue;
var keys = Object.keys(add);
var j = keys.length;
while (j--) {
origin[keys[j]] = add[keys[j]];
}
}
return origin;
}
{
"name": "abstract-object",
"version": "1.6.0",
"version": "1.6.1",
"description": "AbstractObject with Object State Events Support, RefObject with RefCount and AddRef/Release Support.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/snowyu/abstract-object",

var isObject = require('./isObject');
module.exports = function(origin, add) {
// Don't do anything if add isn't an object
if (!add || !isObject(add)) return origin;
var keys = Object.keys(add);
var i = keys.length;
while (i--) {
origin[keys[i]] = add[keys[i]];
module.exports = function (origin) {
for (var i=1; i < arguments.length; i++) {
var add = arguments[i];
// Don't do anything if add isn't an object
if (!add || !isObject(add)) continue;
var keys = Object.keys(add);
var j = keys.length;
while (j--) {
origin[keys[j]] = add[keys[j]];
}
}
return origin;
}

Sorry, the diff of this file is not supported yet

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