options-defaults
Advanced tools
Comparing version 2.0.22 to 2.0.24
@@ -15,2 +15,2 @@ var validatePolish=function(r){"use strict"; | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */function t(r,t){var e="function"==typeof Symbol&&r[Symbol.iterator];if(!e)return r;var n,o,a=e.call(r),c=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)c.push(n.value)}catch(r){o={error:r}}finally{try{n&&!n.done&&(e=a.return)&&e.call(a)}finally{if(o)throw o.error}}return c}function e(){for(var r=[],e=0;e<arguments.length;e++)r=r.concat(t(arguments[e]));return r}var n=function(r){for(var e=[],o=1;o<arguments.length;o++)e[o-1]=arguments[o];return e.forEach((function(e){e&&"object"==typeof e&&Object.entries(e).forEach((function(e){var o=t(e,2),a=o[0],c=o[1];"object"!=typeof c||Array.isArray(c)||"Object"!==c.constructor.name?r[a]=c:(r[a]||(r[a]={}),n(r[a],c))}))})),r};return r.defaults=function(r,t,o,a,c,f){for(var u=[],i=6;i<arguments.length;i++)u[i-6]=arguments[i];return n.apply(void 0,e([{},r,t,o,a,c,f],u))},r.merge=n,Object.defineProperty(r,"__esModule",{value:!0}),r}({}); | ||
***************************************************************************** */function t(r,t){var e="function"==typeof Symbol&&r[Symbol.iterator];if(!e)return r;var o,n,c=e.call(r),a=[];try{for(;(void 0===t||t-- >0)&&!(o=c.next()).done;)a.push(o.value)}catch(r){n={error:r}}finally{try{o&&!o.done&&(e=c.return)&&e.call(c)}finally{if(n)throw n.error}}return a}function e(){for(var r=[],e=0;e<arguments.length;e++)r=r.concat(t(arguments[e]));return r}var o=["__proto__","constructor","prototype"],n=function(r){for(var e=[],c=1;c<arguments.length;c++)e[c-1]=arguments[c];return e.forEach((function(e){e&&"object"==typeof e&&Object.entries(e).forEach((function(e){var c=t(e,2),a=c[0],u=c[1];o.includes(a)||("object"!=typeof u||Array.isArray(u)||"Object"!==u.constructor.name?r[a]=u:(r[a]||(r[a]={}),n(r[a],u)))}))})),r};return r.defaults=function(r,t,o,c,a,u){for(var f=[],i=6;i<arguments.length;i++)f[i-6]=arguments[i];return n.apply(void 0,e([{},r,t,o,c,a,u],f))},r.merge=n,Object.defineProperty(r,"__esModule",{value:!0}),r}({}); |
@@ -16,2 +16,2 @@ "use strict"; | ||
***************************************************************************** */ | ||
function r(r,t){var e="function"==typeof Symbol&&r[Symbol.iterator];if(!e)return r;var o,n,a=e.call(r),c=[];try{for(;(void 0===t||t-- >0)&&!(o=a.next()).done;)c.push(o.value)}catch(r){n={error:r}}finally{try{o&&!o.done&&(e=a.return)&&e.call(a)}finally{if(n)throw n.error}}return c}function t(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(r(arguments[e]));return t}Object.defineProperty(exports,"__esModule",{value:!0});var e=function(t){for(var o=[],n=1;n<arguments.length;n++)o[n-1]=arguments[n];return o.forEach((function(o){o&&"object"==typeof o&&Object.entries(o).forEach((function(o){var n=r(o,2),a=n[0],c=n[1];"object"!=typeof c||Array.isArray(c)||"Object"!==c.constructor.name?t[a]=c:(t[a]||(t[a]={}),e(t[a],c))}))})),t};exports.defaults=function(r,o,n,a,c,f){for(var u=[],i=6;i<arguments.length;i++)u[i-6]=arguments[i];return e.apply(void 0,t([{},r,o,n,a,c,f],u))},exports.merge=e; | ||
function r(r,t){var e="function"==typeof Symbol&&r[Symbol.iterator];if(!e)return r;var o,n,c=e.call(r),a=[];try{for(;(void 0===t||t-- >0)&&!(o=c.next()).done;)a.push(o.value)}catch(r){n={error:r}}finally{try{o&&!o.done&&(e=c.return)&&e.call(c)}finally{if(n)throw n.error}}return a}function t(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(r(arguments[e]));return t}Object.defineProperty(exports,"__esModule",{value:!0});var e=["__proto__","constructor","prototype"],o=function(t){for(var n=[],c=1;c<arguments.length;c++)n[c-1]=arguments[c];return n.forEach((function(n){n&&"object"==typeof n&&Object.entries(n).forEach((function(n){var c=r(n,2),a=c[0],f=c[1];e.includes(a)||("object"!=typeof f||Array.isArray(f)||"Object"!==f.constructor.name?t[a]=f:(t[a]||(t[a]={}),o(t[a],f)))}))})),t};exports.defaults=function(r,e,n,c,a,f){for(var u=[],i=6;i<arguments.length;i++)u[i-6]=arguments[i];return o.apply(void 0,t([{},r,e,n,c,a,f],u))},exports.merge=o; |
@@ -15,2 +15,2 @@ /*! ***************************************************************************** | ||
***************************************************************************** */ | ||
function r(r,t){var n="function"==typeof Symbol&&r[Symbol.iterator];if(!n)return r;var o,e,a=n.call(r),c=[];try{for(;(void 0===t||t-- >0)&&!(o=a.next()).done;)c.push(o.value)}catch(r){e={error:r}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return c}function t(){for(var t=[],n=0;n<arguments.length;n++)t=t.concat(r(arguments[n]));return t}var n=function(t){for(var o=[],e=1;e<arguments.length;e++)o[e-1]=arguments[e];return o.forEach((function(o){o&&"object"==typeof o&&Object.entries(o).forEach((function(o){var e=r(o,2),a=e[0],c=e[1];"object"!=typeof c||Array.isArray(c)||"Object"!==c.constructor.name?t[a]=c:(t[a]||(t[a]={}),n(t[a],c))}))})),t},o=function(r,o,e,a,c,f){for(var i=[],u=6;u<arguments.length;u++)i[u-6]=arguments[u];return n.apply(void 0,t([{},r,o,e,a,c,f],i))};export{o as defaults,n as merge}; | ||
function r(r,t){var o="function"==typeof Symbol&&r[Symbol.iterator];if(!o)return r;var n,e,c=o.call(r),a=[];try{for(;(void 0===t||t-- >0)&&!(n=c.next()).done;)a.push(n.value)}catch(r){e={error:r}}finally{try{n&&!n.done&&(o=c.return)&&o.call(c)}finally{if(e)throw e.error}}return a}function t(){for(var t=[],o=0;o<arguments.length;o++)t=t.concat(r(arguments[o]));return t}var o=["__proto__","constructor","prototype"],n=function(t){for(var e=[],c=1;c<arguments.length;c++)e[c-1]=arguments[c];return e.forEach((function(e){e&&"object"==typeof e&&Object.entries(e).forEach((function(e){var c=r(e,2),a=c[0],f=c[1];o.includes(a)||("object"!=typeof f||Array.isArray(f)||"Object"!==f.constructor.name?t[a]=f:(t[a]||(t[a]={}),n(t[a],f)))}))})),t},e=function(r,o,e,c,a,f){for(var u=[],i=6;i<arguments.length;i++)u[i-6]=arguments[i];return n.apply(void 0,t([{},r,o,e,c,a,f],u))};export{e as defaults,n as merge}; |
{ | ||
"name": "options-defaults", | ||
"version": "2.0.22", | ||
"version": "2.0.24", | ||
"description": "Options-defaults design pattern implementation for reliable configuration. It merges objects deeply, overrides arrays and classes (different than Object) and the result remains strongly typed.", | ||
@@ -27,3 +27,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "ac8a232860623ba0b5866150adfaf50c33733407" | ||
"gitHead": "cd7a4ccd15e93a65506fb773b26ecc04d88b4a14" | ||
} |
8935