options-defaults
Advanced tools
Comparing version 2.0.17 to 2.0.18
@@ -15,2 +15,2 @@ var validatePolish=function(r){"use strict"; | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */function t(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 n(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(t(arguments[n]));return r}var o=function(r){for(var n=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];return n.forEach((function(n){n&&"object"==typeof n&&Object.entries(n).forEach((function(n){var e=t(n,2),a=e[0],c=e[1];"object"!=typeof c||Array.isArray(c)||"Object"!==c.constructor.name?r[a]=c:(r[a]||(r[a]={}),o(r[a],c))}))})),r};return r.defaults=function(r,t,e,a,c,f){for(var i=[],u=6;u<arguments.length;u++)i[u-6]=arguments[u];return o.apply(void 0,n([{},r,t,e,a,c,f],i))},r.merge=o,r}({}); | ||
***************************************************************************** */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}({}); |
{ | ||
"name": "options-defaults", | ||
"version": "2.0.17", | ||
"version": "2.0.18", | ||
"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": "1259c33fd5da7a77e954997139a02454c2e78b38" | ||
"gitHead": "0e07cbf70a150c4c535b9a52a763a9e9ea52d49a" | ||
} |
8758