test-mixer 3.0.1 → 3.0.2

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 CHANGED
@@ -32,7 +32,7 @@ This package is ESM only: Node 12+ is needed to use it and it must be imported i
32
32
  npm i test-mixer
33
33
  ```
34
34
 
35
- If you need a legacy version which works with require, use version 2.1.0
35
+ If you need a legacy version which works with `require`, use version 2.1.0
36
36
 
37
37
  ## Quick Take
38
38
 
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @name test-mixer
3
3
  * @fileoverview Test helper to generate function opts object variations
4
- * @version 3.0.1
4
+ * @version 3.0.2
5
5
  * @author Roy Revelt, Codsen Ltd
6
6
  * @license MIT
7
7
  * {@link https://codsen.com/os/test-mixer/}
@@ -10,7 +10,7 @@
10
10
  import { combinations } from 'object-boolean-combinations';
11
11
  import clone from 'lodash.clonedeep';
12
12
 
13
- var version$1 = "3.0.1";
13
+ var version$1 = "3.0.2";
14
14
 
15
15
  const version = version$1;
16
16
  function mixer(ref = {}, defaultsObj = {}) {
@@ -1,18 +1,18 @@
1
1
  /**
2
2
  * @name test-mixer
3
3
  * @fileoverview Test helper to generate function opts object variations
4
- * @version 3.0.1
4
+ * @version 3.0.2
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
- !function(t,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((t="undefined"!=typeof globalThis?globalThis:t||self).testMixer={})}(this,(function(t){"use strict";var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e="__lodash_hash_undefined__",n=9007199254740991,o=/^\[object .+?Constructor\]$/,u="object"==typeof self&&self&&self.Object===Object&&self,c="object"==typeof r&&r&&r.Object===Object&&r||u||Function("return this")();function i(t,r,e){switch(e.length){case 0:return t.call(r);case 1:return t.call(r,e[0]);case 2:return t.call(r,e[0],e[1]);case 3:return t.call(r,e[0],e[1],e[2])}return t.apply(r,e)}function a(t,r){return!!(t?t.length:0)&&function(t,r,e){if(r!=r)return function(t,r,e,n){var o=t.length,u=e+(n?1:-1);for(;n?u--:++u<o;)if(r(t[u],u,t))return u;return-1}(t,l,e);var n=e-1,o=t.length;for(;++n<o;)if(t[n]===r)return n;return-1}(t,r,0)>-1}function f(t,r,e){for(var n=-1,o=t?t.length:0;++n<o;)if(e(r,t[n]))return!0;return!1}function s(t,r){for(var e=-1,n=t?t.length:0,o=Array(n);++e<n;)o[e]=r(t[e],e,t);return o}function l(t){return t!=t}function h(t){return function(r){return t(r)}}function p(t,r){return t.has(r)}var _,y,v,b=Array.prototype,d=Function.prototype,g=Object.prototype,j=c["__core-js_shared__"],O=(_=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||""))?"Symbol(src)_1."+_:"",w=d.toString,m=g.hasOwnProperty,A=g.toString,x=RegExp("^"+w.call(m).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),E=b.splice,k=Math.max,S=Math.min,$=B(c,"Map"),I=B(Object,"create");function T(t){var r=-1,e=t?t.length:0;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function P(t){var r=-1,e=t?t.length:0;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function F(t){var r=-1,e=t?t.length:0;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function R(t){var r=-1,e=t?t.length:0;for(this.__data__=new F;++r<e;)this.add(t[r])}function M(t,r){for(var e,n,o=t.length;o--;)if((e=t[o][0])===(n=r)||e!=e&&n!=n)return o;return-1}function D(t){return!(!C(t)||(r=t,O&&O in r))&&(U(t)||function(t){var r=!1;if(null!=t&&"function"!=typeof t.toString)try{r=!!(t+"")}catch(t){}return r}(t)?x:o).test(function(t){if(null!=t){try{return w.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var r}function W(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&function(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}(t.length)&&!U(t)}(t)}(t)?t:[]}function H(t,r){var e,n,o=t.__data__;return("string"==(n=typeof(e=r))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==e:null===e)?o["string"==typeof r?"string":"hash"]:o.map}function B(t,r){var e=function(t,r){return null==t?void 0:t[r]}(t,r);return D(e)?e:void 0}function U(t){var r=C(t)?A.call(t):"";return"[object Function]"==r||"[object GeneratorFunction]"==r}function C(t){var r=typeof t;return!!t&&("object"==r||"function"==r)}T.prototype.clear=function(){this.__data__=I?I(null):{}},T.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},T.prototype.get=function(t){var r=this.__data__;if(I){var n=r[t];return n===e?void 0:n}return m.call(r,t)?r[t]:void 0},T.prototype.has=function(t){var r=this.__data__;return I?void 0!==r[t]:m.call(r,t)},T.prototype.set=function(t,r){return this.__data__[t]=I&&void 0===r?e:r,this},P.prototype.clear=function(){this.__data__=[]},P.prototype.delete=function(t){var r=this.__data__,e=M(r,t);return!(e<0)&&(e==r.length-1?r.pop():E.call(r,e,1),!0)},P.prototype.get=function(t){var r=this.__data__,e=M(r,t);return e<0?void 0:r[e][1]},P.prototype.has=function(t){return M(this.__data__,t)>-1},P.prototype.set=function(t,r){var e=this.__data__,n=M(e,t);return n<0?e.push([t,r]):e[n][1]=r,this},F.prototype.clear=function(){this.__data__={hash:new T,map:new($||P),string:new T}},F.prototype.delete=function(t){return H(this,t).delete(t)},F.prototype.get=function(t){return H(this,t).get(t)},F.prototype.has=function(t){return H(this,t).has(t)},F.prototype.set=function(t,r){return H(this,t).set(t,r),this},R.prototype.add=R.prototype.push=function(t){return this.__data__.set(t,e),this},R.prototype.has=function(t){return this.__data__.has(t)};var z=(y=function(t){var r=s(t,W);return r.length&&r[0]===t[0]?function(t,r,e){for(var n=e?f:a,o=t[0].length,u=t.length,c=u,i=Array(u),l=1/0,_=[];c--;){var y=t[c];c&&r&&(y=s(y,h(r))),l=S(y.length,l),i[c]=!e&&(r||o>=120&&y.length>=120)?new R(c&&y):void 0}y=t[0];var v=-1,b=i[0];t:for(;++v<o&&_.length<l;){var d=y[v],g=r?r(d):d;if(d=e||0!==d?d:0,!(b?p(b,g):n(_,g,e))){for(c=u;--c;){var j=i[c];if(!(j?p(j,g):n(t[c],g,e)))continue t}b&&b.push(g),_.push(d)}}return _}(r):[]},v=k(void 0===v?y.length-1:v,0),function(){for(var t=arguments,r=-1,e=k(t.length-v,0),n=Array(e);++r<e;)n[r]=t[v+r];r=-1;for(var o=Array(v+1);++r<v;)o[r]=t[r];return o[v]=n,i(y,this,o)});function G(t,r,e){switch(e.length){case 0:return t.call(r);case 1:return t.call(r,e[0]);case 2:return t.call(r,e[0],e[1]);case 3:return t.call(r,e[0],e[1],e[2])}return t.apply(r,e)}function L(t,r,e){if(r!=r)return function(t,r,e,n){for(var o=t.length,u=e+(n?1:-1);n?u--:++u<o;)if(r(t[u],u,t))return u;return-1}(t,N,e);for(var n=e-1,o=t.length;++n<o;)if(t[n]===r)return n;return-1}function V(t,r,e,n){for(var o=e-1,u=t.length;++o<u;)if(n(t[o],r))return o;return-1}function N(t){return t!=t}var q=Array.prototype.splice,J=Math.max;function K(t,r,e,n){var o=n?V:L,u=-1,c=r.length,i=t;for(t===r&&(r=function(t,r){var e=-1,n=t.length;r||(r=Array(n));for(;++e<n;)r[e]=t[e];return r}(r)),e&&(i=function(t,r){for(var e=-1,n=t?t.length:0,o=Array(n);++e<n;)o[e]=r(t[e],e,t);return o}(t,function(t){return function(r){return t(r)}}(e)));++u<c;)for(var a=0,f=r[u],s=e?e(f):f;(a=o(i,s,a,n))>-1;)i!==t&&q.call(i,a,1),q.call(t,a,1);return t}var Q=function(t,r){return r=J(void 0===r?t.length-1:r,0),function(){for(var e=arguments,n=-1,o=J(e.length-r,0),u=Array(o);++n<o;)u[n]=e[r+n];n=-1;for(var c=Array(r+1);++n<r;)c[n]=e[n];return c[r]=u,G(t,this,c)}}((function(t,r){return t&&t.length&&r&&r.length?K(t,r):t}));var X=Object.prototype,Y=Function.prototype.toString,Z=X.hasOwnProperty,tt=Y.call(Object),rt=X.toString,et=function(t,r){return function(e){return t(r(e))}}(Object.getPrototypeOf,Object);var nt=function(t){if(!function(t){return!!t&&"object"==typeof t}(t)||"[object Object]"!=rt.call(t)||function(t){var r=!1;if(null!=t&&"function"!=typeof t.toString)try{r=!!(t+"")}catch(t){}return r}(t))return!1;var r=et(t);if(null===r)return!0;var e=Z.call(r,"constructor")&&r.constructor;return"function"==typeof e&&e instanceof e&&Y.call(e)==tt},ot={exports:{}};!function(t,e){var n="__lodash_hash_undefined__",o=9007199254740991,u="[object Arguments]",c="[object Boolean]",i="[object Date]",a="[object Function]",f="[object GeneratorFunction]",s="[object Map]",l="[object Number]",h="[object Object]",p="[object Promise]",_="[object RegExp]",y="[object Set]",v="[object String]",b="[object Symbol]",d="[object WeakMap]",g="[object ArrayBuffer]",j="[object DataView]",O="[object Float32Array]",w="[object Float64Array]",m="[object Int8Array]",A="[object Int16Array]",x="[object Int32Array]",E="[object Uint8Array]",k="[object Uint8ClampedArray]",S="[object Uint16Array]",$="[object Uint32Array]",I=/\w*$/,T=/^\[object .+?Constructor\]$/,P=/^(?:0|[1-9]\d*)$/,F={};F[u]=F["[object Array]"]=F[g]=F[j]=F[c]=F[i]=F[O]=F[w]=F[m]=F[A]=F[x]=F[s]=F[l]=F[h]=F[_]=F[y]=F[v]=F[b]=F[E]=F[k]=F[S]=F[$]=!0,F["[object Error]"]=F[a]=F[d]=!1;var R="object"==typeof self&&self&&self.Object===Object&&self,M="object"==typeof r&&r&&r.Object===Object&&r||R||Function("return this")(),D=e&&!e.nodeType&&e,W=D&&t&&!t.nodeType&&t,H=W&&W.exports===D;function B(t,r){return t.set(r[0],r[1]),t}function U(t,r){return t.add(r),t}function C(t,r,e,n){var o=-1,u=t?t.length:0;for(n&&u&&(e=t[++o]);++o<u;)e=r(e,t[o],o,t);return e}function z(t){var r=!1;if(null!=t&&"function"!=typeof t.toString)try{r=!!(t+"")}catch(t){}return r}function G(t){var r=-1,e=Array(t.size);return t.forEach((function(t,n){e[++r]=[n,t]})),e}function L(t,r){return function(e){return t(r(e))}}function V(t){var r=-1,e=Array(t.size);return t.forEach((function(t){e[++r]=t})),e}var N=Array.prototype,q=Function.prototype,J=Object.prototype,K=M["__core-js_shared__"],Q=function(){var t=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),X=q.toString,Y=J.hasOwnProperty,Z=J.toString,tt=RegExp("^"+X.call(Y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rt=H?M.Buffer:void 0,et=M.Symbol,nt=M.Uint8Array,ot=L(Object.getPrototypeOf,Object),ut=Object.create,ct=J.propertyIsEnumerable,it=N.splice,at=Object.getOwnPropertySymbols,ft=rt?rt.isBuffer:void 0,st=L(Object.keys,Object),lt=Dt(M,"DataView"),ht=Dt(M,"Map"),pt=Dt(M,"Promise"),_t=Dt(M,"Set"),yt=Dt(M,"WeakMap"),vt=Dt(Object,"create"),bt=Ct(lt),dt=Ct(ht),gt=Ct(pt),jt=Ct(_t),Ot=Ct(yt),wt=et?et.prototype:void 0,mt=wt?wt.valueOf:void 0;function At(t){var r=-1,e=t?t.length:0;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function xt(t){var r=-1,e=t?t.length:0;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function Et(t){var r=-1,e=t?t.length:0;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function kt(t){this.__data__=new xt(t)}function St(t,r){var e=Gt(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&Lt(t)}(t)&&Y.call(t,"callee")&&(!ct.call(t,"callee")||Z.call(t)==u)}(t)?function(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n}(t.length,String):[],n=e.length,o=!!n;for(var c in t)!r&&!Y.call(t,c)||o&&("length"==c||Bt(c,n))||e.push(c);return e}function $t(t,r,e){var n=t[r];Y.call(t,r)&&zt(n,e)&&(void 0!==e||r in t)||(t[r]=e)}function It(t,r){for(var e=t.length;e--;)if(zt(t[e][0],r))return e;return-1}function Tt(t,r,e,n,o,p,d){var T;if(n&&(T=p?n(t,o,p,d):n(t)),void 0!==T)return T;if(!qt(t))return t;var P=Gt(t);if(P){if(T=function(t){var r=t.length,e=t.constructor(r);r&&"string"==typeof t[0]&&Y.call(t,"index")&&(e.index=t.index,e.input=t.input);return e}(t),!r)return function(t,r){var e=-1,n=t.length;r||(r=Array(n));for(;++e<n;)r[e]=t[e];return r}(t,T)}else{var R=Ht(t),M=R==a||R==f;if(Vt(t))return function(t,r){if(r)return t.slice();var e=new t.constructor(t.length);return t.copy(e),e}(t,r);if(R==h||R==u||M&&!p){if(z(t))return p?t:{};if(T=function(t){return"function"!=typeof t.constructor||Ut(t)?{}:(r=ot(t),qt(r)?ut(r):{});var r}(M?{}:t),!r)return function(t,r){return Rt(t,Wt(t),r)}(t,function(t,r){return t&&Rt(r,Jt(r),t)}(T,t))}else{if(!F[R])return p?t:{};T=function(t,r,e,n){var o=t.constructor;switch(r){case g:return Ft(t);case c:case i:return new o(+t);case j:return function(t,r){var e=r?Ft(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}(t,n);case O:case w:case m:case A:case x:case E:case k:case S:case $:return function(t,r){var e=r?Ft(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}(t,n);case s:return function(t,r,e){return C(r?e(G(t),!0):G(t),B,new t.constructor)}(t,n,e);case l:case v:return new o(t);case _:return function(t){var r=new t.constructor(t.source,I.exec(t));return r.lastIndex=t.lastIndex,r}(t);case y:return function(t,r,e){return C(r?e(V(t),!0):V(t),U,new t.constructor)}(t,n,e);case b:return u=t,mt?Object(mt.call(u)):{}}var u}(t,R,Tt,r)}}d||(d=new kt);var D=d.get(t);if(D)return D;if(d.set(t,T),!P)var W=e?function(t){return function(t,r,e){var n=r(t);return Gt(t)?n:function(t,r){for(var e=-1,n=r.length,o=t.length;++e<n;)t[o+e]=r[e];return t}(n,e(t))}(t,Jt,Wt)}(t):Jt(t);return function(t,r){for(var e=-1,n=t?t.length:0;++e<n&&!1!==r(t[e],e,t););}(W||t,(function(o,u){W&&(o=t[u=o]),$t(T,u,Tt(o,r,e,n,u,t,d))})),T}function Pt(t){return!(!qt(t)||function(t){return!!Q&&Q in t}(t))&&(Nt(t)||z(t)?tt:T).test(Ct(t))}function Ft(t){var r=new t.constructor(t.byteLength);return new nt(r).set(new nt(t)),r}function Rt(t,r,e,n){e||(e={});for(var o=-1,u=r.length;++o<u;){var c=r[o],i=n?n(e[c],t[c],c,e,t):void 0;$t(e,c,void 0===i?t[c]:i)}return e}function Mt(t,r){var e,n,o=t.__data__;return("string"==(n=typeof(e=r))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==e:null===e)?o["string"==typeof r?"string":"hash"]:o.map}function Dt(t,r){var e=function(t,r){return null==t?void 0:t[r]}(t,r);return Pt(e)?e:void 0}At.prototype.clear=function(){this.__data__=vt?vt(null):{}},At.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},At.prototype.get=function(t){var r=this.__data__;if(vt){var e=r[t];return e===n?void 0:e}return Y.call(r,t)?r[t]:void 0},At.prototype.has=function(t){var r=this.__data__;return vt?void 0!==r[t]:Y.call(r,t)},At.prototype.set=function(t,r){return this.__data__[t]=vt&&void 0===r?n:r,this},xt.prototype.clear=function(){this.__data__=[]},xt.prototype.delete=function(t){var r=this.__data__,e=It(r,t);return!(e<0)&&(e==r.length-1?r.pop():it.call(r,e,1),!0)},xt.prototype.get=function(t){var r=this.__data__,e=It(r,t);return e<0?void 0:r[e][1]},xt.prototype.has=function(t){return It(this.__data__,t)>-1},xt.prototype.set=function(t,r){var e=this.__data__,n=It(e,t);return n<0?e.push([t,r]):e[n][1]=r,this},Et.prototype.clear=function(){this.__data__={hash:new At,map:new(ht||xt),string:new At}},Et.prototype.delete=function(t){return Mt(this,t).delete(t)},Et.prototype.get=function(t){return Mt(this,t).get(t)},Et.prototype.has=function(t){return Mt(this,t).has(t)},Et.prototype.set=function(t,r){return Mt(this,t).set(t,r),this},kt.prototype.clear=function(){this.__data__=new xt},kt.prototype.delete=function(t){return this.__data__.delete(t)},kt.prototype.get=function(t){return this.__data__.get(t)},kt.prototype.has=function(t){return this.__data__.has(t)},kt.prototype.set=function(t,r){var e=this.__data__;if(e instanceof xt){var n=e.__data__;if(!ht||n.length<199)return n.push([t,r]),this;e=this.__data__=new Et(n)}return e.set(t,r),this};var Wt=at?L(at,Object):function(){return[]},Ht=function(t){return Z.call(t)};function Bt(t,r){return!!(r=null==r?o:r)&&("number"==typeof t||P.test(t))&&t>-1&&t%1==0&&t<r}function Ut(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||J)}function Ct(t){if(null!=t){try{return X.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function zt(t,r){return t===r||t!=t&&r!=r}(lt&&Ht(new lt(new ArrayBuffer(1)))!=j||ht&&Ht(new ht)!=s||pt&&Ht(pt.resolve())!=p||_t&&Ht(new _t)!=y||yt&&Ht(new yt)!=d)&&(Ht=function(t){var r=Z.call(t),e=r==h?t.constructor:void 0,n=e?Ct(e):void 0;if(n)switch(n){case bt:return j;case dt:return s;case gt:return p;case jt:return y;case Ot:return d}return r});var Gt=Array.isArray;function Lt(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}(t.length)&&!Nt(t)}var Vt=ft||function(){return!1};function Nt(t){var r=qt(t)?Z.call(t):"";return r==a||r==f}function qt(t){var r=typeof t;return!!t&&("object"==r||"function"==r)}function Jt(t){return Lt(t)?St(t):function(t){if(!Ut(t))return st(t);var r=[];for(var e in Object(t))Y.call(t,e)&&"constructor"!=e&&r.push(e);return r}(t)}t.exports=function(t){return Tt(t,!0,!0)}}(ot,ot.exports);var ut=ot.exports;
10
+ !function(t,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((t="undefined"!=typeof globalThis?globalThis:t||self).testMixer={})}(this,(function(t){"use strict";var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e="__lodash_hash_undefined__",n=9007199254740991,o=/^\[object .+?Constructor\]$/,u="object"==typeof self&&self&&self.Object===Object&&self,c="object"==typeof r&&r&&r.Object===Object&&r||u||Function("return this")();function i(t,r,e){switch(e.length){case 0:return t.call(r);case 1:return t.call(r,e[0]);case 2:return t.call(r,e[0],e[1]);case 3:return t.call(r,e[0],e[1],e[2])}return t.apply(r,e)}function a(t,r){return!!(t?t.length:0)&&function(t,r,e){if(r!=r)return function(t,r,e,n){var o=t.length,u=e+(n?1:-1);for(;n?u--:++u<o;)if(r(t[u],u,t))return u;return-1}(t,l,e);var n=e-1,o=t.length;for(;++n<o;)if(t[n]===r)return n;return-1}(t,r,0)>-1}function f(t,r,e){for(var n=-1,o=t?t.length:0;++n<o;)if(e(r,t[n]))return!0;return!1}function s(t,r){for(var e=-1,n=t?t.length:0,o=Array(n);++e<n;)o[e]=r(t[e],e,t);return o}function l(t){return t!=t}function h(t){return function(r){return t(r)}}function p(t,r){return t.has(r)}var _,y=Array.prototype,v=Function.prototype,b=Object.prototype,d=c["__core-js_shared__"],g=(_=/[^.]+$/.exec(d&&d.keys&&d.keys.IE_PROTO||""))?"Symbol(src)_1."+_:"",j=v.toString,O=b.hasOwnProperty,w=b.toString,m=RegExp("^"+j.call(O).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),A=y.splice,x=Math.max,E=Math.min,k=W(c,"Map"),S=W(Object,"create");function $(t){var r=-1,e=t?t.length:0;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function I(t){var r=-1,e=t?t.length:0;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function T(t){var r=-1,e=t?t.length:0;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function P(t){var r=-1,e=t?t.length:0;for(this.__data__=new T;++r<e;)this.add(t[r])}function F(t,r){for(var e,n,o=t.length;o--;)if((e=t[o][0])===(n=r)||e!=e&&n!=n)return o;return-1}function R(t){if(!z(t)||(r=t,g&&g in r))return!1;var r,e=C(t)||function(t){var r=!1;if(null!=t&&"function"!=typeof t.toString)try{r=!!(t+"")}catch(t){}return r}(t)?m:o;return e.test(function(t){if(null!=t){try{return j.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function M(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&function(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}(t.length)&&!C(t)}(t)}(t)?t:[]}function D(t,r){var e,n,o=t.__data__;return("string"==(n=typeof(e=r))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==e:null===e)?o["string"==typeof r?"string":"hash"]:o.map}function W(t,r){var e=function(t,r){return null==t?void 0:t[r]}(t,r);return R(e)?e:void 0}$.prototype.clear=function(){this.__data__=S?S(null):{}},$.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},$.prototype.get=function(t){var r=this.__data__;if(S){var n=r[t];return n===e?void 0:n}return O.call(r,t)?r[t]:void 0},$.prototype.has=function(t){var r=this.__data__;return S?void 0!==r[t]:O.call(r,t)},$.prototype.set=function(t,r){return this.__data__[t]=S&&void 0===r?e:r,this},I.prototype.clear=function(){this.__data__=[]},I.prototype.delete=function(t){var r=this.__data__,e=F(r,t);return!(e<0)&&(e==r.length-1?r.pop():A.call(r,e,1),!0)},I.prototype.get=function(t){var r=this.__data__,e=F(r,t);return e<0?void 0:r[e][1]},I.prototype.has=function(t){return F(this.__data__,t)>-1},I.prototype.set=function(t,r){var e=this.__data__,n=F(e,t);return n<0?e.push([t,r]):e[n][1]=r,this},T.prototype.clear=function(){this.__data__={hash:new $,map:new(k||I),string:new $}},T.prototype.delete=function(t){return D(this,t).delete(t)},T.prototype.get=function(t){return D(this,t).get(t)},T.prototype.has=function(t){return D(this,t).has(t)},T.prototype.set=function(t,r){return D(this,t).set(t,r),this},P.prototype.add=P.prototype.push=function(t){return this.__data__.set(t,e),this},P.prototype.has=function(t){return this.__data__.has(t)};var H,B,U=(H=function(t){var r=s(t,M);return r.length&&r[0]===t[0]?function(t,r,e){for(var n=e?f:a,o=t[0].length,u=t.length,c=u,i=Array(u),l=1/0,_=[];c--;){var y=t[c];c&&r&&(y=s(y,h(r))),l=E(y.length,l),i[c]=!e&&(r||o>=120&&y.length>=120)?new P(c&&y):void 0}y=t[0];var v=-1,b=i[0];t:for(;++v<o&&_.length<l;){var d=y[v],g=r?r(d):d;if(d=e||0!==d?d:0,!(b?p(b,g):n(_,g,e))){for(c=u;--c;){var j=i[c];if(!(j?p(j,g):n(t[c],g,e)))continue t}b&&b.push(g),_.push(d)}}return _}(r):[]},B=x(void 0===B?H.length-1:B,0),function(){for(var t=arguments,r=-1,e=x(t.length-B,0),n=Array(e);++r<e;)n[r]=t[B+r];r=-1;for(var o=Array(B+1);++r<B;)o[r]=t[r];return o[B]=n,i(H,this,o)});function C(t){var r=z(t)?w.call(t):"";return"[object Function]"==r||"[object GeneratorFunction]"==r}function z(t){var r=typeof t;return!!t&&("object"==r||"function"==r)}var G=U;function L(t,r,e){switch(e.length){case 0:return t.call(r);case 1:return t.call(r,e[0]);case 2:return t.call(r,e[0],e[1]);case 3:return t.call(r,e[0],e[1],e[2])}return t.apply(r,e)}function V(t,r,e){if(r!=r)return function(t,r,e,n){for(var o=t.length,u=e+(n?1:-1);n?u--:++u<o;)if(r(t[u],u,t))return u;return-1}(t,q,e);for(var n=e-1,o=t.length;++n<o;)if(t[n]===r)return n;return-1}function N(t,r,e,n){for(var o=e-1,u=t.length;++o<u;)if(n(t[o],r))return o;return-1}function q(t){return t!=t}var J=Array.prototype.splice,K=Math.max;function Q(t,r,e,n){var o=n?N:V,u=-1,c=r.length,i=t;for(t===r&&(r=function(t,r){var e=-1,n=t.length;r||(r=Array(n));for(;++e<n;)r[e]=t[e];return r}(r)),e&&(i=function(t,r){for(var e=-1,n=t?t.length:0,o=Array(n);++e<n;)o[e]=r(t[e],e,t);return o}(t,function(t){return function(r){return t(r)}}(e)));++u<c;)for(var a=0,f=r[u],s=e?e(f):f;(a=o(i,s,a,n))>-1;)i!==t&&J.call(i,a,1),J.call(t,a,1);return t}var X=function(t,r){return r=K(void 0===r?t.length-1:r,0),function(){for(var e=arguments,n=-1,o=K(e.length-r,0),u=Array(o);++n<o;)u[n]=e[r+n];n=-1;for(var c=Array(r+1);++n<r;)c[n]=e[n];return c[r]=u,L(t,this,c)}}((function(t,r){return t&&t.length&&r&&r.length?Q(t,r):t}));var Y=X;var Z=Object.prototype,tt=Function.prototype.toString,rt=Z.hasOwnProperty,et=tt.call(Object),nt=Z.toString,ot=function(t,r){return function(e){return t(r(e))}}(Object.getPrototypeOf,Object);var ut=function(t){if(!function(t){return!!t&&"object"==typeof t}(t)||"[object Object]"!=nt.call(t)||function(t){var r=!1;if(null!=t&&"function"!=typeof t.toString)try{r=!!(t+"")}catch(t){}return r}(t))return!1;var r=ot(t);if(null===r)return!0;var e=rt.call(r,"constructor")&&r.constructor;return"function"==typeof e&&e instanceof e&&tt.call(e)==et},ct={exports:{}};!function(t,e){var n="__lodash_hash_undefined__",o=9007199254740991,u="[object Arguments]",c="[object Boolean]",i="[object Date]",a="[object Function]",f="[object GeneratorFunction]",s="[object Map]",l="[object Number]",h="[object Object]",p="[object Promise]",_="[object RegExp]",y="[object Set]",v="[object String]",b="[object Symbol]",d="[object WeakMap]",g="[object ArrayBuffer]",j="[object DataView]",O="[object Float32Array]",w="[object Float64Array]",m="[object Int8Array]",A="[object Int16Array]",x="[object Int32Array]",E="[object Uint8Array]",k="[object Uint8ClampedArray]",S="[object Uint16Array]",$="[object Uint32Array]",I=/\w*$/,T=/^\[object .+?Constructor\]$/,P=/^(?:0|[1-9]\d*)$/,F={};F[u]=F["[object Array]"]=F[g]=F[j]=F[c]=F[i]=F[O]=F[w]=F[m]=F[A]=F[x]=F[s]=F[l]=F[h]=F[_]=F[y]=F[v]=F[b]=F[E]=F[k]=F[S]=F[$]=!0,F["[object Error]"]=F[a]=F[d]=!1;var R="object"==typeof self&&self&&self.Object===Object&&self,M="object"==typeof r&&r&&r.Object===Object&&r||R||Function("return this")(),D=e&&!e.nodeType&&e,W=D&&t&&!t.nodeType&&t,H=W&&W.exports===D;function B(t,r){return t.set(r[0],r[1]),t}function U(t,r){return t.add(r),t}function C(t,r,e,n){var o=-1,u=t?t.length:0;for(n&&u&&(e=t[++o]);++o<u;)e=r(e,t[o],o,t);return e}function z(t){var r=!1;if(null!=t&&"function"!=typeof t.toString)try{r=!!(t+"")}catch(t){}return r}function G(t){var r=-1,e=Array(t.size);return t.forEach((function(t,n){e[++r]=[n,t]})),e}function L(t,r){return function(e){return t(r(e))}}function V(t){var r=-1,e=Array(t.size);return t.forEach((function(t){e[++r]=t})),e}var N=Array.prototype,q=Function.prototype,J=Object.prototype,K=M["__core-js_shared__"],Q=function(){var t=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),X=q.toString,Y=J.hasOwnProperty,Z=J.toString,tt=RegExp("^"+X.call(Y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rt=H?M.Buffer:void 0,et=M.Symbol,nt=M.Uint8Array,ot=L(Object.getPrototypeOf,Object),ut=Object.create,ct=J.propertyIsEnumerable,it=N.splice,at=Object.getOwnPropertySymbols,ft=rt?rt.isBuffer:void 0,st=L(Object.keys,Object),lt=Dt(M,"DataView"),ht=Dt(M,"Map"),pt=Dt(M,"Promise"),_t=Dt(M,"Set"),yt=Dt(M,"WeakMap"),vt=Dt(Object,"create"),bt=Ct(lt),dt=Ct(ht),gt=Ct(pt),jt=Ct(_t),Ot=Ct(yt),wt=et?et.prototype:void 0,mt=wt?wt.valueOf:void 0;function At(t){var r=-1,e=t?t.length:0;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function xt(t){var r=-1,e=t?t.length:0;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function Et(t){var r=-1,e=t?t.length:0;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function kt(t){this.__data__=new xt(t)}function St(t,r){var e=Gt(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&Lt(t)}(t)&&Y.call(t,"callee")&&(!ct.call(t,"callee")||Z.call(t)==u)}(t)?function(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n}(t.length,String):[],n=e.length,o=!!n;for(var c in t)!r&&!Y.call(t,c)||o&&("length"==c||Bt(c,n))||e.push(c);return e}function $t(t,r,e){var n=t[r];Y.call(t,r)&&zt(n,e)&&(void 0!==e||r in t)||(t[r]=e)}function It(t,r){for(var e=t.length;e--;)if(zt(t[e][0],r))return e;return-1}function Tt(t,r,e,n,o,p,d){var T;if(n&&(T=p?n(t,o,p,d):n(t)),void 0!==T)return T;if(!qt(t))return t;var P=Gt(t);if(P){if(T=function(t){var r=t.length,e=t.constructor(r);r&&"string"==typeof t[0]&&Y.call(t,"index")&&(e.index=t.index,e.input=t.input);return e}(t),!r)return function(t,r){var e=-1,n=t.length;r||(r=Array(n));for(;++e<n;)r[e]=t[e];return r}(t,T)}else{var R=Ht(t),M=R==a||R==f;if(Vt(t))return function(t,r){if(r)return t.slice();var e=new t.constructor(t.length);return t.copy(e),e}(t,r);if(R==h||R==u||M&&!p){if(z(t))return p?t:{};if(T=function(t){return"function"!=typeof t.constructor||Ut(t)?{}:(r=ot(t),qt(r)?ut(r):{});var r}(M?{}:t),!r)return function(t,r){return Rt(t,Wt(t),r)}(t,function(t,r){return t&&Rt(r,Jt(r),t)}(T,t))}else{if(!F[R])return p?t:{};T=function(t,r,e,n){var o=t.constructor;switch(r){case g:return Ft(t);case c:case i:return new o(+t);case j:return function(t,r){var e=r?Ft(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}(t,n);case O:case w:case m:case A:case x:case E:case k:case S:case $:return function(t,r){var e=r?Ft(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}(t,n);case s:return function(t,r,e){return C(r?e(G(t),!0):G(t),B,new t.constructor)}(t,n,e);case l:case v:return new o(t);case _:return function(t){var r=new t.constructor(t.source,I.exec(t));return r.lastIndex=t.lastIndex,r}(t);case y:return function(t,r,e){return C(r?e(V(t),!0):V(t),U,new t.constructor)}(t,n,e);case b:return u=t,mt?Object(mt.call(u)):{}}var u}(t,R,Tt,r)}}d||(d=new kt);var D=d.get(t);if(D)return D;if(d.set(t,T),!P)var W=e?function(t){return function(t,r,e){var n=r(t);return Gt(t)?n:function(t,r){for(var e=-1,n=r.length,o=t.length;++e<n;)t[o+e]=r[e];return t}(n,e(t))}(t,Jt,Wt)}(t):Jt(t);return function(t,r){for(var e=-1,n=t?t.length:0;++e<n&&!1!==r(t[e],e,t););}(W||t,(function(o,u){W&&(o=t[u=o]),$t(T,u,Tt(o,r,e,n,u,t,d))})),T}function Pt(t){return!(!qt(t)||function(t){return!!Q&&Q in t}(t))&&(Nt(t)||z(t)?tt:T).test(Ct(t))}function Ft(t){var r=new t.constructor(t.byteLength);return new nt(r).set(new nt(t)),r}function Rt(t,r,e,n){e||(e={});for(var o=-1,u=r.length;++o<u;){var c=r[o],i=n?n(e[c],t[c],c,e,t):void 0;$t(e,c,void 0===i?t[c]:i)}return e}function Mt(t,r){var e,n,o=t.__data__;return("string"==(n=typeof(e=r))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==e:null===e)?o["string"==typeof r?"string":"hash"]:o.map}function Dt(t,r){var e=function(t,r){return null==t?void 0:t[r]}(t,r);return Pt(e)?e:void 0}At.prototype.clear=function(){this.__data__=vt?vt(null):{}},At.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},At.prototype.get=function(t){var r=this.__data__;if(vt){var e=r[t];return e===n?void 0:e}return Y.call(r,t)?r[t]:void 0},At.prototype.has=function(t){var r=this.__data__;return vt?void 0!==r[t]:Y.call(r,t)},At.prototype.set=function(t,r){return this.__data__[t]=vt&&void 0===r?n:r,this},xt.prototype.clear=function(){this.__data__=[]},xt.prototype.delete=function(t){var r=this.__data__,e=It(r,t);return!(e<0)&&(e==r.length-1?r.pop():it.call(r,e,1),!0)},xt.prototype.get=function(t){var r=this.__data__,e=It(r,t);return e<0?void 0:r[e][1]},xt.prototype.has=function(t){return It(this.__data__,t)>-1},xt.prototype.set=function(t,r){var e=this.__data__,n=It(e,t);return n<0?e.push([t,r]):e[n][1]=r,this},Et.prototype.clear=function(){this.__data__={hash:new At,map:new(ht||xt),string:new At}},Et.prototype.delete=function(t){return Mt(this,t).delete(t)},Et.prototype.get=function(t){return Mt(this,t).get(t)},Et.prototype.has=function(t){return Mt(this,t).has(t)},Et.prototype.set=function(t,r){return Mt(this,t).set(t,r),this},kt.prototype.clear=function(){this.__data__=new xt},kt.prototype.delete=function(t){return this.__data__.delete(t)},kt.prototype.get=function(t){return this.__data__.get(t)},kt.prototype.has=function(t){return this.__data__.has(t)},kt.prototype.set=function(t,r){var e=this.__data__;if(e instanceof xt){var n=e.__data__;if(!ht||n.length<199)return n.push([t,r]),this;e=this.__data__=new Et(n)}return e.set(t,r),this};var Wt=at?L(at,Object):function(){return[]},Ht=function(t){return Z.call(t)};function Bt(t,r){return!!(r=null==r?o:r)&&("number"==typeof t||P.test(t))&&t>-1&&t%1==0&&t<r}function Ut(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||J)}function Ct(t){if(null!=t){try{return X.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function zt(t,r){return t===r||t!=t&&r!=r}(lt&&Ht(new lt(new ArrayBuffer(1)))!=j||ht&&Ht(new ht)!=s||pt&&Ht(pt.resolve())!=p||_t&&Ht(new _t)!=y||yt&&Ht(new yt)!=d)&&(Ht=function(t){var r=Z.call(t),e=r==h?t.constructor:void 0,n=e?Ct(e):void 0;if(n)switch(n){case bt:return j;case dt:return s;case gt:return p;case jt:return y;case Ot:return d}return r});var Gt=Array.isArray;function Lt(t){return null!=t&&function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}(t.length)&&!Nt(t)}var Vt=ft||function(){return!1};function Nt(t){var r=qt(t)?Z.call(t):"";return r==a||r==f}function qt(t){var r=typeof t;return!!t&&("object"==r||"function"==r)}function Jt(t){return Lt(t)?St(t):function(t){if(!Ut(t))return st(t);var r=[];for(var e in Object(t))Y.call(t,e)&&"constructor"!=e&&r.push(e);return r}(t)}t.exports=function(t){return Tt(t,!0,!0)}}(ct,ct.exports);var it=ct.exports;
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.1
14
+ * @version 5.0.2
15
15
  * @author Roy Revelt, Codsen Ltd
16
16
  * @license MIT
17
17
  * {@link https://codsen.com/os/object-boolean-combinations/}
18
- */t.mixer=function(t={},r={}){if(t&&"object"!=typeof t)throw new Error("test-mixer: [THROW_ID_01] the first input arg is missing!");if(r&&"object"!=typeof r)throw new Error("test-mixer: [THROW_ID_02] the second input arg is missing!");let e;if("object"==typeof t&&"object"==typeof r&&Object.keys(t).some((t=>{if(!Object.keys(r).includes(t))return e=t,!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 "${e}" which 2nd input arg object doesn't have.`);if(!Object.keys(r).length)return[];const n=ut(t),o=ut(r),u={};return Object.keys(r).forEach((r=>{"boolean"!=typeof o[r]||Object.keys(t).includes(r)||(u[r]=o[r])})),function(t,r={}){if(!t)throw new Error("[THROW_ID_01] missing input object");if(!nt(t))throw new Error("[THROW_ID_02] the first input object must be a true object");if(r&&!nt(r))throw new Error("[THROW_ID_03] the second override object must be a true object");const e=ut(t),n=ut(r),o=Object.keys(e),u=[];let c=[];nt(n)&&Object.keys(n).length&&(c=z(Object.keys(n),Object.keys(e)),c.forEach((t=>Q(o,t))));const i=function(t){const r=[];for(let e=0;e<1<<t;e++){const n=[];for(let r=0;r<t;r++)n.push(e&1<<r?1:0);r.push(n)}return r}(Object.keys(o).length);let a;return i.forEach(((t,r)=>{a={},o.forEach(((t,e)=>{a[t]=1===i[r][e]})),u.push(a)})),nt(n)&&Object.keys(n).length&&u.forEach((t=>c.forEach((r=>{t[r]=n[r]})))),u}(u).map((t=>({...r,...n,...t})))},t.version="3.0.1",Object.defineProperty(t,"__esModule",{value:!0})}));
18
+ */t.mixer=function(t={},r={}){if(t&&"object"!=typeof t)throw new Error("test-mixer: [THROW_ID_01] the first input arg is missing!");if(r&&"object"!=typeof r)throw new Error("test-mixer: [THROW_ID_02] the second input arg is missing!");let e;if("object"==typeof t&&"object"==typeof r&&Object.keys(t).some((t=>{if(!Object.keys(r).includes(t))return e=t,!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 "${e}" which 2nd input arg object doesn't have.`);if(!Object.keys(r).length)return[];const n=it(t),o=it(r),u={};return Object.keys(r).forEach((r=>{"boolean"!=typeof o[r]||Object.keys(t).includes(r)||(u[r]=o[r])})),function(t,r={}){if(!t)throw new Error("[THROW_ID_01] missing input object");if(!ut(t))throw new Error("[THROW_ID_02] the first input object must be a true object");if(r&&!ut(r))throw new Error("[THROW_ID_03] the second override object must be a true object");const e=it(t),n=it(r),o=Object.keys(e),u=[];let c=[];ut(n)&&Object.keys(n).length&&(c=G(Object.keys(n),Object.keys(e)),c.forEach((t=>Y(o,t))));const i=function(t){const r=[];for(let e=0;e<1<<t;e++){const n=[];for(let r=0;r<t;r++)n.push(e&1<<r?1:0);r.push(n)}return r}(Object.keys(o).length);let a;return i.forEach(((t,r)=>{a={},o.forEach(((t,e)=>{a[t]=1===i[r][e]})),u.push(a)})),ut(n)&&Object.keys(n).length&&u.forEach((t=>c.forEach((r=>{t[r]=n[r]})))),u}(u).map((t=>({...r,...n,...t})))},t.version="3.0.2",Object.defineProperty(t,"__esModule",{value:!0})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "test-mixer",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "Test helper to generate function opts object variations",
5
5
  "keywords": [
6
6
  "combinations",
@@ -81,7 +81,7 @@
81
81
  "dependencies": {
82
82
  "@babel/runtime": "^7.15.4",
83
83
  "lodash.clonedeep": "^4.5.0",
84
- "object-boolean-combinations": "^5.0.1"
84
+ "object-boolean-combinations": "^5.0.2"
85
85
  },
86
86
  "devDependencies": {
87
87
  "@babel/cli": "^7.15.4",
@@ -111,7 +111,7 @@
111
111
  "core-js": "^3.17.3",
112
112
  "cross-env": "^7.0.3",
113
113
  "eslint": "^7.32.0",
114
- "lect": "^0.18.1",
114
+ "lect": "^0.18.2",
115
115
  "rollup": "^2.56.3",
116
116
  "rollup-plugin-ascii": "^0.0.3",
117
117
  "rollup-plugin-banner": "^0.2.1",