test-mixer 4.1.7 → 4.1.9

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.
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @name test-mixer
3
3
  * @fileoverview Test helper to generate function opts object variations
4
- * @version 4.1.7
4
+ * @version 4.1.9
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 u}from"object-boolean-combinations";import l from"lodash.clonedeep";var i="4.1.7";var h=i;function f(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).filter(e=>typeof o[e]=="boolean").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 p=l(o),n=l(t),r={};return Object.keys(t).forEach(e=>{typeof n[e]=="boolean"&&!Object.keys(o).includes(e)&&(r[e]=n[e])}),u(r).map(e=>({...t,...p,...e}))}export{f as mixer,h as version};
10
+ import{combinations as u}from"object-boolean-combinations";import m from"rfdc";var i="4.1.9";var l=m(),h=i;function j(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).filter(e=>typeof o[e]=="boolean").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),n=l(t),r={};return Object.keys(t).forEach(e=>{typeof n[e]=="boolean"&&!Object.keys(o).includes(e)&&(r[e]=n[e])}),u(r).map(e=>({...t,...c,...e}))}export{j as mixer,h as version};
@@ -1,17 +1,17 @@
1
1
  /**
2
2
  * @name test-mixer
3
3
  * @fileoverview Test helper to generate function opts object variations
4
- * @version 4.1.7
4
+ * @version 4.1.9
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 Se=Object.create;var E=Object.defineProperty;var Te=Object.getOwnPropertyDescriptor;var Ee=Object.getOwnPropertyNames,bt=Object.getOwnPropertySymbols,De=Object.getPrototypeOf,yt=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable;var _t=(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)&&_t(t,n,e[n]);if(bt)for(var n of bt(e))Ie.call(e,n)&&_t(t,n,e[n]);return t};var Q=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),$e=(t,e)=>{for(var n in e)E(t,n,{get:e[n],enumerable:!0})},mt=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Ee(e))!yt.call(t,i)&&i!==n&&E(t,i,{get:()=>e[i],enumerable:!(r=Te(e,i))||r.enumerable});return t};var B=(t,e,n)=>(n=t!=null?Se(De(t)):{},mt(e||!t||!t.__esModule?E(n,"default",{value:t,enumerable:!0}):n,t)),Pe=t=>mt(E({},"__esModule",{value:!0}),t);var It=Q((Ci,Dt)=>{var Z="__lodash_hash_undefined__",Me=9007199254740991,Re="[object Function]",Be="[object GeneratorFunction]",Ne=/[\\^$.*+?()[\]{}|]/g,Le=/^\[object .+?Constructor\]$/,Fe=typeof global=="object"&&global&&global.Object===Object&&global,He=typeof self=="object"&&self&&self.Object===Object&&self,jt=Fe||He||Function("return this")();function Ge(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 Ue(t,e){var n=t?t.length:0;return!!n&&Ve(t,e,0)>-1}function We(t,e,n){for(var r=-1,i=t?t.length:0;++r<i;)if(n(e,t[r]))return!0;return!1}function Ot(t,e){for(var n=-1,r=t?t.length:0,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function ke(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function Ve(t,e,n){if(e!==e)return ke(t,Ke,n);for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function Ke(t){return t!==t}function Je(t){return function(e){return t(e)}}function wt(t,e){return t.has(e)}function Qe(t,e){return t==null?void 0:t[e]}function qe(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch(n){}return e}var Ze=Array.prototype,Xe=Function.prototype,Ct=Object.prototype,q=jt["__core-js_shared__"],vt=function(){var t=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),At=Xe.toString,X=Ct.hasOwnProperty,Ye=Ct.toString,ze=RegExp("^"+At.call(X).replace(Ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tn=Ze.splice,xt=Math.max,en=Math.min,nn=St(jt,"Map"),D=St(Object,"create");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 rn(){this.__data__=D?D(null):{}}function on(t){return this.has(t)&&delete this.__data__[t]}function an(t){var e=this.__data__;if(D){var n=e[t];return n===Z?void 0:n}return X.call(e,t)?e[t]:void 0}function sn(t){var e=this.__data__;return D?e[t]!==void 0:X.call(e,t)}function un(t,e){var n=this.__data__;return n[t]=D&&e===void 0?Z:e,this}m.prototype.clear=rn;m.prototype.delete=on;m.prototype.get=an;m.prototype.has=sn;m.prototype.set=un;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 cn(){this.__data__=[]}function ln(t){var e=this.__data__,n=L(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():tn.call(e,n,1),!0}function fn(t){var e=this.__data__,n=L(e,t);return n<0?void 0:e[n][1]}function hn(t){return L(this.__data__,t)>-1}function pn(t,e){var n=this.__data__,r=L(n,t);return r<0?n.push([t,e]):n[r][1]=e,this}j.prototype.clear=cn;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__={hash:new m,map:new(nn||j),string:new m}}function gn(t){return F(this,t).delete(t)}function bn(t){return F(this,t).get(t)}function _n(t){return F(this,t).has(t)}function yn(t,e){return F(this,t).set(t,e),this}O.prototype.clear=dn;O.prototype.delete=gn;O.prototype.get=bn;O.prototype.has=_n;O.prototype.set=yn;function N(t){var e=-1,n=t?t.length:0;for(this.__data__=new O;++e<n;)this.add(t[e])}function mn(t){return this.__data__.set(t,Z),this}function wn(t){return this.__data__.has(t)}N.prototype.add=N.prototype.push=mn;N.prototype.has=wn;function L(t,e){for(var n=t.length;n--;)if(En(t[n][0],e))return n;return-1}function vn(t,e,n){for(var r=n?We:Ue,i=t[0].length,o=t.length,s=o,a=Array(o),h=1/0,l=[];s--;){var c=t[s];s&&e&&(c=Ot(c,Je(e))),h=en(c.length,h),a[s]=!n&&(e||i>=120&&c.length>=120)?new N(s&&c):void 0}c=t[0];var d=-1,g=a[0];t:for(;++d<i&&l.length<h;){var f=c[d],p=e?e(f):f;if(f=n||f!==0?f:0,!(g?wt(g,p):r(l,p,n))){for(s=o;--s;){var gt=a[s];if(!(gt?wt(gt,p):r(t[s],p,n)))continue t}g&&g.push(p),l.push(f)}}return l}function xn(t){if(!Et(t)||An(t))return!1;var e=Tt(t)||qe(t)?ze:Le;return e.test(Sn(t))}function jn(t,e){return e=xt(e===void 0?t.length-1:e,0),function(){for(var n=arguments,r=-1,i=xt(n.length-e,0),o=Array(i);++r<i;)o[r]=n[e+r];r=-1;for(var s=Array(e+1);++r<e;)s[r]=n[r];return s[e]=o,Ge(t,this,s)}}function On(t){return In(t)?t:[]}function F(t,e){var n=t.__data__;return Cn(e)?n[typeof e=="string"?"string":"hash"]:n.map}function St(t,e){var n=Qe(t,e);return xn(n)?n:void 0}function Cn(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function An(t){return!!vt&&vt in t}function Sn(t){if(t!=null){try{return At.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var Tn=jn(function(t){var e=Ot(t,On);return e.length&&e[0]===t[0]?vn(e):[]});function En(t,e){return t===e||t!==t&&e!==e}function Dn(t){return t!=null&&$n(t.length)&&!Tt(t)}function In(t){return Pn(t)&&Dn(t)}function Tt(t){var e=Et(t)?Ye.call(t):"";return e==Re||e==Be}function $n(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Me}function Et(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function Pn(t){return!!t&&typeof t=="object"}Dt.exports=Tn});var Rt=Q((Ai,Mt)=>{function Mn(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 Rn(t,e){for(var n=-1,r=t?t.length:0,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function Bn(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function Nn(t,e,n){if(e!==e)return Bn(t,Fn,n);for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function Ln(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function Fn(t){return t!==t}function Hn(t){return function(e){return t(e)}}var Gn=Array.prototype,$t=Gn.splice,Pt=Math.max;function Un(t,e,n,r){var i=r?Ln:Nn,o=-1,s=e.length,a=t;for(t===e&&(e=kn(e)),n&&(a=Rn(t,Hn(n)));++o<s;)for(var h=0,l=e[o],c=n?n(l):l;(h=i(a,c,h,r))>-1;)a!==t&&$t.call(a,h,1),$t.call(t,h,1);return t}function Wn(t,e){return e=Pt(e===void 0?t.length-1:e,0),function(){for(var n=arguments,r=-1,i=Pt(n.length-e,0),o=Array(i);++r<i;)o[r]=n[e+r];r=-1;for(var s=Array(e+1);++r<e;)s[r]=n[r];return s[e]=o,Mn(t,this,s)}}function kn(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var Vn=Wn(Kn);function Kn(t,e){return t&&t.length&&e&&e.length?Un(t,e):t}Mt.exports=Vn});var ht=Q(($,C)=>{var Jn=200,Jt="__lodash_hash_undefined__",Qt=9007199254740991,ot="[object Arguments]",Qn="[object Array]",qt="[object Boolean]",Zt="[object Date]",qn="[object Error]",at="[object Function]",Xt="[object GeneratorFunction]",H="[object Map]",Yt="[object Number]",st="[object Object]",Bt="[object Promise]",zt="[object RegExp]",G="[object Set]",te="[object String]",ee="[object Symbol]",z="[object WeakMap]",ne="[object ArrayBuffer]",U="[object DataView]",re="[object Float32Array]",ie="[object Float64Array]",oe="[object Int8Array]",ae="[object Int16Array]",se="[object Int32Array]",ue="[object Uint8Array]",ce="[object Uint8ClampedArray]",le="[object Uint16Array]",fe="[object Uint32Array]",Zn=/[\\^$.*+?()[\]{}|]/g,Xn=/\w*$/,Yn=/^\[object .+?Constructor\]$/,zn=/^(?:0|[1-9]\d*)$/,u={};u[ot]=u[Qn]=u[ne]=u[U]=u[qt]=u[Zt]=u[re]=u[ie]=u[oe]=u[ae]=u[se]=u[H]=u[Yt]=u[st]=u[zt]=u[G]=u[te]=u[ee]=u[ue]=u[ce]=u[le]=u[fe]=!0;u[qn]=u[at]=u[z]=!1;var tr=typeof global=="object"&&global&&global.Object===Object&&global,er=typeof self=="object"&&self&&self.Object===Object&&self,b=tr||er||Function("return this")(),he=typeof $=="object"&&$&&!$.nodeType&&$,Nt=he&&typeof C=="object"&&C&&!C.nodeType&&C,nr=Nt&&Nt.exports===he;function rr(t,e){return t.set(e[0],e[1]),t}function ir(t,e){return t.add(e),t}function or(t,e){for(var n=-1,r=t?t.length:0;++n<r&&e(t[n],n,t)!==!1;);return t}function ar(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function pe(t,e,n,r){var i=-1,o=t?t.length:0;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function sr(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function ur(t,e){return t==null?void 0:t[e]}function de(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch(n){}return e}function Lt(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}function ut(t,e){return function(n){return t(e(n))}}function Ft(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var cr=Array.prototype,lr=Function.prototype,W=Object.prototype,Y=b["__core-js_shared__"],Ht=function(){var t=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),ge=lr.toString,y=W.hasOwnProperty,k=W.toString,fr=RegExp("^"+ge.call(y).replace(Zn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Gt=nr?b.Buffer:void 0,Ut=b.Symbol,Wt=b.Uint8Array,hr=ut(Object.getPrototypeOf,Object),pr=Object.create,dr=W.propertyIsEnumerable,gr=cr.splice,kt=Object.getOwnPropertySymbols,br=Gt?Gt.isBuffer:void 0,_r=ut(Object.keys,Object),tt=T(b,"DataView"),P=T(b,"Map"),et=T(b,"Promise"),nt=T(b,"Set"),rt=T(b,"WeakMap"),M=T(Object,"create"),yr=x(tt),mr=x(P),wr=x(et),vr=x(nt),xr=x(rt),Vt=Ut?Ut.prototype:void 0,Kt=Vt?Vt.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 jr(){this.__data__=M?M(null):{}}function Or(t){return this.has(t)&&delete this.__data__[t]}function Cr(t){var e=this.__data__;if(M){var n=e[t];return n===Jt?void 0:n}return y.call(e,t)?e[t]:void 0}function Ar(t){var e=this.__data__;return M?e[t]!==void 0:y.call(e,t)}function Sr(t,e){var n=this.__data__;return n[t]=M&&e===void 0?Jt:e,this}v.prototype.clear=jr;v.prototype.delete=Or;v.prototype.get=Cr;v.prototype.has=Ar;v.prototype.set=Sr;function _(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 Tr(){this.__data__=[]}function Er(t){var e=this.__data__,n=V(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():gr.call(e,n,1),!0}function Dr(t){var e=this.__data__,n=V(e,t);return n<0?void 0:e[n][1]}function Ir(t){return V(this.__data__,t)>-1}function $r(t,e){var n=this.__data__,r=V(n,t);return r<0?n.push([t,e]):n[r][1]=e,this}_.prototype.clear=Tr;_.prototype.delete=Er;_.prototype.get=Dr;_.prototype.has=Ir;_.prototype.set=$r;function A(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 Pr(){this.__data__={hash:new v,map:new(P||_),string:new v}}function Mr(t){return K(this,t).delete(t)}function Rr(t){return K(this,t).get(t)}function Br(t){return K(this,t).has(t)}function Nr(t,e){return K(this,t).set(t,e),this}A.prototype.clear=Pr;A.prototype.delete=Mr;A.prototype.get=Rr;A.prototype.has=Br;A.prototype.set=Nr;function S(t){this.__data__=new _(t)}function Lr(){this.__data__=new _}function Fr(t){return this.__data__.delete(t)}function Hr(t){return this.__data__.get(t)}function Gr(t){return this.__data__.has(t)}function Ur(t,e){var n=this.__data__;if(n instanceof _){var r=n.__data__;if(!P||r.length<Jn-1)return r.push([t,e]),this;n=this.__data__=new A(r)}return n.set(t,e),this}S.prototype.clear=Lr;S.prototype.delete=Fr;S.prototype.get=Hr;S.prototype.has=Gr;S.prototype.set=Ur;function Wr(t,e){var n=lt(t)||pi(t)?sr(t.length,String):[],r=n.length,i=!!r;for(var o in t)(e||y.call(t,o))&&!(i&&(o=="length"||ci(o,r)))&&n.push(o);return n}function be(t,e,n){var r=t[e];(!(y.call(t,e)&&we(r,n))||n===void 0&&!(e in t))&&(t[e]=n)}function V(t,e){for(var n=t.length;n--;)if(we(t[n][0],e))return n;return-1}function kr(t,e){return t&&_e(e,ft(e),t)}function it(t,e,n,r,i,o,s){var a;if(r&&(a=o?r(t,i,o,s):r(t)),a!==void 0)return a;if(!J(t))return t;var h=lt(t);if(h){if(a=ai(t),!e)return ri(t,a)}else{var l=w(t),c=l==at||l==Xt;if(gi(t))return Zr(t,e);if(l==st||l==ot||c&&!o){if(de(t))return o?t:{};if(a=si(c?{}:t),!e)return ii(t,kr(a,t))}else{if(!u[l])return o?t:{};a=ui(t,l,it,e)}}s||(s=new S);var d=s.get(t);if(d)return d;if(s.set(t,a),!h)var g=n?oi(t):ft(t);return or(g||t,function(f,p){g&&(p=f,f=t[p]),be(a,p,it(f,e,n,r,p,t,s))}),a}function Vr(t){return J(t)?pr(t):{}}function Kr(t,e,n){var r=e(t);return lt(t)?r:ar(r,n(t))}function Jr(t){return k.call(t)}function Qr(t){if(!J(t)||fi(t))return!1;var e=xe(t)||de(t)?fr:Yn;return e.test(x(t))}function qr(t){if(!me(t))return _r(t);var e=[];for(var n in Object(t))y.call(t,n)&&n!="constructor"&&e.push(n);return e}function Zr(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}function ct(t){var e=new t.constructor(t.byteLength);return new Wt(e).set(new Wt(t)),e}function Xr(t,e){var n=e?ct(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}function Yr(t,e,n){var r=e?n(Lt(t),!0):Lt(t);return pe(r,rr,new t.constructor)}function zr(t){var e=new t.constructor(t.source,Xn.exec(t));return e.lastIndex=t.lastIndex,e}function ti(t,e,n){var r=e?n(Ft(t),!0):Ft(t);return pe(r,ir,new t.constructor)}function ei(t){return Kt?Object(Kt.call(t)):{}}function ni(t,e){var n=e?ct(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function ri(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}function _e(t,e,n,r){n||(n={});for(var i=-1,o=e.length;++i<o;){var s=e[i],a=r?r(n[s],t[s],s,n,t):void 0;be(n,s,a===void 0?t[s]:a)}return n}function ii(t,e){return _e(t,ye(t),e)}function oi(t){return Kr(t,ft,ye)}function K(t,e){var n=t.__data__;return li(e)?n[typeof e=="string"?"string":"hash"]:n.map}function T(t,e){var n=ur(t,e);return Qr(n)?n:void 0}var ye=kt?ut(kt,Object):yi,w=Jr;(tt&&w(new tt(new ArrayBuffer(1)))!=U||P&&w(new P)!=H||et&&w(et.resolve())!=Bt||nt&&w(new nt)!=G||rt&&w(new rt)!=z)&&(w=function(t){var e=k.call(t),n=e==st?t.constructor:void 0,r=n?x(n):void 0;if(r)switch(r){case yr:return U;case mr:return H;case wr:return Bt;case vr:return G;case xr:return z}return e});function ai(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 si(t){return typeof t.constructor=="function"&&!me(t)?Vr(hr(t)):{}}function ui(t,e,n,r){var i=t.constructor;switch(e){case ne:return ct(t);case qt:case Zt:return new i(+t);case U:return Xr(t,r);case re:case ie:case oe:case ae:case se:case ue:case ce:case le:case fe:return ni(t,r);case H:return Yr(t,r,n);case Yt:case te:return new i(t);case zt:return zr(t);case G:return ti(t,r,n);case ee:return ei(t)}}function ci(t,e){return e=e==null?Qt:e,!!e&&(typeof t=="number"||zn.test(t))&&t>-1&&t%1==0&&t<e}function li(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function fi(t){return!!Ht&&Ht in t}function me(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||W;return t===n}function x(t){if(t!=null){try{return ge.call(t)}catch(e){}try{return t+""}catch(e){}}return""}function hi(t){return it(t,!0,!0)}function we(t,e){return t===e||t!==t&&e!==e}function pi(t){return di(t)&&y.call(t,"callee")&&(!dr.call(t,"callee")||k.call(t)==ot)}var lt=Array.isArray;function ve(t){return t!=null&&bi(t.length)&&!xe(t)}function di(t){return _i(t)&&ve(t)}var gi=br||mi;function xe(t){var e=J(t)?k.call(t):"";return e==at||e==Xt}function bi(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Qt}function J(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function _i(t){return!!t&&typeof t=="object"}function ft(t){return ve(t)?Wr(t):qr(t)}function yi(){return[]}function mi(){return!1}C.exports=hi});var ji={};$e(ji,{mixer:()=>xi,version:()=>vi});var je=B(It(),1),Oe=B(Rt(),1);function I(t){if(t==null||typeof t!="object")return!1;let e=Object.getPrototypeOf(t);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null?!1:!(Symbol.iterator in t)&&!(Symbol.toStringTag in t)}var pt=B(ht(),1);function Ce(t,e={}){function n(c){let d=[];for(let g=0;g<1<<c;g++){let f=[];for(let p=0;p<c;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(!I(t))throw new Error("[THROW_ID_02] the first input object must be a true object");if(e&&!I(e))throw new Error("[THROW_ID_03] the second override object must be a true object");let r=(0,pt.default)(t),i=(0,pt.default)(e),o=Object.keys(r),s=[],a=[];I(i)&&Object.keys(i).length&&(a=(0,je.default)(Object.keys(i),Object.keys(r)),a.forEach(c=>(0,Oe.default)(o,c)));let h=n(Object.keys(o).length),l;return h.forEach((c,d)=>{l={},o.forEach((g,f)=>{l[g]=h[d][f]===1}),s.push(l)}),I(i)&&Object.keys(i).length&&s.forEach(c=>{a.forEach(d=>{c[d]=i[d]})}),s}var dt=B(ht(),1);var Ae="4.1.7";var vi=Ae;function xi(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).filter(a=>typeof t[a]=="boolean").some(a=>Object.keys(e).includes(a)?!1:(n=a,!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),i=(0,dt.default)(e),o={};return Object.keys(e).forEach(a=>{typeof i[a]=="boolean"&&!Object.keys(t).includes(a)&&(o[a]=i[a])}),Ce(o).map(a=>R(R(R({},e),r),a))}return Pe(ji);})();
10
+ "use strict";var testMixer=(()=>{var st=Object.create;var S=Object.defineProperty;var nt=Object.getOwnPropertyDescriptor;var it=Object.getOwnPropertyNames,q=Object.getOwnPropertySymbols,lt=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable;var G=(e,t,r)=>t in e?S(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,I=(e,t)=>{for(var r in t||(t={}))k.call(t,r)&&G(e,r,t[r]);if(q)for(var r of q(t))pt.call(t,r)&&G(e,r,t[r]);return e};var ut=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),mt=(e,t)=>{for(var r in t)S(e,r,{get:t[r],enumerable:!0})},J=(e,t,r,f)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of it(t))!k.call(e,o)&&o!==r&&S(e,o,{get:()=>t[o],enumerable:!(f=nt(t,o))||f.enumerable});return e};var K=(e,t,r)=>(r=e!=null?st(lt(e)):{},J(t||!e||!e.__esModule?S(r,"default",{value:e,enumerable:!0}):r,e)),dt=e=>J(S({},"__esModule",{value:!0}),e);var V=ut((ws,Ye)=>{"use strict";Ye.exports=io;function _(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function io(e){if(e=e||{},e.circles)return lo(e);return e.proto?f:r;function t(o,i){for(var s=Object.keys(o),a=new Array(s.length),l=0;l<s.length;l++){var n=s[l],p=o[n];typeof p!="object"||p===null?a[n]=p:p instanceof Date?a[n]=new Date(p):ArrayBuffer.isView(p)?a[n]=_(p):a[n]=i(p)}return a}function r(o){if(typeof o!="object"||o===null)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return t(o,r);if(o instanceof Map)return new Map(t(Array.from(o),r));if(o instanceof Set)return new Set(t(Array.from(o),r));var i={};for(var s in o)if(Object.hasOwnProperty.call(o,s)!==!1){var a=o[s];typeof a!="object"||a===null?i[s]=a:a instanceof Date?i[s]=new Date(a):a instanceof Map?i[s]=new Map(t(Array.from(a),r)):a instanceof Set?i[s]=new Set(t(Array.from(a),r)):ArrayBuffer.isView(a)?i[s]=_(a):i[s]=r(a)}return i}function f(o){if(typeof o!="object"||o===null)return o;if(o instanceof Date)return new Date(o);if(Array.isArray(o))return t(o,f);if(o instanceof Map)return new Map(t(Array.from(o),f));if(o instanceof Set)return new Set(t(Array.from(o),f));var i={};for(var s in o){var a=o[s];typeof a!="object"||a===null?i[s]=a:a instanceof Date?i[s]=new Date(a):a instanceof Map?i[s]=new Map(t(Array.from(a),f)):a instanceof Set?i[s]=new Set(t(Array.from(a),f)):ArrayBuffer.isView(a)?i[s]=_(a):i[s]=f(a)}return i}}function lo(e){var t=[],r=[];return e.proto?i:o;function f(s,a){for(var l=Object.keys(s),n=new Array(l.length),p=0;p<l.length;p++){var m=l[p],u=s[m];if(typeof u!="object"||u===null)n[m]=u;else if(u instanceof Date)n[m]=new Date(u);else if(ArrayBuffer.isView(u))n[m]=_(u);else{var d=t.indexOf(u);d!==-1?n[m]=r[d]:n[m]=a(u)}}return n}function o(s){if(typeof s!="object"||s===null)return s;if(s instanceof Date)return new Date(s);if(Array.isArray(s))return f(s,o);if(s instanceof Map)return new Map(f(Array.from(s),o));if(s instanceof Set)return new Set(f(Array.from(s),o));var a={};t.push(s),r.push(a);for(var l in s)if(Object.hasOwnProperty.call(s,l)!==!1){var n=s[l];if(typeof n!="object"||n===null)a[l]=n;else if(n instanceof Date)a[l]=new Date(n);else if(n instanceof Map)a[l]=new Map(f(Array.from(n),o));else if(n instanceof Set)a[l]=new Set(f(Array.from(n),o));else if(ArrayBuffer.isView(n))a[l]=_(n);else{var p=t.indexOf(n);p!==-1?a[l]=r[p]:a[l]=o(n)}}return t.pop(),r.pop(),a}function i(s){if(typeof s!="object"||s===null)return s;if(s instanceof Date)return new Date(s);if(Array.isArray(s))return f(s,i);if(s instanceof Map)return new Map(f(Array.from(s),i));if(s instanceof Set)return new Set(f(Array.from(s),i));var a={};t.push(s),r.push(a);for(var l in s){var n=s[l];if(typeof n!="object"||n===null)a[l]=n;else if(n instanceof Date)a[l]=new Date(n);else if(n instanceof Map)a[l]=new Map(f(Array.from(n),i));else if(n instanceof Set)a[l]=new Set(f(Array.from(n),i));else if(ArrayBuffer.isView(n))a[l]=_(n);else{var p=t.indexOf(n);p!==-1?a[l]=r[p]:a[l]=i(n)}}return t.pop(),r.pop(),a}}});var xo={};mt(xo,{mixer:()=>mo,version:()=>uo});var xt=typeof global=="object"&&global&&global.Object===Object&&global,Q=xt;var ct=typeof self=="object"&&self&&self.Object===Object&&self,ht=Q||ct||Function("return this")(),b=ht;var gt=b.Symbol,y=gt;var Z=Object.prototype,bt=Z.hasOwnProperty,yt=Z.toString,C=y?y.toStringTag:void 0;function vt(e){var t=bt.call(e,C),r=e[C];try{e[C]=void 0;var f=!0}catch(i){}var o=yt.call(e);return f&&(t?e[C]=r:delete e[C]),o}var X=vt;var wt=Object.prototype,Ot=wt.toString;function jt(e){return Ot.call(e)}var Y=jt;var At="[object Null]",_t="[object Undefined]",ee=y?y.toStringTag:void 0;function St(e){return e==null?e===void 0?_t:At:ee&&ee in Object(e)?X(e):Y(e)}var te=St;function Ct(e){return e!=null&&typeof e=="object"}var re=Ct;function Dt(e,t){for(var r=-1,f=e==null?0:e.length,o=Array(f);++r<f;)o[r]=t(e[r],r,e);return o}var v=Dt;function It(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var E=It;function Et(e){return e}var B=Et;var Bt="[object AsyncFunction]",Tt="[object Function]",Mt="[object GeneratorFunction]",Pt="[object Proxy]";function Nt(e){if(!E(e))return!1;var t=te(e);return t==Tt||t==Mt||t==Bt||t==Pt}var T=Nt;var Rt=b["__core-js_shared__"],M=Rt;var oe=function(){var e=/[^.]+$/.exec(M&&M.keys&&M.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Wt(e){return!!oe&&oe in e}var ae=Wt;var Lt=Function.prototype,$t=Lt.toString;function Ft(e){if(e!=null){try{return $t.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var fe=Ft;var Ht=/[\\^$.*+?()[\]{}|]/g,zt=/^\[object .+?Constructor\]$/,Vt=Function.prototype,Ut=Object.prototype,qt=Vt.toString,Gt=Ut.hasOwnProperty,kt=RegExp("^"+qt.call(Gt).replace(Ht,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Jt(e){if(!E(e)||ae(e))return!1;var t=T(e)?kt:zt;return t.test(fe(e))}var se=Jt;function Kt(e,t){return e==null?void 0:e[t]}var ne=Kt;function Qt(e,t){var r=ne(e,t);return se(r)?r:void 0}var w=Qt;function Zt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var ie=Zt;function Xt(e,t){var r=-1,f=e.length;for(t||(t=Array(f));++r<f;)t[r]=e[r];return t}var le=Xt;var Yt=800,er=16,tr=Date.now;function rr(e){var t=0,r=0;return function(){var f=tr(),o=er-(f-r);if(r=f,o>0){if(++t>=Yt)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var pe=rr;function or(e){return function(){return e}}var ue=or;var ar=function(){try{var e=w(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),L=ar;var fr=L?function(e,t){return L(e,"toString",{configurable:!0,enumerable:!1,value:ue(t),writable:!0})}:B,me=fr;var sr=pe(me),de=sr;function nr(e,t,r,f){for(var o=e.length,i=r+(f?1:-1);f?i--:++i<o;)if(t(e[i],i,e))return i;return-1}var xe=nr;function ir(e){return e!==e}var ce=ir;function lr(e,t,r){for(var f=r-1,o=e.length;++f<o;)if(e[f]===t)return f;return-1}var he=lr;function pr(e,t,r){return t===t?he(e,t,r):xe(e,ce,r)}var P=pr;function ur(e,t){var r=e==null?0:e.length;return!!r&&P(e,t,0)>-1}var ge=ur;function mr(e,t){return e===t||e!==e&&t!==t}var be=mr;var ye=Math.max;function dr(e,t,r){return t=ye(t===void 0?e.length-1:t,0),function(){for(var f=arguments,o=-1,i=ye(f.length-t,0),s=Array(i);++o<i;)s[o]=f[t+o];o=-1;for(var a=Array(t+1);++o<t;)a[o]=f[o];return a[t]=r(s),ie(e,this,a)}}var ve=dr;function xr(e,t){return de(ve(e,t,B),e+"")}var N=xr;var cr=9007199254740991;function hr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=cr}var we=hr;function gr(e){return e!=null&&we(e.length)&&!T(e)}var Oe=gr;function br(e){return function(t){return e(t)}}var R=br;var yr=w(Object,"create"),c=yr;function vr(){this.__data__=c?c(null):{},this.size=0}var je=vr;function wr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Ae=wr;var Or="__lodash_hash_undefined__",jr=Object.prototype,Ar=jr.hasOwnProperty;function _r(e){var t=this.__data__;if(c){var r=t[e];return r===Or?void 0:r}return Ar.call(t,e)?t[e]:void 0}var _e=_r;var Sr=Object.prototype,Cr=Sr.hasOwnProperty;function Dr(e){var t=this.__data__;return c?t[e]!==void 0:Cr.call(t,e)}var Se=Dr;var Ir="__lodash_hash_undefined__";function Er(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=c&&t===void 0?Ir:t,this}var Ce=Er;function O(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var f=e[t];this.set(f[0],f[1])}}O.prototype.clear=je;O.prototype.delete=Ae;O.prototype.get=_e;O.prototype.has=Se;O.prototype.set=Ce;var $=O;function Br(){this.__data__=[],this.size=0}var De=Br;function Tr(e,t){for(var r=e.length;r--;)if(be(e[r][0],t))return r;return-1}var h=Tr;var Mr=Array.prototype,Pr=Mr.splice;function Nr(e){var t=this.__data__,r=h(t,e);if(r<0)return!1;var f=t.length-1;return r==f?t.pop():Pr.call(t,r,1),--this.size,!0}var Ie=Nr;function Rr(e){var t=this.__data__,r=h(t,e);return r<0?void 0:t[r][1]}var Ee=Rr;function Wr(e){return h(this.__data__,e)>-1}var Be=Wr;function Lr(e,t){var r=this.__data__,f=h(r,e);return f<0?(++this.size,r.push([e,t])):r[f][1]=t,this}var Te=Lr;function j(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var f=e[t];this.set(f[0],f[1])}}j.prototype.clear=De;j.prototype.delete=Ie;j.prototype.get=Ee;j.prototype.has=Be;j.prototype.set=Te;var Me=j;var $r=w(b,"Map"),Pe=$r;function Fr(){this.size=0,this.__data__={hash:new $,map:new(Pe||Me),string:new $}}var Ne=Fr;function Hr(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Re=Hr;function zr(e,t){var r=e.__data__;return Re(t)?r[typeof t=="string"?"string":"hash"]:r.map}var g=zr;function Vr(e){var t=g(this,e).delete(e);return this.size-=t?1:0,t}var We=Vr;function Ur(e){return g(this,e).get(e)}var Le=Ur;function qr(e){return g(this,e).has(e)}var $e=qr;function Gr(e,t){var r=g(this,e),f=r.size;return r.set(e,t),this.size+=r.size==f?0:1,this}var Fe=Gr;function A(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var f=e[t];this.set(f[0],f[1])}}A.prototype.clear=Ne;A.prototype.delete=We;A.prototype.get=Le;A.prototype.has=$e;A.prototype.set=Fe;var He=A;var kr="__lodash_hash_undefined__";function Jr(e){return this.__data__.set(e,kr),this}var ze=Jr;function Kr(e){return this.__data__.has(e)}var Ve=Kr;function W(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new He;++t<r;)this.add(e[t])}W.prototype.add=W.prototype.push=ze;W.prototype.has=Ve;var Ue=W;function Qr(e,t){return e.has(t)}var F=Qr;function Zr(e){return re(e)&&Oe(e)}var qe=Zr;function Xr(e,t,r){for(var f=-1,o=e==null?0:e.length;++f<o;)if(r(t,e[f]))return!0;return!1}var Ge=Xr;var Yr=Math.min;function eo(e,t,r){for(var f=r?Ge:ge,o=e[0].length,i=e.length,s=i,a=Array(i),l=1/0,n=[];s--;){var p=e[s];s&&t&&(p=v(p,R(t))),l=Yr(p.length,l),a[s]=!r&&(t||o>=120&&p.length>=120)?new Ue(s&&p):void 0}p=e[0];var m=-1,u=a[0];e:for(;++m<o&&n.length<l;){var d=p[m],x=t?t(d):d;if(d=r||d!==0?d:0,!(u?F(u,x):f(n,x,r))){for(s=i;--s;){var U=a[s];if(!(U?F(U,x):f(e[s],x,r)))continue e}u&&u.push(x),n.push(d)}}return n}var ke=eo;function to(e){return qe(e)?e:[]}var Je=to;var ro=N(function(e){var t=v(e,Je);return t.length&&t[0]===e[0]?ke(t):[]}),H=ro;function oo(e,t,r,f){for(var o=r-1,i=e.length;++o<i;)if(f(e[o],t))return o;return-1}var Ke=oo;var ao=Array.prototype,Qe=ao.splice;function fo(e,t,r,f){var o=f?Ke:P,i=-1,s=t.length,a=e;for(e===t&&(t=le(t)),r&&(a=v(e,R(r)));++i<s;)for(var l=0,n=t[i],p=r?r(n):n;(l=o(a,p,l,f))>-1;)a!==e&&Qe.call(a,l,1),Qe.call(e,l,1);return e}var Ze=fo;function so(e,t){return e&&e.length&&t&&t.length?Ze(e,t):e}var Xe=so;var no=N(Xe),z=no;function D(e){if(e==null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null?!1:!(Symbol.iterator in e)&&!(Symbol.toStringTag in e)}var tt=K(V(),1);var et=(0,tt.default)();function rt(e,t={}){function r(p){let m=[];for(let u=0;u<1<<p;u++){let d=[];for(let x=0;x<p;x++)d.push(u&1<<x?1:0);m.push(d)}return m}if(!e)throw new Error("[THROW_ID_01] missing input object");if(!D(e))throw new Error("[THROW_ID_02] the first input object must be a plain object");if(t&&!D(t))throw new Error("[THROW_ID_03] the second override object must be a plain object");let f=et(e),o=et(t),i=Object.keys(f),s=[],a=[];D(o)&&Object.keys(o).length&&(a=H(Object.keys(o),Object.keys(f)),a.forEach(p=>z(i,p)));let l=r(Object.keys(i).length),n;return l.forEach((p,m)=>{n={},i.forEach((u,d)=>{n[u]=l[m][d]===1}),s.push(n)}),D(o)&&Object.keys(o).length&&s.forEach(p=>{a.forEach(m=>{p[m]=o[m]})}),s}var ft=K(V(),1);var ot="4.1.9";var at=(0,ft.default)(),uo=ot;function mo(e={},t={}){if(e&&typeof e!="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 e=="object"&&typeof t=="object"&&Object.keys(e).filter(a=>typeof e[a]=="boolean").some(a=>Object.keys(t).includes(a)?!1:(r=a,!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 f=at(e),o=at(t),i={};return Object.keys(t).forEach(a=>{typeof o[a]=="boolean"&&!Object.keys(e).includes(a)&&(i[a]=o[a])}),rt(i).map(a=>I(I(I({},t),f),a))}return dt(xo);})();
11
11
  /**
12
12
  * @name codsen-utils
13
13
  * @fileoverview Various utility functions
14
- * @version 1.3.1
14
+ * @version 1.5.0
15
15
  * @author Roy Revelt, Codsen Ltd
16
16
  * @license MIT
17
17
  * {@link https://codsen.com/os/codsen-utils/}
@@ -19,8 +19,21 @@
19
19
  /**
20
20
  * @name object-boolean-combinations
21
21
  * @fileoverview Consumes a defaults object with booleans, generates all possible variations of it
22
- * @version 6.0.10
22
+ * @version 6.1.0
23
23
  * @author Roy Revelt, Codsen Ltd
24
24
  * @license MIT
25
25
  * {@link https://codsen.com/os/object-boolean-combinations/}
26
26
  */
27
+ /*! Bundled license information:
28
+
29
+ lodash-es/lodash.js:
30
+ (**
31
+ * @license
32
+ * Lodash (Custom Build) <https://lodash.com/>
33
+ * Build: `lodash modularize exports="es" -o ./`
34
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
35
+ * Released under MIT license <https://lodash.com/license>
36
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
37
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
38
+ *)
39
+ */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "test-mixer",
3
- "version": "4.1.7",
3
+ "version": "4.1.9",
4
4
  "description": "Test helper to generate function opts object variations",
5
5
  "keywords": [
6
6
  "combinations",
@@ -68,10 +68,7 @@
68
68
  }
69
69
  },
70
70
  "dependencies": {
71
- "lodash.clonedeep": "^4.5.0",
72
- "object-boolean-combinations": "^6.0.10"
73
- },
74
- "devDependencies": {
75
- "@types/lodash.clonedeep": "^4.5.7"
71
+ "object-boolean-combinations": "^6.1.0",
72
+ "rfdc": "^1.3.0"
76
73
  }
77
74
  }