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

inherits-ex

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inherits-ex - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

15

lib/_extend.js

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

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 || !(add instanceof Object)) continue;
var keys = Object.keys(add);
var j = keys.length;
while (j--) {
origin[keys[j]] = add[keys[j]];
}
}
return origin;
}
module.exports = require('xtend/mutable');

2

lib/newPrototype.js
var getConstructor = require('./getConstructor');
var isEmptyFunction = require('./isEmptyFunction');
var _extend = require('./_extend');
var _extend = require('xtend/mutable');

@@ -5,0 +5,0 @@ module.exports = function (aClass, aConstructor) {

@@ -5,3 +5,3 @@ {

"homepage": "https://github.com/snowyu/inherits-ex.js",
"version": "1.0.5",
"version": "1.0.6",
"author": {

@@ -44,2 +44,3 @@ "name": "Riceball LEE",

"grunt-contrib-clean": "*",
"grunt-contrib-coffee": "*",
"grunt-contrib-copy": "*",

@@ -64,3 +65,6 @@ "grunt-contrib-jshint": "*",

"test": "grunt test"
},
"dependencies": {
"xtend": "^4.0.0"
}
}

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

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 || !(add instanceof Object)) continue;
var keys = Object.keys(add);
var j = keys.length;
while (j--) {
origin[keys[j]] = add[keys[j]];
}
}
return origin;
}
module.exports = require('xtend/mutable');
var getConstructor = require('./getConstructor');
var isEmptyFunction = require('./isEmptyFunction');
var _extend = require('./_extend');
var _extend = require('xtend/mutable');

@@ -5,0 +5,0 @@ module.exports = function (aClass, aConstructor) {

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