test-mixer 3.0.11 → 3.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/test-mixer.esm.js +2 -2
- package/dist/test-mixer.umd.js +3 -3
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
## Install
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
This package is [pure ESM](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c). If you're not ready yet, install an older version of this program, 2.1.0 (`npm i test-mixer@2.1.0`).
|
|
30
30
|
|
|
31
31
|
```bash
|
|
32
32
|
npm i test-mixer
|
package/dist/test-mixer.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name test-mixer
|
|
3
3
|
* @fileoverview Test helper to generate function opts object variations
|
|
4
|
-
* @version 3.0.
|
|
4
|
+
* @version 3.0.14
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/test-mixer/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import{combinations as a}from"object-boolean-combinations";import l from"lodash.clonedeep";var i="3.0.
|
|
10
|
+
import{combinations as a}from"object-boolean-combinations";import l from"lodash.clonedeep";var i="3.0.14";var h=i;function g(o={},t={}){if(o&&typeof o!="object")throw new Error("test-mixer: [THROW_ID_01] the first input arg is missing!");if(t&&typeof t!="object")throw new Error("test-mixer: [THROW_ID_02] the second input arg is missing!");let r;if(typeof o=="object"&&typeof t=="object"&&Object.keys(o).some(e=>Object.keys(t).includes(e)?!1:(r=e,!0)))throw new Error(`test-mixer: [THROW_ID_03] the second input arg object should be defaults; it should be a superset of 1st input arg object. However, 1st input arg object contains key "${r}" which 2nd input arg object doesn't have.`);if(!Object.keys(t).length)return[];let c=l(o),s=l(t),n={};return Object.keys(t).forEach(e=>{typeof s[e]=="boolean"&&!Object.keys(o).includes(e)&&(n[e]=s[e])}),a(n).map(e=>({...t,...c,...e}))}export{g as mixer,h as version};
|
package/dist/test-mixer.umd.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name test-mixer
|
|
3
3
|
* @fileoverview Test helper to generate function opts object variations
|
|
4
|
-
* @version 3.0.
|
|
4
|
+
* @version 3.0.14
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/test-mixer/}
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
var testMixer=(()=>{var $e=Object.create;var E=Object.defineProperty;var Me=Object.getOwnPropertyDescriptor;var De=Object.getOwnPropertyNames,_t=Object.getOwnPropertySymbols,He=Object.getPrototypeOf,bt=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable;var yt=(t,e,n)=>e in t?E(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,R=(t,e)=>{for(var n in e||(e={}))bt.call(e,n)&&yt(t,n,e[n]);if(_t)for(var n of _t(e))Re.call(e,n)&&yt(t,n,e[n]);return t};var jt=t=>E(t,"__esModule",{value:!0});var N=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ne=(t,e)=>{for(var n in e)E(t,n,{get:e[n],enumerable:!0})},vt=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of De(e))!bt.call(t,o)&&(n||o!=="default")&&E(t,o,{get:()=>e[o],enumerable:!(r=Me(e,o))||r.enumerable});return t},I=(t,e)=>vt(jt(E(t!=null?$e(He(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),Fe=(t=>(e,n)=>t&&t.get(e)||(n=vt(jt({}),e,1),t&&t.set(e,n),n))(typeof WeakMap!="undefined"?new WeakMap:0);var $t=N((Bo,Pt)=>{var X="__lodash_hash_undefined__",Le=9007199254740991,Ge="[object Function]",Be="[object GeneratorFunction]",Ve=/[\\^$.*+?()[\]{}|]/g,We=/^\[object .+?Constructor\]$/,Ue=typeof global=="object"&&global&&global.Object===Object&&global,Ke=typeof self=="object"&&self&&self.Object===Object&&self,mt=Ue||Ke||Function("return this")();function ke(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Je(t,e){var n=t?t.length:0;return!!n&&Ye(t,e,0)>-1}function qe(t,e,n){for(var r=-1,o=t?t.length:0;++r<o;)if(n(e,t[r]))return!0;return!1}function wt(t,e){for(var n=-1,r=t?t.length:0,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function Xe(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1}function Ye(t,e,n){if(e!==e)return Xe(t,Ze,n);for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1}function Ze(t){return t!==t}function Qe(t){return function(e){return t(e)}}function Ot(t,e){return t.has(e)}function ze(t,e){return t==null?void 0:t[e]}function tn(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch(n){}return e}var en=Array.prototype,nn=Function.prototype,xt=Object.prototype,Y=mt["__core-js_shared__"],Ct=function(){var t=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),St=nn.toString,Z=xt.hasOwnProperty,rn=xt.toString,on=RegExp("^"+St.call(Z).replace(Ve,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),an=en.splice,Tt=Math.max,cn=Math.min,sn=At(mt,"Map"),P=At(Object,"create");function j(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function un(){this.__data__=P?P(null):{}}function ln(t){return this.has(t)&&delete this.__data__[t]}function fn(t){var e=this.__data__;if(P){var n=e[t];return n===X?void 0:n}return Z.call(e,t)?e[t]:void 0}function hn(t){var e=this.__data__;return P?e[t]!==void 0:Z.call(e,t)}function pn(t,e){var n=this.__data__;return n[t]=P&&e===void 0?X:e,this}j.prototype.clear=un;j.prototype.delete=ln;j.prototype.get=fn;j.prototype.has=hn;j.prototype.set=pn;function O(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function dn(){this.__data__=[]}function gn(t){var e=this.__data__,n=L(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():an.call(e,n,1),!0}function _n(t){var e=this.__data__,n=L(e,t);return n<0?void 0:e[n][1]}function bn(t){return L(this.__data__,t)>-1}function yn(t,e){var n=this.__data__,r=L(n,t);return r<0?n.push([t,e]):n[r][1]=e,this}O.prototype.clear=dn;O.prototype.delete=gn;O.prototype.get=_n;O.prototype.has=bn;O.prototype.set=yn;function x(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function jn(){this.__data__={hash:new j,map:new(sn||O),string:new j}}function vn(t){return G(this,t).delete(t)}function mn(t){return G(this,t).get(t)}function wn(t){return G(this,t).has(t)}function On(t,e){return G(this,t).set(t,e),this}x.prototype.clear=jn;x.prototype.delete=vn;x.prototype.get=mn;x.prototype.has=wn;x.prototype.set=On;function F(t){var e=-1,n=t?t.length:0;for(this.__data__=new x;++e<n;)this.add(t[e])}function xn(t){return this.__data__.set(t,X),this}function Cn(t){return this.__data__.has(t)}F.prototype.add=F.prototype.push=xn;F.prototype.has=Cn;function L(t,e){for(var n=t.length;n--;)if(Dn(t[n][0],e))return n;return-1}function Sn(t,e,n){for(var r=n?qe:Je,o=t[0].length,i=t.length,a=i,c=Array(i),h=1/0,l=[];a--;){var u=t[a];a&&e&&(u=wt(u,Qe(e))),h=cn(u.length,h),c[a]=!n&&(e||o>=120&&u.length>=120)?new F(a&&u):void 0}u=t[0];var d=-1,g=c[0];t:for(;++d<o&&l.length<h;){var f=u[d],p=e?e(f):f;if(f=n||f!==0?f:0,!(g?Ot(g,p):r(l,p,n))){for(a=i;--a;){var gt=c[a];if(!(gt?Ot(gt,p):r(t[a],p,n)))continue t}g&&g.push(p),l.push(f)}}return l}function Tn(t){if(!It(t)||Pn(t))return!1;var e=Et(t)||tn(t)?on:We;return e.test($n(t))}function An(t,e){return e=Tt(e===void 0?t.length-1:e,0),function(){for(var n=arguments,r=-1,o=Tt(n.length-e,0),i=Array(o);++r<o;)i[r]=n[e+r];r=-1;for(var a=Array(e+1);++r<e;)a[r]=n[r];return a[e]=i,ke(t,this,a)}}function En(t){return Rn(t)?t:[]}function G(t,e){var n=t.__data__;return In(e)?n[typeof e=="string"?"string":"hash"]:n.map}function At(t,e){var n=ze(t,e);return Tn(n)?n:void 0}function In(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Pn(t){return!!Ct&&Ct in t}function $n(t){if(t!=null){try{return St.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var Mn=An(function(t){var e=wt(t,En);return e.length&&e[0]===t[0]?Sn(e):[]});function Dn(t,e){return t===e||t!==t&&e!==e}function Hn(t){return t!=null&&Nn(t.length)&&!Et(t)}function Rn(t){return Fn(t)&&Hn(t)}function Et(t){var e=It(t)?rn.call(t):"";return e==Ge||e==Be}function Nn(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Le}function It(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function Fn(t){return!!t&&typeof t=="object"}Pt.exports=Mn});var Rt=N((Vo,Ht)=>{function Ln(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Gn(t,e){for(var n=-1,r=t?t.length:0,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function Bn(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1}function Vn(t,e,n){if(e!==e)return Bn(t,Un,n);for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1}function Wn(t,e,n,r){for(var o=n-1,i=t.length;++o<i;)if(r(t[o],e))return o;return-1}function Un(t){return t!==t}function Kn(t){return function(e){return t(e)}}var kn=Array.prototype,Mt=kn.splice,Dt=Math.max;function Jn(t,e,n,r){var o=r?Wn:Vn,i=-1,a=e.length,c=t;for(t===e&&(e=Xn(e)),n&&(c=Gn(t,Kn(n)));++i<a;)for(var h=0,l=e[i],u=n?n(l):l;(h=o(c,u,h,r))>-1;)c!==t&&Mt.call(c,h,1),Mt.call(t,h,1);return t}function qn(t,e){return e=Dt(e===void 0?t.length-1:e,0),function(){for(var n=arguments,r=-1,o=Dt(n.length-e,0),i=Array(o);++r<o;)i[r]=n[e+r];r=-1;for(var a=Array(e+1);++r<e;)a[r]=n[r];return a[e]=i,Ln(t,this,a)}}function Xn(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var Yn=qn(Zn);function Zn(t,e){return t&&t.length&&e&&e.length?Jn(t,e):t}Ht.exports=Yn});var Gt=N((Wo,Lt)=>{var Qn="[object Object]";function zn(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch(n){}return e}function tr(t,e){return function(n){return t(e(n))}}var er=Function.prototype,Nt=Object.prototype,Ft=er.toString,nr=Nt.hasOwnProperty,rr=Ft.call(Object),or=Nt.toString,ir=tr(Object.getPrototypeOf,Object);function ar(t){return!!t&&typeof t=="object"}function cr(t){if(!ar(t)||or.call(t)!=Qn||zn(t))return!1;var e=ir(t);if(e===null)return!0;var n=nr.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&Ft.call(n)==rr}Lt.exports=cr});var ht=N((D,A)=>{var sr=200,Bt="__lodash_hash_undefined__",Vt=9007199254740991,Q="[object Arguments]",ur="[object Array]",Wt="[object Boolean]",Ut="[object Date]",lr="[object Error]",z="[object Function]",Kt="[object GeneratorFunction]",B="[object Map]",kt="[object Number]",tt="[object Object]",Jt="[object Promise]",qt="[object RegExp]",V="[object Set]",Xt="[object String]",Yt="[object Symbol]",et="[object WeakMap]",Zt="[object ArrayBuffer]",W="[object DataView]",Qt="[object Float32Array]",zt="[object Float64Array]",te="[object Int8Array]",ee="[object Int16Array]",ne="[object Int32Array]",re="[object Uint8Array]",oe="[object Uint8ClampedArray]",ie="[object Uint16Array]",ae="[object Uint32Array]",fr=/[\\^$.*+?()[\]{}|]/g,hr=/\w*$/,pr=/^\[object .+?Constructor\]$/,dr=/^(?:0|[1-9]\d*)$/,s={};s[Q]=s[ur]=s[Zt]=s[W]=s[Wt]=s[Ut]=s[Qt]=s[zt]=s[te]=s[ee]=s[ne]=s[B]=s[kt]=s[tt]=s[qt]=s[V]=s[Xt]=s[Yt]=s[re]=s[oe]=s[ie]=s[ae]=!0;s[lr]=s[z]=s[et]=!1;var gr=typeof global=="object"&&global&&global.Object===Object&&global,_r=typeof self=="object"&&self&&self.Object===Object&&self,_=gr||_r||Function("return this")(),ce=typeof D=="object"&&D&&!D.nodeType&&D,se=ce&&typeof A=="object"&&A&&!A.nodeType&&A,br=se&&se.exports===ce;function yr(t,e){return t.set(e[0],e[1]),t}function jr(t,e){return t.add(e),t}function vr(t,e){for(var n=-1,r=t?t.length:0;++n<r&&e(t[n],n,t)!==!1;);return t}function mr(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}function ue(t,e,n,r){var o=-1,i=t?t.length:0;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}function wr(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Or(t,e){return t==null?void 0:t[e]}function le(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch(n){}return e}function fe(t){var e=-1,n=Array(t.size);return t.forEach(function(r,o){n[++e]=[o,r]}),n}function nt(t,e){return function(n){return t(e(n))}}function he(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var xr=Array.prototype,Cr=Function.prototype,U=Object.prototype,rt=_["__core-js_shared__"],pe=function(){var t=/[^.]+$/.exec(rt&&rt.keys&&rt.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),de=Cr.toString,y=U.hasOwnProperty,K=U.toString,Sr=RegExp("^"+de.call(y).replace(fr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ge=br?_.Buffer:void 0,_e=_.Symbol,be=_.Uint8Array,Tr=nt(Object.getPrototypeOf,Object),Ar=Object.create,Er=U.propertyIsEnumerable,Ir=xr.splice,ye=Object.getOwnPropertySymbols,Pr=ge?ge.isBuffer:void 0,$r=nt(Object.keys,Object),ot=T(_,"DataView"),$=T(_,"Map"),it=T(_,"Promise"),at=T(_,"Set"),ct=T(_,"WeakMap"),M=T(Object,"create"),Mr=w(ot),Dr=w($),Hr=w(it),Rr=w(at),Nr=w(ct),je=_e?_e.prototype:void 0,ve=je?je.valueOf:void 0;function v(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Fr(){this.__data__=M?M(null):{}}function Lr(t){return this.has(t)&&delete this.__data__[t]}function Gr(t){var e=this.__data__;if(M){var n=e[t];return n===Bt?void 0:n}return y.call(e,t)?e[t]:void 0}function Br(t){var e=this.__data__;return M?e[t]!==void 0:y.call(e,t)}function Vr(t,e){var n=this.__data__;return n[t]=M&&e===void 0?Bt:e,this}v.prototype.clear=Fr;v.prototype.delete=Lr;v.prototype.get=Gr;v.prototype.has=Br;v.prototype.set=Vr;function b(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Wr(){this.__data__=[]}function Ur(t){var e=this.__data__,n=k(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Ir.call(e,n,1),!0}function Kr(t){var e=this.__data__,n=k(e,t);return n<0?void 0:e[n][1]}function kr(t){return k(this.__data__,t)>-1}function Jr(t,e){var n=this.__data__,r=k(n,t);return r<0?n.push([t,e]):n[r][1]=e,this}b.prototype.clear=Wr;b.prototype.delete=Ur;b.prototype.get=Kr;b.prototype.has=kr;b.prototype.set=Jr;function C(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function qr(){this.__data__={hash:new v,map:new($||b),string:new v}}function Xr(t){return J(this,t).delete(t)}function Yr(t){return J(this,t).get(t)}function Zr(t){return J(this,t).has(t)}function Qr(t,e){return J(this,t).set(t,e),this}C.prototype.clear=qr;C.prototype.delete=Xr;C.prototype.get=Yr;C.prototype.has=Zr;C.prototype.set=Qr;function S(t){this.__data__=new b(t)}function zr(){this.__data__=new b}function to(t){return this.__data__.delete(t)}function eo(t){return this.__data__.get(t)}function no(t){return this.__data__.has(t)}function ro(t,e){var n=this.__data__;if(n instanceof b){var r=n.__data__;if(!$||r.length<sr-1)return r.push([t,e]),this;n=this.__data__=new C(r)}return n.set(t,e),this}S.prototype.clear=zr;S.prototype.delete=to;S.prototype.get=eo;S.prototype.has=no;S.prototype.set=ro;function oo(t,e){var n=lt(t)||Eo(t)?wr(t.length,String):[],r=n.length,o=!!r;for(var i in t)(e||y.call(t,i))&&!(o&&(i=="length"||Co(i,r)))&&n.push(i);return n}function me(t,e,n){var r=t[e];(!(y.call(t,e)&&Ce(r,n))||n===void 0&&!(e in t))&&(t[e]=n)}function k(t,e){for(var n=t.length;n--;)if(Ce(t[n][0],e))return n;return-1}function io(t,e){return t&&we(e,ft(e),t)}function st(t,e,n,r,o,i,a){var c;if(r&&(c=i?r(t,o,i,a):r(t)),c!==void 0)return c;if(!q(t))return t;var h=lt(t);if(h){if(c=wo(t),!e)return jo(t,c)}else{var l=m(t),u=l==z||l==Kt;if(Po(t))return fo(t,e);if(l==tt||l==Q||u&&!i){if(le(t))return i?t:{};if(c=Oo(u?{}:t),!e)return vo(t,io(c,t))}else{if(!s[l])return i?t:{};c=xo(t,l,st,e)}}a||(a=new S);var d=a.get(t);if(d)return d;if(a.set(t,c),!h)var g=n?mo(t):ft(t);return vr(g||t,function(f,p){g&&(p=f,f=t[p]),me(c,p,st(f,e,n,r,p,t,a))}),c}function ao(t){return q(t)?Ar(t):{}}function co(t,e,n){var r=e(t);return lt(t)?r:mr(r,n(t))}function so(t){return K.call(t)}function uo(t){if(!q(t)||To(t))return!1;var e=Te(t)||le(t)?Sr:pr;return e.test(w(t))}function lo(t){if(!xe(t))return $r(t);var e=[];for(var n in Object(t))y.call(t,n)&&n!="constructor"&&e.push(n);return e}function fo(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}function ut(t){var e=new t.constructor(t.byteLength);return new be(e).set(new be(t)),e}function ho(t,e){var n=e?ut(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function po(t,e,n){var r=e?n(fe(t),!0):fe(t);return ue(r,yr,new t.constructor)}function go(t){var e=new t.constructor(t.source,hr.exec(t));return e.lastIndex=t.lastIndex,e}function _o(t,e,n){var r=e?n(he(t),!0):he(t);return ue(r,jr,new t.constructor)}function bo(t){return ve?Object(ve.call(t)):{}}function yo(t,e){var n=e?ut(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function jo(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function we(t,e,n,r){n||(n={});for(var o=-1,i=e.length;++o<i;){var a=e[o],c=r?r(n[a],t[a],a,n,t):void 0;me(n,a,c===void 0?t[a]:c)}return n}function vo(t,e){return we(t,Oe(t),e)}function mo(t){return co(t,ft,Oe)}function J(t,e){var n=t.__data__;return So(e)?n[typeof e=="string"?"string":"hash"]:n.map}function T(t,e){var n=Or(t,e);return uo(n)?n:void 0}var Oe=ye?nt(ye,Object):Do,m=so;(ot&&m(new ot(new ArrayBuffer(1)))!=W||$&&m(new $)!=B||it&&m(it.resolve())!=Jt||at&&m(new at)!=V||ct&&m(new ct)!=et)&&(m=function(t){var e=K.call(t),n=e==tt?t.constructor:void 0,r=n?w(n):void 0;if(r)switch(r){case Mr:return W;case Dr:return B;case Hr:return Jt;case Rr:return V;case Nr:return et}return e});function wo(t){var e=t.length,n=t.constructor(e);return e&&typeof t[0]=="string"&&y.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function Oo(t){return typeof t.constructor=="function"&&!xe(t)?ao(Tr(t)):{}}function xo(t,e,n,r){var o=t.constructor;switch(e){case Zt:return ut(t);case Wt:case Ut:return new o(+t);case W:return ho(t,r);case Qt:case zt:case te:case ee:case ne:case re:case oe:case ie:case ae:return yo(t,r);case B:return po(t,r,n);case kt:case Xt:return new o(t);case qt:return go(t);case V:return _o(t,r,n);case Yt:return bo(t)}}function Co(t,e){return e=e==null?Vt:e,!!e&&(typeof t=="number"||dr.test(t))&&t>-1&&t%1==0&&t<e}function So(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function To(t){return!!pe&&pe in t}function xe(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||U;return t===n}function w(t){if(t!=null){try{return de.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function Ao(t){return st(t,!0,!0)}function Ce(t,e){return t===e||t!==t&&e!==e}function Eo(t){return Io(t)&&y.call(t,"callee")&&(!Er.call(t,"callee")||K.call(t)==Q)}var lt=Array.isArray;function Se(t){return t!=null&&$o(t.length)&&!Te(t)}function Io(t){return Mo(t)&&Se(t)}var Po=Pr||Ho;function Te(t){var e=q(t)?K.call(t):"";return e==z||e==Kt}function $o(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Vt}function q(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function Mo(t){return!!t&&typeof t=="object"}function ft(t){return Se(t)?oo(t):lo(t)}function Do(){return[]}function Ho(){return!1}A.exports=Ao});var Lo={};Ne(Lo,{mixer:()=>Fo,version:()=>No});var Ae=I($t(),1),Ee=I(Rt(),1),H=I(Gt(),1),pt=I(ht(),1);function Ie(t,e={}){function n(u){let d=[];for(let g=0;g<1<<u;g++){let f=[];for(let p=0;p<u;p++)f.push(g&1<<p?1:0);d.push(f)}return d}if(!t)throw new Error("[THROW_ID_01] missing input object");if(!(0,H.default)(t))throw new Error("[THROW_ID_02] the first input object must be a true object");if(e&&!(0,H.default)(e))throw new Error("[THROW_ID_03] the second override object must be a true object");let r=(0,pt.default)(t),o=(0,pt.default)(e),i=Object.keys(r),a=[],c=[];(0,H.default)(o)&&Object.keys(o).length&&(c=(0,Ae.default)(Object.keys(o),Object.keys(r)),c.forEach(u=>(0,Ee.default)(i,u)));let h=n(Object.keys(i).length),l;return h.forEach((u,d)=>{l={},i.forEach((g,f)=>{l[g]=h[d][f]===1}),a.push(l)}),(0,H.default)(o)&&Object.keys(o).length&&a.forEach(u=>{c.forEach(d=>{u[d]=o[d]})}),a}var dt=I(ht(),1);var Pe="3.0.11";var No=Pe;function Fo(t={},e={}){if(t&&typeof t!="object")throw new Error("test-mixer: [THROW_ID_01] the first input arg is missing!");if(e&&typeof e!="object")throw new Error("test-mixer: [THROW_ID_02] the second input arg is missing!");let n;if(typeof t=="object"&&typeof e=="object"&&Object.keys(t).some(c=>Object.keys(e).includes(c)?!1:(n=c,!0)))throw new Error(`test-mixer: [THROW_ID_03] the second input arg object should be defaults; it should be a superset of 1st input arg object. However, 1st input arg object contains key "${n}" which 2nd input arg object doesn't have.`);if(!Object.keys(e).length)return[];let r=(0,dt.default)(t),o=(0,dt.default)(e),i={};return Object.keys(e).forEach(c=>{typeof o[c]=="boolean"&&!Object.keys(t).includes(c)&&(i[c]=o[c])}),Ie(i).map(c=>R(R(R({},e),r),c))}return Fe(Lo);})();
|
|
10
|
+
var testMixer=(()=>{var Pe=Object.create;var E=Object.defineProperty;var Me=Object.getOwnPropertyDescriptor;var $e=Object.getOwnPropertyNames,_t=Object.getOwnPropertySymbols,De=Object.getPrototypeOf,yt=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable;var bt=(t,e,n)=>e in t?E(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,R=(t,e)=>{for(var n in e||(e={}))yt.call(e,n)&&bt(t,n,e[n]);if(_t)for(var n of _t(e))He.call(e,n)&&bt(t,n,e[n]);return t};var N=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Re=(t,e)=>{for(var n in e)E(t,n,{get:e[n],enumerable:!0})},jt=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of $e(e))!yt.call(t,o)&&o!==n&&E(t,o,{get:()=>e[o],enumerable:!(r=Me(e,o))||r.enumerable});return t};var I=(t,e,n)=>(n=t!=null?Pe(De(t)):{},jt(e||!t||!t.__esModule?E(n,"default",{value:t,enumerable:!0}):n,t)),Ne=t=>jt(E({},"__esModule",{value:!0}),t);var Pt=N((Go,It)=>{var Y="__lodash_hash_undefined__",Fe=9007199254740991,Le="[object Function]",Ge="[object GeneratorFunction]",Be=/[\\^$.*+?()[\]{}|]/g,Ve=/^\[object .+?Constructor\]$/,We=typeof global=="object"&&global&&global.Object===Object&&global,Ue=typeof self=="object"&&self&&self.Object===Object&&self,Ot=We||Ue||Function("return this")();function Ke(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Je(t,e){var n=t?t.length:0;return!!n&&Xe(t,e,0)>-1}function ke(t,e,n){for(var r=-1,o=t?t.length:0;++r<o;)if(n(e,t[r]))return!0;return!1}function xt(t,e){for(var n=-1,r=t?t.length:0,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function qe(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1}function Xe(t,e,n){if(e!==e)return qe(t,Ye,n);for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1}function Ye(t){return t!==t}function Ze(t){return function(e){return t(e)}}function vt(t,e){return t.has(e)}function Qe(t,e){return t==null?void 0:t[e]}function ze(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch(n){}return e}var tn=Array.prototype,en=Function.prototype,Ct=Object.prototype,X=Ot["__core-js_shared__"],mt=function(){var t=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),St=en.toString,Z=Ct.hasOwnProperty,nn=Ct.toString,rn=RegExp("^"+St.call(Z).replace(Be,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),on=tn.splice,wt=Math.max,an=Math.min,cn=Tt(Ot,"Map"),P=Tt(Object,"create");function j(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function sn(){this.__data__=P?P(null):{}}function un(t){return this.has(t)&&delete this.__data__[t]}function ln(t){var e=this.__data__;if(P){var n=e[t];return n===Y?void 0:n}return Z.call(e,t)?e[t]:void 0}function fn(t){var e=this.__data__;return P?e[t]!==void 0:Z.call(e,t)}function hn(t,e){var n=this.__data__;return n[t]=P&&e===void 0?Y:e,this}j.prototype.clear=sn;j.prototype.delete=un;j.prototype.get=ln;j.prototype.has=fn;j.prototype.set=hn;function O(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function pn(){this.__data__=[]}function dn(t){var e=this.__data__,n=L(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():on.call(e,n,1),!0}function gn(t){var e=this.__data__,n=L(e,t);return n<0?void 0:e[n][1]}function _n(t){return L(this.__data__,t)>-1}function bn(t,e){var n=this.__data__,r=L(n,t);return r<0?n.push([t,e]):n[r][1]=e,this}O.prototype.clear=pn;O.prototype.delete=dn;O.prototype.get=gn;O.prototype.has=_n;O.prototype.set=bn;function x(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function yn(){this.__data__={hash:new j,map:new(cn||O),string:new j}}function jn(t){return G(this,t).delete(t)}function vn(t){return G(this,t).get(t)}function mn(t){return G(this,t).has(t)}function wn(t,e){return G(this,t).set(t,e),this}x.prototype.clear=yn;x.prototype.delete=jn;x.prototype.get=vn;x.prototype.has=mn;x.prototype.set=wn;function F(t){var e=-1,n=t?t.length:0;for(this.__data__=new x;++e<n;)this.add(t[e])}function On(t){return this.__data__.set(t,Y),this}function xn(t){return this.__data__.has(t)}F.prototype.add=F.prototype.push=On;F.prototype.has=xn;function L(t,e){for(var n=t.length;n--;)if($n(t[n][0],e))return n;return-1}function Cn(t,e,n){for(var r=n?ke:Je,o=t[0].length,i=t.length,a=i,c=Array(i),h=1/0,l=[];a--;){var u=t[a];a&&e&&(u=xt(u,Ze(e))),h=an(u.length,h),c[a]=!n&&(e||o>=120&&u.length>=120)?new F(a&&u):void 0}u=t[0];var d=-1,g=c[0];t:for(;++d<o&&l.length<h;){var f=u[d],p=e?e(f):f;if(f=n||f!==0?f:0,!(g?vt(g,p):r(l,p,n))){for(a=i;--a;){var gt=c[a];if(!(gt?vt(gt,p):r(t[a],p,n)))continue t}g&&g.push(p),l.push(f)}}return l}function Sn(t){if(!Et(t)||In(t))return!1;var e=At(t)||ze(t)?rn:Ve;return e.test(Pn(t))}function Tn(t,e){return e=wt(e===void 0?t.length-1:e,0),function(){for(var n=arguments,r=-1,o=wt(n.length-e,0),i=Array(o);++r<o;)i[r]=n[e+r];r=-1;for(var a=Array(e+1);++r<e;)a[r]=n[r];return a[e]=i,Ke(t,this,a)}}function An(t){return Hn(t)?t:[]}function G(t,e){var n=t.__data__;return En(e)?n[typeof e=="string"?"string":"hash"]:n.map}function Tt(t,e){var n=Qe(t,e);return Sn(n)?n:void 0}function En(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function In(t){return!!mt&&mt in t}function Pn(t){if(t!=null){try{return St.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var Mn=Tn(function(t){var e=xt(t,An);return e.length&&e[0]===t[0]?Cn(e):[]});function $n(t,e){return t===e||t!==t&&e!==e}function Dn(t){return t!=null&&Rn(t.length)&&!At(t)}function Hn(t){return Nn(t)&&Dn(t)}function At(t){var e=Et(t)?nn.call(t):"";return e==Le||e==Ge}function Rn(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Fe}function Et(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function Nn(t){return!!t&&typeof t=="object"}It.exports=Mn});var Ht=N((Bo,Dt)=>{function Fn(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Ln(t,e){for(var n=-1,r=t?t.length:0,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function Gn(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1}function Bn(t,e,n){if(e!==e)return Gn(t,Wn,n);for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1}function Vn(t,e,n,r){for(var o=n-1,i=t.length;++o<i;)if(r(t[o],e))return o;return-1}function Wn(t){return t!==t}function Un(t){return function(e){return t(e)}}var Kn=Array.prototype,Mt=Kn.splice,$t=Math.max;function Jn(t,e,n,r){var o=r?Vn:Bn,i=-1,a=e.length,c=t;for(t===e&&(e=qn(e)),n&&(c=Ln(t,Un(n)));++i<a;)for(var h=0,l=e[i],u=n?n(l):l;(h=o(c,u,h,r))>-1;)c!==t&&Mt.call(c,h,1),Mt.call(t,h,1);return t}function kn(t,e){return e=$t(e===void 0?t.length-1:e,0),function(){for(var n=arguments,r=-1,o=$t(n.length-e,0),i=Array(o);++r<o;)i[r]=n[e+r];r=-1;for(var a=Array(e+1);++r<e;)a[r]=n[r];return a[e]=i,Fn(t,this,a)}}function qn(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var Xn=kn(Yn);function Yn(t,e){return t&&t.length&&e&&e.length?Jn(t,e):t}Dt.exports=Xn});var Lt=N((Vo,Ft)=>{var Zn="[object Object]";function Qn(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch(n){}return e}function zn(t,e){return function(n){return t(e(n))}}var tr=Function.prototype,Rt=Object.prototype,Nt=tr.toString,er=Rt.hasOwnProperty,nr=Nt.call(Object),rr=Rt.toString,or=zn(Object.getPrototypeOf,Object);function ir(t){return!!t&&typeof t=="object"}function ar(t){if(!ir(t)||rr.call(t)!=Zn||Qn(t))return!1;var e=or(t);if(e===null)return!0;var n=er.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&Nt.call(n)==nr}Ft.exports=ar});var ht=N((M,C)=>{var cr=200,Zt="__lodash_hash_undefined__",Qt=9007199254740991,it="[object Arguments]",sr="[object Array]",zt="[object Boolean]",te="[object Date]",ur="[object Error]",at="[object Function]",ee="[object GeneratorFunction]",B="[object Map]",ne="[object Number]",ct="[object Object]",Gt="[object Promise]",re="[object RegExp]",V="[object Set]",oe="[object String]",ie="[object Symbol]",z="[object WeakMap]",ae="[object ArrayBuffer]",W="[object DataView]",ce="[object Float32Array]",se="[object Float64Array]",ue="[object Int8Array]",le="[object Int16Array]",fe="[object Int32Array]",he="[object Uint8Array]",pe="[object Uint8ClampedArray]",de="[object Uint16Array]",ge="[object Uint32Array]",lr=/[\\^$.*+?()[\]{}|]/g,fr=/\w*$/,hr=/^\[object .+?Constructor\]$/,pr=/^(?:0|[1-9]\d*)$/,s={};s[it]=s[sr]=s[ae]=s[W]=s[zt]=s[te]=s[ce]=s[se]=s[ue]=s[le]=s[fe]=s[B]=s[ne]=s[ct]=s[re]=s[V]=s[oe]=s[ie]=s[he]=s[pe]=s[de]=s[ge]=!0;s[ur]=s[at]=s[z]=!1;var dr=typeof global=="object"&&global&&global.Object===Object&&global,gr=typeof self=="object"&&self&&self.Object===Object&&self,_=dr||gr||Function("return this")(),_e=typeof M=="object"&&M&&!M.nodeType&&M,Bt=_e&&typeof C=="object"&&C&&!C.nodeType&&C,_r=Bt&&Bt.exports===_e;function br(t,e){return t.set(e[0],e[1]),t}function yr(t,e){return t.add(e),t}function jr(t,e){for(var n=-1,r=t?t.length:0;++n<r&&e(t[n],n,t)!==!1;);return t}function vr(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}function be(t,e,n,r){var o=-1,i=t?t.length:0;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}function mr(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function wr(t,e){return t==null?void 0:t[e]}function ye(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch(n){}return e}function Vt(t){var e=-1,n=Array(t.size);return t.forEach(function(r,o){n[++e]=[o,r]}),n}function st(t,e){return function(n){return t(e(n))}}function Wt(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var Or=Array.prototype,xr=Function.prototype,U=Object.prototype,Q=_["__core-js_shared__"],Ut=function(){var t=/[^.]+$/.exec(Q&&Q.keys&&Q.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),je=xr.toString,y=U.hasOwnProperty,K=U.toString,Cr=RegExp("^"+je.call(y).replace(lr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Kt=_r?_.Buffer:void 0,Jt=_.Symbol,kt=_.Uint8Array,Sr=st(Object.getPrototypeOf,Object),Tr=Object.create,Ar=U.propertyIsEnumerable,Er=Or.splice,qt=Object.getOwnPropertySymbols,Ir=Kt?Kt.isBuffer:void 0,Pr=st(Object.keys,Object),tt=A(_,"DataView"),$=A(_,"Map"),et=A(_,"Promise"),nt=A(_,"Set"),rt=A(_,"WeakMap"),D=A(Object,"create"),Mr=w(tt),$r=w($),Dr=w(et),Hr=w(nt),Rr=w(rt),Xt=Jt?Jt.prototype:void 0,Yt=Xt?Xt.valueOf:void 0;function m(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Nr(){this.__data__=D?D(null):{}}function Fr(t){return this.has(t)&&delete this.__data__[t]}function Lr(t){var e=this.__data__;if(D){var n=e[t];return n===Zt?void 0:n}return y.call(e,t)?e[t]:void 0}function Gr(t){var e=this.__data__;return D?e[t]!==void 0:y.call(e,t)}function Br(t,e){var n=this.__data__;return n[t]=D&&e===void 0?Zt:e,this}m.prototype.clear=Nr;m.prototype.delete=Fr;m.prototype.get=Lr;m.prototype.has=Gr;m.prototype.set=Br;function b(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Vr(){this.__data__=[]}function Wr(t){var e=this.__data__,n=J(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Er.call(e,n,1),!0}function Ur(t){var e=this.__data__,n=J(e,t);return n<0?void 0:e[n][1]}function Kr(t){return J(this.__data__,t)>-1}function Jr(t,e){var n=this.__data__,r=J(n,t);return r<0?n.push([t,e]):n[r][1]=e,this}b.prototype.clear=Vr;b.prototype.delete=Wr;b.prototype.get=Ur;b.prototype.has=Kr;b.prototype.set=Jr;function S(t){var e=-1,n=t?t.length:0;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function kr(){this.__data__={hash:new m,map:new($||b),string:new m}}function qr(t){return k(this,t).delete(t)}function Xr(t){return k(this,t).get(t)}function Yr(t){return k(this,t).has(t)}function Zr(t,e){return k(this,t).set(t,e),this}S.prototype.clear=kr;S.prototype.delete=qr;S.prototype.get=Xr;S.prototype.has=Yr;S.prototype.set=Zr;function T(t){this.__data__=new b(t)}function Qr(){this.__data__=new b}function zr(t){return this.__data__.delete(t)}function to(t){return this.__data__.get(t)}function eo(t){return this.__data__.has(t)}function no(t,e){var n=this.__data__;if(n instanceof b){var r=n.__data__;if(!$||r.length<cr-1)return r.push([t,e]),this;n=this.__data__=new S(r)}return n.set(t,e),this}T.prototype.clear=Qr;T.prototype.delete=zr;T.prototype.get=to;T.prototype.has=eo;T.prototype.set=no;function ro(t,e){var n=lt(t)||Ao(t)?mr(t.length,String):[],r=n.length,o=!!r;for(var i in t)(e||y.call(t,i))&&!(o&&(i=="length"||xo(i,r)))&&n.push(i);return n}function ve(t,e,n){var r=t[e];(!(y.call(t,e)&&xe(r,n))||n===void 0&&!(e in t))&&(t[e]=n)}function J(t,e){for(var n=t.length;n--;)if(xe(t[n][0],e))return n;return-1}function oo(t,e){return t&&me(e,ft(e),t)}function ot(t,e,n,r,o,i,a){var c;if(r&&(c=i?r(t,o,i,a):r(t)),c!==void 0)return c;if(!q(t))return t;var h=lt(t);if(h){if(c=mo(t),!e)return yo(t,c)}else{var l=v(t),u=l==at||l==ee;if(Io(t))return lo(t,e);if(l==ct||l==it||u&&!i){if(ye(t))return i?t:{};if(c=wo(u?{}:t),!e)return jo(t,oo(c,t))}else{if(!s[l])return i?t:{};c=Oo(t,l,ot,e)}}a||(a=new T);var d=a.get(t);if(d)return d;if(a.set(t,c),!h)var g=n?vo(t):ft(t);return jr(g||t,function(f,p){g&&(p=f,f=t[p]),ve(c,p,ot(f,e,n,r,p,t,a))}),c}function io(t){return q(t)?Tr(t):{}}function ao(t,e,n){var r=e(t);return lt(t)?r:vr(r,n(t))}function co(t){return K.call(t)}function so(t){if(!q(t)||So(t))return!1;var e=Se(t)||ye(t)?Cr:hr;return e.test(w(t))}function uo(t){if(!Oe(t))return Pr(t);var e=[];for(var n in Object(t))y.call(t,n)&&n!="constructor"&&e.push(n);return e}function lo(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}function ut(t){var e=new t.constructor(t.byteLength);return new kt(e).set(new kt(t)),e}function fo(t,e){var n=e?ut(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function ho(t,e,n){var r=e?n(Vt(t),!0):Vt(t);return be(r,br,new t.constructor)}function po(t){var e=new t.constructor(t.source,fr.exec(t));return e.lastIndex=t.lastIndex,e}function go(t,e,n){var r=e?n(Wt(t),!0):Wt(t);return be(r,yr,new t.constructor)}function _o(t){return Yt?Object(Yt.call(t)):{}}function bo(t,e){var n=e?ut(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function yo(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function me(t,e,n,r){n||(n={});for(var o=-1,i=e.length;++o<i;){var a=e[o],c=r?r(n[a],t[a],a,n,t):void 0;ve(n,a,c===void 0?t[a]:c)}return n}function jo(t,e){return me(t,we(t),e)}function vo(t){return ao(t,ft,we)}function k(t,e){var n=t.__data__;return Co(e)?n[typeof e=="string"?"string":"hash"]:n.map}function A(t,e){var n=wr(t,e);return so(n)?n:void 0}var we=qt?st(qt,Object):$o,v=co;(tt&&v(new tt(new ArrayBuffer(1)))!=W||$&&v(new $)!=B||et&&v(et.resolve())!=Gt||nt&&v(new nt)!=V||rt&&v(new rt)!=z)&&(v=function(t){var e=K.call(t),n=e==ct?t.constructor:void 0,r=n?w(n):void 0;if(r)switch(r){case Mr:return W;case $r:return B;case Dr:return Gt;case Hr:return V;case Rr:return z}return e});function mo(t){var e=t.length,n=t.constructor(e);return e&&typeof t[0]=="string"&&y.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function wo(t){return typeof t.constructor=="function"&&!Oe(t)?io(Sr(t)):{}}function Oo(t,e,n,r){var o=t.constructor;switch(e){case ae:return ut(t);case zt:case te:return new o(+t);case W:return fo(t,r);case ce:case se:case ue:case le:case fe:case he:case pe:case de:case ge:return bo(t,r);case B:return ho(t,r,n);case ne:case oe:return new o(t);case re:return po(t);case V:return go(t,r,n);case ie:return _o(t)}}function xo(t,e){return e=e==null?Qt:e,!!e&&(typeof t=="number"||pr.test(t))&&t>-1&&t%1==0&&t<e}function Co(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function So(t){return!!Ut&&Ut in t}function Oe(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||U;return t===n}function w(t){if(t!=null){try{return je.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function To(t){return ot(t,!0,!0)}function xe(t,e){return t===e||t!==t&&e!==e}function Ao(t){return Eo(t)&&y.call(t,"callee")&&(!Ar.call(t,"callee")||K.call(t)==it)}var lt=Array.isArray;function Ce(t){return t!=null&&Po(t.length)&&!Se(t)}function Eo(t){return Mo(t)&&Ce(t)}var Io=Ir||Do;function Se(t){var e=q(t)?K.call(t):"";return e==at||e==ee}function Po(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Qt}function q(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function Mo(t){return!!t&&typeof t=="object"}function ft(t){return Ce(t)?ro(t):uo(t)}function $o(){return[]}function Do(){return!1}C.exports=To});var Fo={};Re(Fo,{mixer:()=>No,version:()=>Ro});var Te=I(Pt(),1),Ae=I(Ht(),1),H=I(Lt(),1),pt=I(ht(),1);function Ee(t,e={}){function n(u){let d=[];for(let g=0;g<1<<u;g++){let f=[];for(let p=0;p<u;p++)f.push(g&1<<p?1:0);d.push(f)}return d}if(!t)throw new Error("[THROW_ID_01] missing input object");if(!(0,H.default)(t))throw new Error("[THROW_ID_02] the first input object must be a true object");if(e&&!(0,H.default)(e))throw new Error("[THROW_ID_03] the second override object must be a true object");let r=(0,pt.default)(t),o=(0,pt.default)(e),i=Object.keys(r),a=[],c=[];(0,H.default)(o)&&Object.keys(o).length&&(c=(0,Te.default)(Object.keys(o),Object.keys(r)),c.forEach(u=>(0,Ae.default)(i,u)));let h=n(Object.keys(i).length),l;return h.forEach((u,d)=>{l={},i.forEach((g,f)=>{l[g]=h[d][f]===1}),a.push(l)}),(0,H.default)(o)&&Object.keys(o).length&&a.forEach(u=>{c.forEach(d=>{u[d]=o[d]})}),a}var dt=I(ht(),1);var Ie="3.0.14";var Ro=Ie;function No(t={},e={}){if(t&&typeof t!="object")throw new Error("test-mixer: [THROW_ID_01] the first input arg is missing!");if(e&&typeof e!="object")throw new Error("test-mixer: [THROW_ID_02] the second input arg is missing!");let n;if(typeof t=="object"&&typeof e=="object"&&Object.keys(t).some(c=>Object.keys(e).includes(c)?!1:(n=c,!0)))throw new Error(`test-mixer: [THROW_ID_03] the second input arg object should be defaults; it should be a superset of 1st input arg object. However, 1st input arg object contains key "${n}" which 2nd input arg object doesn't have.`);if(!Object.keys(e).length)return[];let r=(0,dt.default)(t),o=(0,dt.default)(e),i={};return Object.keys(e).forEach(c=>{typeof o[c]=="boolean"&&!Object.keys(t).includes(c)&&(i[c]=o[c])}),Ee(i).map(c=>R(R(R({},e),r),c))}return Ne(Fo);})();
|
|
11
11
|
/**
|
|
12
12
|
* @name object-boolean-combinations
|
|
13
13
|
* @fileoverview Consumes a defaults object with booleans, generates all possible variations of it
|
|
14
|
-
* @version 5.0.
|
|
14
|
+
* @version 5.0.14
|
|
15
15
|
* @author Roy Revelt, Codsen Ltd
|
|
16
16
|
* @license MIT
|
|
17
17
|
* {@link https://codsen.com/os/object-boolean-combinations/}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "test-mixer",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.14",
|
|
4
4
|
"description": "Test helper to generate function opts object variations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"combinations",
|
|
@@ -33,9 +33,10 @@
|
|
|
33
33
|
"scripts": {
|
|
34
34
|
"build": "node '../../ops/scripts/esbuild.js' && yarn run dts",
|
|
35
35
|
"dev": "DEV=true node '../../ops/scripts/esbuild.js' && yarn run dts",
|
|
36
|
+
"devtest": "c8 yarn run unit && yarn run examples && yarn run lint",
|
|
36
37
|
"dts": "rollup -c && yarn run prettier 'types/index.d.ts' --write",
|
|
37
38
|
"examples": "node '../../ops/scripts/run-examples.js'",
|
|
38
|
-
"lect": "node '../../ops/lect/lect.js'",
|
|
39
|
+
"lect": "node '../../ops/lect/lect.js' && yarn run prettier 'README.md' '.all-contributorsrc' 'rollup.config.js' --write",
|
|
39
40
|
"letspublish": "yarn publish || :",
|
|
40
41
|
"lint": "eslint . --fix",
|
|
41
42
|
"perf": "node perf/check.js",
|
|
@@ -43,7 +44,7 @@
|
|
|
43
44
|
"prettier": "prettier",
|
|
44
45
|
"prettier:format": "prettier --write '**/*.{ts,tsx,md}' --no-error-on-unmatched-pattern",
|
|
45
46
|
"pretest": "yarn run lect && yarn run build",
|
|
46
|
-
"test": "
|
|
47
|
+
"test": "yarn run devtest",
|
|
47
48
|
"unit": "uvu test"
|
|
48
49
|
},
|
|
49
50
|
"engines": {
|
|
@@ -65,9 +66,9 @@
|
|
|
65
66
|
},
|
|
66
67
|
"dependencies": {
|
|
67
68
|
"lodash.clonedeep": "^4.5.0",
|
|
68
|
-
"object-boolean-combinations": "^5.0.
|
|
69
|
+
"object-boolean-combinations": "^5.0.14"
|
|
69
70
|
},
|
|
70
71
|
"devDependencies": {
|
|
71
|
-
"@types/lodash.clonedeep": "^4.5.
|
|
72
|
+
"@types/lodash.clonedeep": "^4.5.7"
|
|
72
73
|
}
|
|
73
74
|
}
|