options-defaults
Advanced tools
Comparing version 2.0.27 to 2.0.28
@@ -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 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 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=[],a=1;a<arguments.length;a++)e[a-1]=arguments[a];return e.forEach((function(e){e&&"object"==typeof e&&Object.entries(e).forEach((function(e){var a=t(e,2),c=a[0],u=a[1];if(!o.includes(c)){var f="object"==typeof u,i=f&&"Object"!==u.constructor.name;null===u||!f||Array.isArray(u)||i?r[c]=u:(r[c]||(r[c]={}),n(r[c],u))}}))})),r};return r.defaults=function(r,t,o,a,c,u){for(var f=[],i=6;i<arguments.length;i++)f[i-6]=arguments[i];return n.apply(void 0,e([{},r,t,o,a,c,u],f))},r.merge=n,Object.defineProperty(r,"__esModule",{value:!0}),r}({}); | ||
***************************************************************************** */function t(r,t){var o="function"==typeof Symbol&&r[Symbol.iterator];if(!o)return r;var e,n,a=o.call(r),c=[];try{for(;(void 0===t||t-- >0)&&!(e=a.next()).done;)c.push(e.value)}catch(r){n={error:r}}finally{try{e&&!e.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}return c}function o(){for(var r=[],o=0;o<arguments.length;o++)r=r.concat(t(arguments[o]));return r}var e=["__proto__","constructor","prototype"],n=function(r){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return o.forEach((function(o){o&&"object"==typeof o&&Object.entries(o).forEach((function(o){var a=t(o,2),c=a[0],u=a[1];if(!e.includes(c)){var l="object"==typeof u,f=l&&"Object"!==(null==u?void 0:u.constructor.name);null===u||!l||Array.isArray(u)||f?r[c]=u:(r[c]||(r[c]={}),n(r[c],u))}}))})),r};return r.defaults=function(r,t,e,a,c,u){for(var l=[],f=6;f<arguments.length;f++)l[f-6]=arguments[f];return n.apply(void 0,o([{},r,t,e,a,c,u],l))},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,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];if(!e.includes(a)){var u="object"==typeof f,l=u&&"Object"!==f.constructor.name;null===f||!u||Array.isArray(f)||l?t[a]=f:(t[a]||(t[a]={}),o(t[a],f))}}))})),t};exports.defaults=function(r,e,n,c,a,f){for(var u=[],l=6;l<arguments.length;l++)u[l-6]=arguments[l];return o.apply(void 0,t([{},r,e,n,c,a,f],u))},exports.merge=o; | ||
function r(r,t){var o="function"==typeof Symbol&&r[Symbol.iterator];if(!o)return r;var e,n,c=o.call(r),a=[];try{for(;(void 0===t||t-- >0)&&!(e=c.next()).done;)a.push(e.value)}catch(r){n={error:r}}finally{try{e&&!e.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}return a}function t(){for(var t=[],o=0;o<arguments.length;o++)t=t.concat(r(arguments[o]));return t}Object.defineProperty(exports,"__esModule",{value:!0});var o=["__proto__","constructor","prototype"],e=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],u=c[1];if(!o.includes(a)){var f="object"==typeof u,l=f&&"Object"!==(null==u?void 0:u.constructor.name);null===u||!f||Array.isArray(u)||l?t[a]=u:(t[a]||(t[a]={}),e(t[a],u))}}))})),t};exports.defaults=function(r,o,n,c,a,u){for(var f=[],l=6;l<arguments.length;l++)f[l-6]=arguments[l];return e.apply(void 0,t([{},r,o,n,c,a,u],f))},exports.merge=e; |
@@ -15,2 +15,2 @@ /*! ***************************************************************************** | ||
***************************************************************************** */ | ||
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];if(!o.includes(a)){var u="object"==typeof f,i=u&&"Object"!==f.constructor.name;null===f||!u||Array.isArray(f)||i?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}; | ||
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];if(!o.includes(a)){var l="object"==typeof f,u=l&&"Object"!==(null==f?void 0:f.constructor.name);null===f||!l||Array.isArray(f)||u?t[a]=f:(t[a]||(t[a]={}),n(t[a],f))}}))})),t},e=function(r,o,e,c,a,f){for(var l=[],u=6;u<arguments.length;u++)l[u-6]=arguments[u];return n.apply(void 0,t([{},r,o,e,c,a,f],l))};export{e as defaults,n as merge}; |
{ | ||
"name": "options-defaults", | ||
"version": "2.0.27", | ||
"version": "2.0.28", | ||
"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.", | ||
@@ -28,3 +28,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "8d9e2d6510ed092ef9e8f20eefff07e8a02900c3" | ||
"gitHead": "5fed168a8d2fdf00e6c59072f19f24cdc38f6a66" | ||
} |
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
10165