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

object-extended

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-extended - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

16

index.js
(function () {
"use strict";
/*global extender isExtended*/
/*global extended isExtended*/
function defineObject(extender, is) {
function defineObject(extended, is) {

@@ -43,3 +43,3 @@ var deepEqual = is.deepEqual,

function merge(obj, props) {
function merge(obj) {
if (!obj) {

@@ -54,3 +54,3 @@ obj = {};

function deepMerge(obj, props) {
function deepMerge(obj) {
if (!obj) {

@@ -165,3 +165,3 @@ obj = {};

var ret = extender.define(is.isObject, obj).define(isHash, hash).define(is.isFunction, {extend: extend}).expose({hash: hash}).expose(obj);
var ret = extended.define(is.isObject, obj).define(isHash, hash).define(is.isFunction, {extend: extend}).expose({hash: hash}).expose(obj);
var orig = ret.extend;

@@ -181,3 +181,3 @@ ret.extend = function __extend() {

if ("undefined" !== typeof module && module.exports) {
module.exports = defineObject(require("extender"), require("is-extended"));
module.exports = defineObject(require("extended"), require("is-extended"));

@@ -187,6 +187,6 @@ }

define(["require"], function (require) {
return defineObject(require("extender"), require("is-extended"));
return defineObject(require("extended"), require("is-extended"));
});
} else {
this.objectExtended = defineObject(extender, isExtended);
this.objectExtended = defineObject(extended, isExtended);
}

@@ -193,0 +193,0 @@

@@ -1,3 +0,3 @@

/*! object-extended - v0.0.1 - 2013-01-15
/*! object-extended - v0.0.2 - 2013-01-16
* Copyright (c) 2013 Doug Martin; Licensed MIT */
(function(){"use strict";function e(e,t){function i(e,t){var n,r;for(n in t)if(t.hasOwnProperty(n)){r=t[n];if(!(n in e)||e[n]!==r)e[n]=r}return e}function s(e,t){var i,o,u;for(i in t)t.hasOwnProperty(i)&&(o=t[i],u=e[i],n(u,o)||(r(u)&&r(o)?e[i]=s(u,o):r(o)?e[i]=s({},o):e[i]=o));return e}function o(e,t){e||(e={});for(var n=1,r=arguments.length;n<r;n++)i(e,arguments[n]);return e}function u(e,t){e||(e={});for(var n=1,r=arguments.length;n<r;n++)s(e,arguments[n]);return e}function a(e,t){var n=e.prototype||e;return o(n,t),e}function f(e,t,n){if(!r(e)||typeof t!="function")throw new TypeError;var i=h(e),s;for(var o=0,u=i.length;o<u;++o)s=i[o],t.call(n||e,e[s],s,e);return e}function l(e,t,n){if(!r(e)||typeof t!="function")throw new TypeError;var i=h(e),s,o,u={};for(var a=0,f=i.length;a<f;++a)s=i[a],o=e[s],t.call(n||e,o,s,e)&&(u[s]=o);return u}function c(e){if(!r(e))throw new TypeError;var t=h(e),n=[];for(var i=0,s=t.length;i<s;++i)n.push(e[t[i]]);return n}function h(e){if(!r(e))throw new TypeError;var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function p(e){if(!r(e))throw new TypeError;var t=h(e),n,i={};for(var s=0,o=t.length;s<o;++s)n=t[s],i[e[n]]=n;return i}function d(e){if(!r(e))throw new TypeError;var t=h(e),n,i=[];for(var s=0,o=t.length;s<o;++s)n=t[s],i.push([n,e[n]]);return i}var n=t.deepEqual,r=t.isHash,v={forEach:f,filter:l,invert:p,values:c,toArray:d,keys:h},m={extend:a,merge:o,deepMerge:u},g=e.define(t.isObject,m).define(r,v).define(t.isFunction,{extend:a}).expose({hash:v}).expose(m),y=g.extend;return g.extend=function(){if(arguments.length===1)return y.extend.apply(g,arguments);a.apply(null,arguments)},g}"undefined"!=typeof exports?"undefined"!=typeof module&&module.exports&&(module.exports=e(require("extender"),require("is-extended"))):"function"==typeof define?define(["require"],function(t){return e(t("extender"),t("is-extended"))}):this.objectExtended=e(extender,isExtended)}).call(this);
(function(){"use strict";function e(e,t){function i(e,t){var n,r;for(n in t)if(t.hasOwnProperty(n)){r=t[n];if(!(n in e)||e[n]!==r)e[n]=r}return e}function s(e,t){var i,o,u;for(i in t)t.hasOwnProperty(i)&&(o=t[i],u=e[i],n(u,o)||(r(u)&&r(o)?e[i]=s(u,o):r(o)?e[i]=s({},o):e[i]=o));return e}function o(e){e||(e={});for(var t=1,n=arguments.length;t<n;t++)i(e,arguments[t]);return e}function u(e){e||(e={});for(var t=1,n=arguments.length;t<n;t++)s(e,arguments[t]);return e}function a(e,t){var n=e.prototype||e;return o(n,t),e}function f(e,t,n){if(!r(e)||typeof t!="function")throw new TypeError;var i=h(e),s;for(var o=0,u=i.length;o<u;++o)s=i[o],t.call(n||e,e[s],s,e);return e}function l(e,t,n){if(!r(e)||typeof t!="function")throw new TypeError;var i=h(e),s,o,u={};for(var a=0,f=i.length;a<f;++a)s=i[a],o=e[s],t.call(n||e,o,s,e)&&(u[s]=o);return u}function c(e){if(!r(e))throw new TypeError;var t=h(e),n=[];for(var i=0,s=t.length;i<s;++i)n.push(e[t[i]]);return n}function h(e){if(!r(e))throw new TypeError;var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function p(e){if(!r(e))throw new TypeError;var t=h(e),n,i={};for(var s=0,o=t.length;s<o;++s)n=t[s],i[e[n]]=n;return i}function d(e){if(!r(e))throw new TypeError;var t=h(e),n,i=[];for(var s=0,o=t.length;s<o;++s)n=t[s],i.push([n,e[n]]);return i}var n=t.deepEqual,r=t.isHash,v={forEach:f,filter:l,invert:p,values:c,toArray:d,keys:h},m={extend:a,merge:o,deepMerge:u},g=e.define(t.isObject,m).define(r,v).define(t.isFunction,{extend:a}).expose({hash:v}).expose(m),y=g.extend;return g.extend=function(){if(arguments.length===1)return y.extend.apply(g,arguments);a.apply(null,arguments)},g}"undefined"!=typeof exports?"undefined"!=typeof module&&module.exports&&(module.exports=e(require("extended"),require("is-extended"))):"function"==typeof define?define(["require"],function(t){return e(t("extended"),t("is-extended"))}):this.objectExtended=e(extended,isExtended)}).call(this);
{
"name": "object-extended",
"version": "0.0.1",
"version": "0.0.2",
"description": "Additional object extensions with a chainable api",

@@ -21,9 +21,9 @@ "main": "index.js",

"dependencies": {
"extender": "0.0.4",
"is-extended": "0.0.1"
"extended": "0.0.2",
"is-extended": "0.0.2"
},
"devDependencies": {
"it": "~0.1.0",
"grunt-it": "~0.3.0"
"grunt-it": "~0.2.1"
}
}

@@ -1,2 +0,2 @@

[![build status](https://secure.travis-ci.org/doug-martin/object-extended.png)](http://travis-ci.org/doug-martin/object-extended)
[![Build Status](https://travis-ci.org/doug-martin/object-extended.png?branch=master)](undefined)

@@ -3,0 +3,0 @@ # object-extended

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