test-mixer 3.1.2 → 3.1.3
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/CHANGELOG.md +1 -1
- package/dist/test-mixer.esm.js +2 -2
- package/dist/test-mixer.umd.js +3 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -34,7 +34,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
34
34
|
|
|
35
35
|
## 2.0.1 (2021-01-28)
|
|
36
36
|
|
|
37
|
-
###
|
|
37
|
+
### Fixed
|
|
38
38
|
|
|
39
39
|
- add testStats to npmignore ([f3c84e9](https://github.com/codsen/codsen/commit/f3c84e95afc5514214312f913692d85b2e12eb29))
|
|
40
40
|
|
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.1.
|
|
4
|
+
* @version 3.1.3
|
|
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.1.
|
|
10
|
+
import{combinations as a}from"object-boolean-combinations";import l from"lodash.clonedeep";var i="3.1.3";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 s;if(typeof o=="object"&&typeof t=="object"&&Object.keys(o).some(e=>Object.keys(t).includes(e)?!1:(s=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 "${s}" which 2nd input arg object doesn't have.`);if(!Object.keys(t).length)return[];let c=l(o),r=l(t),n={};return Object.keys(t).forEach(e=>{typeof r[e]=="boolean"&&!Object.keys(o).includes(e)&&(n[e]=r[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.1.
|
|
4
|
+
* @version 3.1.3
|
|
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
|
-
"use strict";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.1.2";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);})();
|
|
10
|
+
"use strict";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.1.3";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.1.
|
|
14
|
+
* @version 5.1.3
|
|
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.1.
|
|
3
|
+
"version": "3.1.3",
|
|
4
4
|
"description": "Test helper to generate function opts object variations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"combinations",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"lodash.clonedeep": "^4.5.0",
|
|
70
|
-
"object-boolean-combinations": "^5.1.
|
|
70
|
+
"object-boolean-combinations": "^5.1.3"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@types/lodash.clonedeep": "^4.5.7"
|