object-extended
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -202,3 +202,3 @@ (function () { | ||
} | ||
} else if ("function" === typeof define) { | ||
} else if ("function" === typeof define && define.amd) { | ||
define(["extended", "is-extended", "array-extended"], function (extended, is, array) { | ||
@@ -205,0 +205,0 @@ return defineObject(extended, is, array); |
@@ -1,3 +0,3 @@ | ||
/*! object-extended - v0.0.5 - 2013-04-16 | ||
/*! object-extended - v0.0.6 - 2013-06-05 | ||
* Copyright (c) 2013 Doug Martin; Licensed MIT */ | ||
(function(){"use strict";function e(e,r,n){function t(e,r){var n,t;for(n in r)w.call(r,n)&&(t=r[n],n in e&&e[n]===t||(e[n]=t));return e}function o(e,r){var n,t,i;for(n in r)w.call(r,n)&&(t=r[n],i=e[n],x(i,t)||(e[n]=g(i)&&g(t)?o(i,t):g(t)?o({},t):t));return e}function i(e){e||(e={});for(var r=1,n=arguments.length;n>r;r++)t(e,arguments[r]);return e}function u(e){e||(e={});for(var r=1,n=arguments.length;n>r;r++)o(e,arguments[r]);return e}function f(e,r){var n=e.prototype||e;return i(n,r),e}function a(e,r,n){if(!g(e)||!m(r))throw new TypeError;for(var t,o=c(e),i=0,u=o.length;u>i;++i)t=o[i],r.call(n||e,e[t],t,e);return e}function d(e,r,n){if(!g(e)||!m(r))throw new TypeError;for(var t,o,i=c(e),u={},f=0,a=i.length;a>f;++f)t=i[f],o=e[t],r.call(n||e,o,t,e)&&(u[t]=o);return u}function s(e){if(!g(e))throw new TypeError;for(var r=c(e),n=[],t=0,o=r.length;o>t;++t)n.push(e[r[t]]);return n}function c(e){if(!g(e))throw new TypeError;var r=[];for(var n in e)w.call(e,n)&&r.push(n);return r}function l(e){if(!g(e))throw new TypeError;for(var r,n=c(e),t={},o=0,i=n.length;i>o;++o)r=n[o],t[e[r]]=r;return t}function h(e){if(!g(e))throw new TypeError;for(var r,n=c(e),t=[],o=0,i=n.length;i>o;++o)r=n[o],t.push([r,e[r]]);return t}function p(e,r){if(!g(e))throw new TypeError;y(r)&&(r=[r]);for(var n,t=v(c(e),r),o={},i=0,u=t.length;u>i;++i)n=t[i],o[n]=e[n];return o}var x=r.deepEqual,y=r.isString,g=r.isHash,v=n.difference,w=Object.prototype.hasOwnProperty,m=r.isFunction,E={forEach:a,filter:d,invert:l,values:s,toArray:h,keys:c,omit:p},T={extend:f,merge:i,deepMerge:u,omit:p},q=e.define(r.isObject,T).define(g,E).define(r.isFunction,{extend:f}).expose({hash:E}).expose(T),b=q.extend;return q.extend=function(){return 1===arguments.length?b.extend.apply(q,arguments):(f.apply(null,arguments),void 0)},q}"undefined"!=typeof exports?"undefined"!=typeof module&&module.exports&&(module.exports=e(require("extended"),require("is-extended"),require("array-extended"))):"function"==typeof define?define(["extended","is-extended","array-extended"],function(r,n,t){return e(r,n,t)}):this.objectExtended=e(this.extended,this.isExtended,this.arrayExtended)}).call(this); | ||
(function(){"use strict";function e(e,r,n){function t(e,r){var n,t;for(n in r)w.call(r,n)&&(t=r[n],n in e&&e[n]===t||(e[n]=t));return e}function o(e,r){var n,t,i;for(n in r)w.call(r,n)&&(t=r[n],i=e[n],x(i,t)||(e[n]=g(i)&&g(t)?o(i,t):g(t)?o({},t):t));return e}function i(e){e||(e={});for(var r=1,n=arguments.length;n>r;r++)t(e,arguments[r]);return e}function u(e){e||(e={});for(var r=1,n=arguments.length;n>r;r++)o(e,arguments[r]);return e}function f(e,r){var n=e.prototype||e;return i(n,r),e}function a(e,r,n){if(!g(e)||!m(r))throw new TypeError;for(var t,o=c(e),i=0,u=o.length;u>i;++i)t=o[i],r.call(n||e,e[t],t,e);return e}function d(e,r,n){if(!g(e)||!m(r))throw new TypeError;for(var t,o,i=c(e),u={},f=0,a=i.length;a>f;++f)t=i[f],o=e[t],r.call(n||e,o,t,e)&&(u[t]=o);return u}function s(e){if(!g(e))throw new TypeError;for(var r=c(e),n=[],t=0,o=r.length;o>t;++t)n.push(e[r[t]]);return n}function c(e){if(!g(e))throw new TypeError;var r=[];for(var n in e)w.call(e,n)&&r.push(n);return r}function l(e){if(!g(e))throw new TypeError;for(var r,n=c(e),t={},o=0,i=n.length;i>o;++o)r=n[o],t[e[r]]=r;return t}function h(e){if(!g(e))throw new TypeError;for(var r,n=c(e),t=[],o=0,i=n.length;i>o;++o)r=n[o],t.push([r,e[r]]);return t}function p(e,r){if(!g(e))throw new TypeError;y(r)&&(r=[r]);for(var n,t=v(c(e),r),o={},i=0,u=t.length;u>i;++i)n=t[i],o[n]=e[n];return o}var x=r.deepEqual,y=r.isString,g=r.isHash,v=n.difference,w=Object.prototype.hasOwnProperty,m=r.isFunction,E={forEach:a,filter:d,invert:l,values:s,toArray:h,keys:c,omit:p},T={extend:f,merge:i,deepMerge:u,omit:p},q=e.define(r.isObject,T).define(g,E).define(r.isFunction,{extend:f}).expose({hash:E}).expose(T),b=q.extend;return q.extend=function(){return 1===arguments.length?b.extend.apply(q,arguments):(f.apply(null,arguments),void 0)},q}"undefined"!=typeof exports?"undefined"!=typeof module&&module.exports&&(module.exports=e(require("extended"),require("is-extended"),require("array-extended"))):"function"==typeof define&&define.amd?define(["extended","is-extended","array-extended"],function(r,n,t){return e(r,n,t)}):this.objectExtended=e(this.extended,this.isExtended,this.arrayExtended)}).call(this); |
{ | ||
"name": "object-extended", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Additional object extensions with a chainable api", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26916
12