test-mixer 3.0.6 → 3.0.7
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/dist/test-mixer.esm.js +2 -2
- package/dist/test-mixer.umd.js +3 -3
- package/package.json +9 -9
package/dist/test-mixer.esm.js
CHANGED
|
@@ -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.
|
|
4
|
+
* @version 3.0.7
|
|
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.
|
|
13
|
+
var version$1 = "3.0.7";
|
|
14
14
|
|
|
15
15
|
const version = version$1;
|
|
16
16
|
function mixer(ref = {}, defaultsObj = {}) {
|
package/dist/test-mixer.umd.js
CHANGED
|
@@ -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.
|
|
4
|
+
* @version 3.0.7
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/test-mixer/}
|
|
@@ -11,8 +11,8 @@
|
|
|
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.
|
|
14
|
+
* @version 5.0.7
|
|
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=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.
|
|
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.7",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.
|
|
3
|
+
"version": "3.0.7",
|
|
4
4
|
"description": "Test helper to generate function opts object variations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"combinations",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"dependencies": {
|
|
78
78
|
"@babel/runtime": "^7.16.3",
|
|
79
79
|
"lodash.clonedeep": "^4.5.0",
|
|
80
|
-
"object-boolean-combinations": "^5.0.
|
|
80
|
+
"object-boolean-combinations": "^5.0.7"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@babel/cli": "^7.16.0",
|
|
@@ -100,21 +100,21 @@
|
|
|
100
100
|
"@rollup/plugin-strip": "^2.1.0",
|
|
101
101
|
"@rollup/plugin-typescript": "^8.3.0",
|
|
102
102
|
"@types/lodash.clonedeep": "^4.5.6",
|
|
103
|
-
"@types/node": "^16.11.
|
|
103
|
+
"@types/node": "^16.11.10",
|
|
104
104
|
"@types/tap": "^15.0.5",
|
|
105
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
106
|
-
"@typescript-eslint/parser": "^5.
|
|
107
|
-
"core-js": "^3.19.
|
|
105
|
+
"@typescript-eslint/eslint-plugin": "^5.5.0",
|
|
106
|
+
"@typescript-eslint/parser": "^5.5.0",
|
|
107
|
+
"core-js": "^3.19.2",
|
|
108
108
|
"cross-env": "^7.0.3",
|
|
109
109
|
"eslint": "^8.3.0",
|
|
110
|
-
"lect": "^0.18.
|
|
111
|
-
"rollup": "^2.60.
|
|
110
|
+
"lect": "^0.18.7",
|
|
111
|
+
"rollup": "^2.60.1",
|
|
112
112
|
"rollup-plugin-ascii": "^0.0.3",
|
|
113
113
|
"rollup-plugin-banner": "^0.2.1",
|
|
114
114
|
"rollup-plugin-cleanup": "^3.2.1",
|
|
115
115
|
"rollup-plugin-dts": "^4.0.1",
|
|
116
116
|
"rollup-plugin-terser": "^7.0.2",
|
|
117
|
-
"tap": "^15.1.
|
|
117
|
+
"tap": "^15.1.5",
|
|
118
118
|
"tslib": "^2.3.1",
|
|
119
119
|
"typescript": "^4.5.2"
|
|
120
120
|
},
|