test-mixer 4.1.9 → 4.1.11

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
@@ -50,7 +50,7 @@ assert.deepEqual(
50
50
  {
51
51
  // empty first arg object means you want all combinations
52
52
  },
53
- defaultOpts
53
+ defaultOpts,
54
54
  ),
55
55
  [
56
56
  {
@@ -101,7 +101,7 @@ assert.deepEqual(
101
101
  inflateTires: true,
102
102
  extinguishersCount: 1,
103
103
  },
104
- ]
104
+ ],
105
105
  );
106
106
 
107
107
  // let's "pin" a value, prepare two sets of options objects,
@@ -112,7 +112,7 @@ const variationsWithScrapeWindshieldOn = mixer(
112
112
  {
113
113
  scrapeWindshield: true,
114
114
  },
115
- defaultOpts
115
+ defaultOpts,
116
116
  );
117
117
  assert.deepEqual(variationsWithScrapeWindshieldOn, [
118
118
  {
@@ -146,7 +146,7 @@ const variationsWithScrapeWindshieldOff = mixer(
146
146
  {
147
147
  scrapeWindshield: false,
148
148
  },
149
- defaultOpts
149
+ defaultOpts,
150
150
  );
151
151
  assert.equal(variationsWithScrapeWindshieldOff.length, 4);
152
152
  ```
@@ -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.9
4
+ * @version 4.1.11
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 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};
10
+ import{combinations as u}from"object-boolean-combinations";import m from"rfdc";var i="4.1.11";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.9
4
+ * @version 4.1.11
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 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);})();
10
+ "use strict";var testMixer=(()=>{var T=Object.create;var y=Object.defineProperty;var N=Object.getOwnPropertyDescriptor;var V=Object.getOwnPropertyNames,j=Object.getOwnPropertySymbols,_=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var v=(r,t,o)=>t in r?y(r,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[t]=o,h=(r,t)=>{for(var o in t||(t={}))D.call(t,o)&&v(r,o,t[o]);if(j)for(var o of j(t))I.call(t,o)&&v(r,o,t[o]);return r};var L=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),W=(r,t)=>{for(var o in t)y(r,o,{get:t[o],enumerable:!0})},O=(r,t,o,f)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of V(t))!D.call(r,i)&&i!==o&&y(r,i,{get:()=>t[i],enumerable:!(f=N(t,i))||f.enumerable});return r};var A=(r,t,o)=>(o=r!=null?T(_(r)):{},O(t||!r||!r.__esModule?y(o,"default",{value:r,enumerable:!0}):o,r)),F=r=>O(y({},"__esModule",{value:!0}),r);var g=L((G,x)=>{"use strict";x.exports=H;function b(r){return r instanceof Buffer?Buffer.from(r):new r.constructor(r.buffer.slice(),r.byteOffset,r.length)}function H(r){if(r=r||{},r.circles)return J(r);return r.proto?f:o;function t(i,a){for(var n=Object.keys(i),e=new Array(n.length),l=0;l<n.length;l++){var s=n[l],u=i[s];typeof u!="object"||u===null?e[s]=u:u instanceof Date?e[s]=new Date(u):ArrayBuffer.isView(u)?e[s]=b(u):e[s]=a(u)}return e}function o(i){if(typeof i!="object"||i===null)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return t(i,o);if(i instanceof Map)return new Map(t(Array.from(i),o));if(i instanceof Set)return new Set(t(Array.from(i),o));var a={};for(var n in i)if(Object.hasOwnProperty.call(i,n)!==!1){var e=i[n];typeof e!="object"||e===null?a[n]=e:e instanceof Date?a[n]=new Date(e):e instanceof Map?a[n]=new Map(t(Array.from(e),o)):e instanceof Set?a[n]=new Set(t(Array.from(e),o)):ArrayBuffer.isView(e)?a[n]=b(e):a[n]=o(e)}return a}function f(i){if(typeof i!="object"||i===null)return i;if(i instanceof Date)return new Date(i);if(Array.isArray(i))return t(i,f);if(i instanceof Map)return new Map(t(Array.from(i),f));if(i instanceof Set)return new Set(t(Array.from(i),f));var a={};for(var n in i){var e=i[n];typeof e!="object"||e===null?a[n]=e:e instanceof Date?a[n]=new Date(e):e instanceof Map?a[n]=new Map(t(Array.from(e),f)):e instanceof Set?a[n]=new Set(t(Array.from(e),f)):ArrayBuffer.isView(e)?a[n]=b(e):a[n]=f(e)}return a}}function J(r){var t=[],o=[];return r.proto?a:i;function f(n,e){for(var l=Object.keys(n),s=new Array(l.length),u=0;u<l.length;u++){var p=l[u],c=n[p];if(typeof c!="object"||c===null)s[p]=c;else if(c instanceof Date)s[p]=new Date(c);else if(ArrayBuffer.isView(c))s[p]=b(c);else{var m=t.indexOf(c);m!==-1?s[p]=o[m]:s[p]=e(c)}}return s}function i(n){if(typeof n!="object"||n===null)return n;if(n instanceof Date)return new Date(n);if(Array.isArray(n))return f(n,i);if(n instanceof Map)return new Map(f(Array.from(n),i));if(n instanceof Set)return new Set(f(Array.from(n),i));var e={};t.push(n),o.push(e);for(var l in n)if(Object.hasOwnProperty.call(n,l)!==!1){var s=n[l];if(typeof s!="object"||s===null)e[l]=s;else if(s instanceof Date)e[l]=new Date(s);else if(s instanceof Map)e[l]=new Map(f(Array.from(s),i));else if(s instanceof Set)e[l]=new Set(f(Array.from(s),i));else if(ArrayBuffer.isView(s))e[l]=b(s);else{var u=t.indexOf(s);u!==-1?e[l]=o[u]:e[l]=i(s)}}return t.pop(),o.pop(),e}function a(n){if(typeof n!="object"||n===null)return n;if(n instanceof Date)return new Date(n);if(Array.isArray(n))return f(n,a);if(n instanceof Map)return new Map(f(Array.from(n),a));if(n instanceof Set)return new Set(f(Array.from(n),a));var e={};t.push(n),o.push(e);for(var l in n){var s=n[l];if(typeof s!="object"||s===null)e[l]=s;else if(s instanceof Date)e[l]=new Date(s);else if(s instanceof Map)e[l]=new Map(f(Array.from(s),a));else if(s instanceof Set)e[l]=new Set(f(Array.from(s),a));else if(ArrayBuffer.isView(s))e[l]=b(s);else{var u=t.indexOf(s);u!==-1?e[l]=o[u]:e[l]=a(s)}}return t.pop(),o.pop(),e}}});var Z={};W(Z,{mixer:()=>q,version:()=>U});var S=A(g(),1);var K=(0,S.default)();function d(r){if(r==null||typeof r!="object")return!1;let t=Object.getPrototypeOf(r);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null?!1:!(Symbol.iterator in r)&&!(Symbol.toStringTag in r)}function C(r=[],t=[]){return!r||!t?[]:Array.from(new Set(Array.from(r).filter(o=>new Set(t).has(o))))}var $=A(g(),1);var E=(0,$.default)();function B(r,t={}){function o(u){let p=[];for(let c=0;c<1<<u;c++){let m=[];for(let w=0;w<u;w++)m.push(c&1<<w?1:0);p.push(m)}return p}if(!r)throw new Error("[THROW_ID_01] missing input object");if(!d(r))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=E(r),i=E(t),a=Object.keys(f),n=[],e=[];d(i)&&Object.keys(i).length&&(e=C(Object.keys(i),Object.keys(f)),a=a.filter(u=>!e.includes(u)));let l=o(Object.keys(a).length),s;return l.forEach((u,p)=>{s={},a.forEach((c,m)=>{s[c]=l[p][m]===1}),n.push(s)}),d(i)&&Object.keys(i).length&&n.forEach(u=>{e.forEach(p=>{u[p]=i[p]})}),n}var P=A(g(),1);var M="4.1.11";var R=(0,P.default)(),U=M;function q(r={},t={}){if(r&&typeof r!="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 o;if(typeof r=="object"&&typeof t=="object"&&Object.keys(r).filter(e=>typeof r[e]=="boolean").some(e=>Object.keys(t).includes(e)?!1:(o=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 "${o}" which 2nd input arg object doesn't have.`);if(!Object.keys(t).length)return[];let f=R(r),i=R(t),a={};return Object.keys(t).forEach(e=>{typeof i[e]=="boolean"&&!Object.keys(r).includes(e)&&(a[e]=i[e])}),B(a).map(e=>h(h(h({},t),f),e))}return F(Z);})();
11
11
  /**
12
12
  * @name codsen-utils
13
13
  * @fileoverview Various utility functions
14
- * @version 1.5.0
14
+ * @version 1.6.1
15
15
  * @author Roy Revelt, Codsen Ltd
16
16
  * @license MIT
17
17
  * {@link https://codsen.com/os/codsen-utils/}
@@ -19,21 +19,8 @@
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.1.0
22
+ * @version 6.1.2
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.9",
3
+ "version": "4.1.11",
4
4
  "description": "Test helper to generate function opts object variations",
5
5
  "keywords": [
6
6
  "combinations",
@@ -37,7 +37,7 @@
37
37
  "cjs-on": "exit 0",
38
38
  "dev": "DEV=true node '../../ops/scripts/esbuild.js' && npm run dts",
39
39
  "devtest": "c8 npm run unit && npm run examples && npm run lint",
40
- "dts": "rollup -c && npm run prettier -- 'types/index.d.ts' --write --loglevel 'silent'",
40
+ "dts": "rollup -c && npm run prettier -- 'types/index.d.ts' --write --log-level 'silent'",
41
41
  "examples": "node '../../ops/scripts/run-examples.js'",
42
42
  "lect": "node '../../ops/lect/lect.js' && npm run prettier -- 'README.md' '.all-contributorsrc' 'rollup.config.js' --write",
43
43
  "letspublish": "npm publish || :",
@@ -45,7 +45,7 @@
45
45
  "perf": "node perf/check.js",
46
46
  "prep": "echo 'ready'",
47
47
  "prettier": "prettier",
48
- "prettier:format": "npm run prettier -- --write '**/*.{ts,tsx,md}' --no-error-on-unmatched-pattern --loglevel 'silent'",
48
+ "prettier:format": "npm run prettier -- --write '**/*.{ts,tsx,md}' --no-error-on-unmatched-pattern --log-level 'silent'",
49
49
  "pretest": "npm run lect && npm run build",
50
50
  "test": "npm run devtest",
51
51
  "unit": "uvu test"
@@ -68,7 +68,7 @@
68
68
  }
69
69
  },
70
70
  "dependencies": {
71
- "object-boolean-combinations": "^6.1.0",
71
+ "object-boolean-combinations": "^6.1.2",
72
72
  "rfdc": "^1.3.0"
73
73
  }
74
74
  }
package/types/index.d.ts CHANGED
@@ -7,7 +7,7 @@ type PlainObjectOfBool = {
7
7
  };
8
8
  declare function mixer(
9
9
  ref?: PlainObject,
10
- defaultsObj?: PlainObject
10
+ defaultsObj?: PlainObject,
11
11
  ): PlainObjectOfBool[];
12
12
 
13
13
  export { PlainObject, PlainObjectOfBool, mixer, version };