test-mixer 4.1.14 → 4.1.18
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/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/test-mixer.esm.js +2 -2
- package/dist/test-mixer.umd.js +4 -4
- package/package.json +5 -5
- package/types/index.d.ts +2 -1
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2010-
|
|
3
|
+
Copyright (c) 2010-2025 Roy Revelt and other contributors
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
6
|
a copy of this software and associated documentation files (the
|
package/README.md
CHANGED
|
@@ -163,6 +163,6 @@ To report bugs or request features or assistance, [raise an issue](https://githu
|
|
|
163
163
|
|
|
164
164
|
MIT License.
|
|
165
165
|
|
|
166
|
-
Copyright © 2010-
|
|
166
|
+
Copyright © 2010-2025 Roy Revelt and other contributors.
|
|
167
167
|
|
|
168
168
|
<p align="center"><img src="https://codsen.com/images/png-codsen-ok.png" width="98" alt="ok" align="center"> <img src="https://codsen.com/images/png-codsen-1.png" width="148" alt="codsen" align="center"> <img src="https://codsen.com/images/png-codsen-star-small.png" width="32" alt="star" align="center"></p>
|
package/dist/test-mixer.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name test-mixer
|
|
3
3
|
* @fileoverview Test helper to generate function opts object variations
|
|
4
|
-
* @version 4.1.
|
|
4
|
+
* @version 4.1.18
|
|
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.
|
|
10
|
+
import{combinations as u}from"object-boolean-combinations";import m from"rfdc";var i="4.1.18";var l=m(),h=i;function y(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{y as mixer,h as version};
|
package/dist/test-mixer.umd.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name test-mixer
|
|
3
3
|
* @fileoverview Test helper to generate function opts object variations
|
|
4
|
-
* @version 4.1.
|
|
4
|
+
* @version 4.1.18
|
|
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
|
|
10
|
+
"use strict";var testMixer=(()=>{var N=Object.create;var y=Object.defineProperty;var V=Object.getOwnPropertyDescriptor;var H=Object.getOwnPropertyNames,A=Object.getOwnPropertySymbols,_=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var x=(t,e,s)=>e in t?y(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,g=(t,e)=>{for(var s in e||(e={}))v.call(e,s)&&x(t,s,e[s]);if(A)for(var s of A(e))I.call(e,s)&&x(t,s,e[s]);return t};var M=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),L=(t,e)=>{for(var s in e)y(t,s,{get:e[s],enumerable:!0})},k=(t,e,s,f)=>{if(e&&typeof e=="object"||typeof e=="function")for(let c of H(e))!v.call(t,c)&&c!==s&&y(t,c,{get:()=>e[c],enumerable:!(f=V(e,c))||f.enumerable});return t};var O=(t,e,s)=>(s=t!=null?N(_(t)):{},k(e||!t||!t.__esModule?y(s,"default",{value:t,enumerable:!0}):s,t)),W=t=>k(y({},"__esModule",{value:!0}),t);var j=M((G,D)=>{"use strict";D.exports=F;function d(t){return t instanceof Buffer?Buffer.from(t):new t.constructor(t.buffer.slice(),t.byteOffset,t.length)}function F(t){if(t=t||{},t.circles)return J(t);let e=new Map;if(e.set(Date,o=>new Date(o)),e.set(Map,(o,u)=>new Map(f(Array.from(o),u))),e.set(Set,(o,u)=>new Set(f(Array.from(o),u))),t.constructorHandlers)for(let o of t.constructorHandlers)e.set(o[0],o[1]);let s=null;return t.proto?p:c;function f(o,u){let r=Object.keys(o),n=new Array(r.length);for(let l=0;l<r.length;l++){let i=r[l],a=o[i];typeof a!="object"||a===null?n[i]=a:a.constructor!==Object&&(s=e.get(a.constructor))?n[i]=s(a,u):ArrayBuffer.isView(a)?n[i]=d(a):n[i]=u(a)}return n}function c(o){if(typeof o!="object"||o===null)return o;if(Array.isArray(o))return f(o,c);if(o.constructor!==Object&&(s=e.get(o.constructor)))return s(o,c);let u={};for(let r in o){if(Object.hasOwnProperty.call(o,r)===!1)continue;let n=o[r];typeof n!="object"||n===null?u[r]=n:n.constructor!==Object&&(s=e.get(n.constructor))?u[r]=s(n,c):ArrayBuffer.isView(n)?u[r]=d(n):u[r]=c(n)}return u}function p(o){if(typeof o!="object"||o===null)return o;if(Array.isArray(o))return f(o,p);if(o.constructor!==Object&&(s=e.get(o.constructor)))return s(o,p);let u={};for(let r in o){let n=o[r];typeof n!="object"||n===null?u[r]=n:n.constructor!==Object&&(s=e.get(n.constructor))?u[r]=s(n,p):ArrayBuffer.isView(n)?u[r]=d(n):u[r]=p(n)}return u}}function J(t){let e=[],s=[],f=new Map;if(f.set(Date,r=>new Date(r)),f.set(Map,(r,n)=>new Map(p(Array.from(r),n))),f.set(Set,(r,n)=>new Set(p(Array.from(r),n))),t.constructorHandlers)for(let r of t.constructorHandlers)f.set(r[0],r[1]);let c=null;return t.proto?u:o;function p(r,n){let l=Object.keys(r),i=new Array(l.length);for(let a=0;a<l.length;a++){let m=l[a],b=r[m];if(typeof b!="object"||b===null)i[m]=b;else if(b.constructor!==Object&&(c=f.get(b.constructor)))i[m]=c(b,n);else if(ArrayBuffer.isView(b))i[m]=d(b);else{let w=e.indexOf(b);w!==-1?i[m]=s[w]:i[m]=n(b)}}return i}function o(r){if(typeof r!="object"||r===null)return r;if(Array.isArray(r))return p(r,o);if(r.constructor!==Object&&(c=f.get(r.constructor)))return c(r,o);let n={};e.push(r),s.push(n);for(let l in r){if(Object.hasOwnProperty.call(r,l)===!1)continue;let i=r[l];if(typeof i!="object"||i===null)n[l]=i;else if(i.constructor!==Object&&(c=f.get(i.constructor)))n[l]=c(i,o);else if(ArrayBuffer.isView(i))n[l]=d(i);else{let a=e.indexOf(i);a!==-1?n[l]=s[a]:n[l]=o(i)}}return e.pop(),s.pop(),n}function u(r){if(typeof r!="object"||r===null)return r;if(Array.isArray(r))return p(r,u);if(r.constructor!==Object&&(c=f.get(r.constructor)))return c(r,u);let n={};e.push(r),s.push(n);for(let l in r){let i=r[l];if(typeof i!="object"||i===null)n[l]=i;else if(i.constructor!==Object&&(c=f.get(i.constructor)))n[l]=c(i,u);else if(ArrayBuffer.isView(i))n[l]=d(i);else{let a=e.indexOf(i);a!==-1?n[l]=s[a]:n[l]=u(i)}}return e.pop(),s.pop(),n}}});var Z={};L(Z,{mixer:()=>q,version:()=>U});var C=O(j(),1);var K=(0,C.default)();function h(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)}function E(t=[],e=[]){return!t||!e?[]:Array.from(new Set(Array.from(t).filter(s=>new Set(e).has(s))))}var $=O(j(),1);var S=(0,$.default)();function B(t,e={}){function s(l){let i=[];for(let a=0;a<1<<l;a++){let m=[];for(let b=0;b<l;b++)m.push(a&1<<b?1:0);i.push(m)}return i}if(!t)throw new Error("[THROW_ID_01] missing input object");if(!h(t))throw new Error("[THROW_ID_02] the first input object must be a plain object");if(e&&!h(e))throw new Error("[THROW_ID_03] the second override object must be a plain object");let f=S(t),c=S(e),p=Object.keys(f),o=[],u=[];h(c)&&Object.keys(c).length&&(u=E(Object.keys(c),Object.keys(f)),p=p.filter(l=>!u.includes(l)));let r=s(Object.keys(p).length),n;return r.forEach((l,i)=>{n={},p.forEach((a,m)=>{n[a]=r[i][m]===1}),o.push(n)}),h(c)&&Object.keys(c).length&&o.forEach(l=>{u.forEach(i=>{l[i]=c[i]})}),o}var T=O(j(),1);var R="4.1.18";var P=(0,T.default)(),U=R;function q(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 s;if(typeof t=="object"&&typeof e=="object"&&Object.keys(t).filter(u=>typeof t[u]=="boolean").some(u=>Object.keys(e).includes(u)?!1:(s=u,!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(e).length)return[];let f=P(t),c=P(e),p={};return Object.keys(e).forEach(u=>{typeof c[u]=="boolean"&&!Object.keys(t).includes(u)&&(p[u]=c[u])}),B(p).map(u=>g(g(g({},e),f),u))}return W(Z);})();
|
|
11
11
|
/**
|
|
12
12
|
* @name codsen-utils
|
|
13
13
|
* @fileoverview Various utility functions
|
|
14
|
-
* @version 1.6.
|
|
14
|
+
* @version 1.6.8
|
|
15
15
|
* @author Roy Revelt, Codsen Ltd
|
|
16
16
|
* @license MIT
|
|
17
17
|
* {@link https://codsen.com/os/codsen-utils/}
|
|
@@ -19,7 +19,7 @@
|
|
|
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.
|
|
22
|
+
* @version 6.1.9
|
|
23
23
|
* @author Roy Revelt, Codsen Ltd
|
|
24
24
|
* @license MIT
|
|
25
25
|
* {@link https://codsen.com/os/object-boolean-combinations/}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "test-mixer",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.18",
|
|
4
4
|
"description": "Test helper to generate function opts object variations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"combinations",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"homepage": "https://codsen.com/os/test-mixer",
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|
|
18
|
-
"url": "https://github.com/codsen/codsen.git",
|
|
18
|
+
"url": "git+https://github.com/codsen/codsen.git",
|
|
19
19
|
"directory": "packages/test-mixer"
|
|
20
20
|
},
|
|
21
21
|
"license": "MIT",
|
|
@@ -41,7 +41,7 @@
|
|
|
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 || :",
|
|
44
|
-
"lint": "eslint . --
|
|
44
|
+
"lint": "eslint . --fix",
|
|
45
45
|
"perf": "node perf/check.js",
|
|
46
46
|
"prep": "echo 'ready'",
|
|
47
47
|
"prettier": "prettier",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"object-boolean-combinations": "^6.1.
|
|
72
|
-
"rfdc": "^1.
|
|
71
|
+
"object-boolean-combinations": "^6.1.9",
|
|
72
|
+
"rfdc": "^1.4.1"
|
|
73
73
|
}
|
|
74
74
|
}
|
package/types/index.d.ts
CHANGED