options-defaults
Advanced tools
Comparing version 2.0.29 to 2.0.30
@@ -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),l=[];try{for(;(void 0===t||t-- >0)&&!(o=a.next()).done;)l.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 l}function e(r,t){for(var e=0,o=t.length,n=r.length;e<o;e++,n++)r[n]=t[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),l=a[0],u=a[1];if(!o.includes(l)){var c="object"==typeof u,f=c&&"Object"!==(null==u?void 0:u.constructor.name);null===u||!c||Array.isArray(u)||f?r[l]=u:(r[l]||(r[l]={}),n(r[l],u))}}))})),r};return r.defaults=function(r,o,a,l,u,c){for(var f=[],i=6;i<arguments.length;i++)f[i-6]=arguments[i];return n.apply(void 0,e([{},r,o,a,l,u,c],t(f)))},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,a=e.call(r),l=[];try{for(;(void 0===t||t-- >0)&&!(o=a.next()).done;)l.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 l}function e(r,t){for(var e=0,o=t.length,n=r.length;e<o;e++,n++)r[n]=t[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),l=a[0],u=a[1];if(!o.includes(l)){var c="object"==typeof u,f=c&&"Object"!==(null==u?void 0:u.constructor.name);null===u||!c||Array.isArray(u)||f?r[l]=u:(r[l]||(r[l]={}),n(r[l],u))}}))})),r};return r.defaults=function(r,o,a,l,u,c,f){for(var i=[],v=7;v<arguments.length;v++)i[v-7]=arguments[v];return n.apply(void 0,e([{},r,o,a,l,u,c,f],t(i)))},r.merge=n,Object.defineProperty(r,"__esModule",{value:!0}),r}({}); |
@@ -5,2 +5,2 @@ export declare const merge: (object: any, ...sources: any[]) => any; | ||
*/ | ||
export declare const defaults: <Defaults, Source, Source2, Source3, Source4, Source5>(object: Defaults, source: Source, source2?: Source2, source3?: Source3, source4?: Source4, source5?: Source5, ...args: any[]) => Defaults & Source & Source2 & Source3 & Source4 & Source5; | ||
export declare const defaults: <Defaults, Source, Source2, Source3, Source4, Source5, Source6>(defaultOptions: Defaults, source: Source, source2?: Source2, source3?: Source3, source4?: Source4, source5?: Source5, source6?: Source6, ...args: any[]) => Defaults & Source & Source2 & Source3 & Source4 & Source5; |
@@ -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),l=[];try{for(;(void 0===t||t-- >0)&&!(o=c.next()).done;)l.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 l}function t(r,t){for(var e=0,o=t.length,n=r.length;e<o;e++,n++)r[n]=t[e];return r}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),l=c[0],u=c[1];if(!e.includes(l)){var a="object"==typeof u,f=a&&"Object"!==(null==u?void 0:u.constructor.name);null===u||!a||Array.isArray(u)||f?t[l]=u:(t[l]||(t[l]={}),o(t[l],u))}}))})),t};exports.defaults=function(e,n,c,l,u,a){for(var f=[],i=6;i<arguments.length;i++)f[i-6]=arguments[i];return o.apply(void 0,t([{},e,n,c,l,u,a],r(f)))},exports.merge=o; | ||
function r(r,t){var e="function"==typeof Symbol&&r[Symbol.iterator];if(!e)return r;var o,n,c=e.call(r),l=[];try{for(;(void 0===t||t-- >0)&&!(o=c.next()).done;)l.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 l}function t(r,t){for(var e=0,o=t.length,n=r.length;e<o;e++,n++)r[n]=t[e];return r}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),l=c[0],u=c[1];if(!e.includes(l)){var a="object"==typeof u,f=a&&"Object"!==(null==u?void 0:u.constructor.name);null===u||!a||Array.isArray(u)||f?t[l]=u:(t[l]||(t[l]={}),o(t[l],u))}}))})),t};exports.defaults=function(e,n,c,l,u,a,f){for(var i=[],y=7;y<arguments.length;y++)i[y-7]=arguments[y];return o.apply(void 0,t([{},e,n,c,l,u,a,f],r(i)))},exports.merge=o; |
@@ -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(r,t){for(var o=0,n=t.length,e=r.length;o<n;o++,e++)r[e]=t[o];return r}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(o,e,c,a,f,l){for(var u=[],i=6;i<arguments.length;i++)u[i-6]=arguments[i];return n.apply(void 0,t([{},o,e,c,a,f,l],r(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(r,t){for(var o=0,n=t.length,e=r.length;o<n;o++,e++)r[e]=t[o];return r}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(o,e,c,a,f,l,u){for(var i=[],y=7;y<arguments.length;y++)i[y-7]=arguments[y];return n.apply(void 0,t([{},o,e,c,a,f,l,u],r(i)))};export{e as defaults,n as merge}; |
{ | ||
"name": "options-defaults", | ||
"version": "2.0.29", | ||
"version": "2.0.30", | ||
"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": "f2c0a184d77ce278e7ba3753c34321b95e69974f" | ||
"gitHead": "fa6a80ce57ce1ea71bfb9a352ed9c648fc8dce5c" | ||
} |
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
11988
56