object-fill-missing-keys 9.0.5 → 9.0.6
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,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name object-fill-missing-keys
|
|
3
3
|
* @fileoverview Add missing keys into plain objects, according to a reference object
|
|
4
|
-
* @version 9.0.
|
|
4
|
+
* @version 9.0.6
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/object-fill-missing-keys/}
|
|
@@ -13,98 +13,104 @@ import { arrayiffy } from 'arrayiffy-if-string';
|
|
|
13
13
|
import { allEq } from 'object-all-values-equal-to';
|
|
14
14
|
import isObj from 'lodash.isplainobject';
|
|
15
15
|
|
|
16
|
-
var version$1 = "9.0.
|
|
16
|
+
var version$1 = "9.0.6";
|
|
17
17
|
|
|
18
18
|
const version = version$1;
|
|
19
19
|
const defaults = {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
placeholder: false,
|
|
21
|
+
doNotFillThesePathsIfTheyContainPlaceholders: [],
|
|
22
|
+
useNullAsExplicitFalse: true,
|
|
23
23
|
};
|
|
24
24
|
function typ(something) {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
if (isObj(something)) {
|
|
26
|
+
return "plain object";
|
|
27
|
+
}
|
|
28
|
+
if (Array.isArray(something)) {
|
|
29
|
+
return "array";
|
|
30
|
+
}
|
|
31
|
+
return typeof something;
|
|
32
32
|
}
|
|
33
33
|
function isStr(something) {
|
|
34
|
-
|
|
34
|
+
return typeof something === "string";
|
|
35
35
|
}
|
|
36
36
|
function existy(x) {
|
|
37
|
-
|
|
37
|
+
return x != null;
|
|
38
38
|
}
|
|
39
39
|
function fillMissingKeys(incompleteOriginal, schema, opts, path = "") {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
if (
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
40
|
+
const incomplete = clone(incompleteOriginal);
|
|
41
|
+
if (existy(incomplete) ||
|
|
42
|
+
!(path.length &&
|
|
43
|
+
opts.doNotFillThesePathsIfTheyContainPlaceholders.includes(path) &&
|
|
44
|
+
allEq(incomplete, opts.placeholder))) {
|
|
45
|
+
if (isObj(schema) && isObj(incomplete)) {
|
|
46
|
+
Object.keys(schema).forEach((key) => {
|
|
47
|
+
const currentPath = `${path ? `${path}.` : ""}${key}`;
|
|
48
|
+
if (opts.doNotFillThesePathsIfTheyContainPlaceholders.includes(currentPath)) {
|
|
49
|
+
if (existy(incomplete[key])) {
|
|
50
|
+
if (allEq(incomplete[key], opts.placeholder)) {
|
|
51
|
+
incomplete[key] = opts.placeholder;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
incomplete[key] = opts.placeholder;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
if (!existy(incomplete[key]) ||
|
|
59
|
+
!(opts.doNotFillThesePathsIfTheyContainPlaceholders.includes(currentPath) && allEq(incomplete[key], opts.placeholder))) {
|
|
60
|
+
incomplete[key] = fillMissingKeys(incomplete[key], schema[key], opts, currentPath);
|
|
61
|
+
}
|
|
62
|
+
});
|
|
53
63
|
}
|
|
54
|
-
if (
|
|
55
|
-
|
|
64
|
+
else if (Array.isArray(schema) && Array.isArray(incomplete)) {
|
|
65
|
+
if (incomplete.length === 0) {
|
|
66
|
+
return schema;
|
|
67
|
+
}
|
|
68
|
+
if (schema.length > 0) {
|
|
69
|
+
for (let i = incomplete.length; i--;) {
|
|
70
|
+
const currentPath = `${path ? `${path}.` : ""}0`;
|
|
71
|
+
if (isObj(schema[0]) || Array.isArray(schema[0])) {
|
|
72
|
+
incomplete[i] = fillMissingKeys(incomplete[i], schema[0], opts, currentPath);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
56
76
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
if (schema.length > 0) {
|
|
63
|
-
for (let i = incomplete.length; i--;) {
|
|
64
|
-
const currentPath = `${path ? `${path}.` : ""}0`;
|
|
65
|
-
if (isObj(schema[0]) || Array.isArray(schema[0])) {
|
|
66
|
-
incomplete[i] = fillMissingKeys(incomplete[i], schema[0], opts, currentPath);
|
|
67
|
-
}
|
|
77
|
+
else {
|
|
78
|
+
return mergeAdvanced(schema, incomplete, {
|
|
79
|
+
useNullAsExplicitFalse: opts.useNullAsExplicitFalse,
|
|
80
|
+
});
|
|
68
81
|
}
|
|
69
|
-
}
|
|
70
|
-
} else {
|
|
71
|
-
return mergeAdvanced(schema, incomplete, {
|
|
72
|
-
useNullAsExplicitFalse: opts.useNullAsExplicitFalse
|
|
73
|
-
});
|
|
74
82
|
}
|
|
75
|
-
|
|
76
|
-
return incomplete;
|
|
83
|
+
return incomplete;
|
|
77
84
|
}
|
|
78
85
|
function fillMissing(originalIncompleteWrapper, originalSchemaWrapper, originalOptsWrapper) {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
86
|
+
if (arguments.length === 0) {
|
|
87
|
+
throw new Error("object-fill-missing-keys: [THROW_ID_01] All arguments are missing!");
|
|
88
|
+
}
|
|
89
|
+
if (!isObj(originalIncompleteWrapper)) {
|
|
90
|
+
throw new Error(`object-fill-missing-keys: [THROW_ID_02] First argument, input object must be a plain object. Currently it's type is "${typ(originalIncompleteWrapper)}" and it's equal to: ${JSON.stringify(originalIncompleteWrapper, null, 4)}`);
|
|
91
|
+
}
|
|
92
|
+
if (!isObj(originalSchemaWrapper)) {
|
|
93
|
+
throw new Error(`object-fill-missing-keys: [THROW_ID_03] Second argument, schema object, must be a plain object. Currently it's type is "${typ(originalSchemaWrapper)}" and it's equal to: ${JSON.stringify(originalSchemaWrapper, null, 4)}`);
|
|
94
|
+
}
|
|
95
|
+
if (originalOptsWrapper && !isObj(originalOptsWrapper)) {
|
|
96
|
+
throw new Error(`object-fill-missing-keys: [THROW_ID_04] Third argument, schema object, must be a plain object. Currently it's type is "${typ(originalOptsWrapper)}" and it's equal to: ${JSON.stringify(originalOptsWrapper, null, 4)}`);
|
|
97
|
+
}
|
|
98
|
+
const opts = { ...defaults, ...(originalOptsWrapper || {}) };
|
|
99
|
+
opts.doNotFillThesePathsIfTheyContainPlaceholders = arrayiffy(opts.doNotFillThesePathsIfTheyContainPlaceholders);
|
|
100
|
+
let culpritsVal = null;
|
|
101
|
+
let culpritsIndex = null;
|
|
102
|
+
if (opts.doNotFillThesePathsIfTheyContainPlaceholders.length > 0 &&
|
|
103
|
+
!opts.doNotFillThesePathsIfTheyContainPlaceholders.every((key, idx) => {
|
|
104
|
+
if (!isStr(key)) {
|
|
105
|
+
culpritsVal = key;
|
|
106
|
+
culpritsIndex = idx;
|
|
107
|
+
return false;
|
|
108
|
+
}
|
|
109
|
+
return true;
|
|
110
|
+
})) {
|
|
111
|
+
throw new Error(`object-fill-missing-keys: [THROW_ID_06] opts.doNotFillThesePathsIfTheyContainPlaceholders element with an index number "${culpritsIndex}" is not a string! It's ${typ(culpritsVal)}, equal to:\n${JSON.stringify(culpritsVal, null, 4)}`);
|
|
102
112
|
}
|
|
103
|
-
return
|
|
104
|
-
})) {
|
|
105
|
-
throw new Error(`object-fill-missing-keys: [THROW_ID_06] opts.doNotFillThesePathsIfTheyContainPlaceholders element with an index number "${culpritsIndex}" is not a string! It's ${typ(culpritsVal)}, equal to:\n${JSON.stringify(culpritsVal, null, 4)}`);
|
|
106
|
-
}
|
|
107
|
-
return fillMissingKeys(clone(originalIncompleteWrapper), clone(originalSchemaWrapper), opts);
|
|
113
|
+
return fillMissingKeys(clone(originalIncompleteWrapper), clone(originalSchemaWrapper), opts);
|
|
108
114
|
}
|
|
109
115
|
|
|
110
116
|
export { fillMissing, version };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @name object-fill-missing-keys
|
|
3
3
|
* @fileoverview Add missing keys into plain objects, according to a reference object
|
|
4
|
-
* @version 9.0.
|
|
4
|
+
* @version 9.0.6
|
|
5
5
|
* @author Roy Revelt, Codsen Ltd
|
|
6
6
|
* @license MIT
|
|
7
7
|
* {@link https://codsen.com/os/object-fill-missing-keys/}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
/**
|
|
12
12
|
* @name util-nonempty
|
|
13
13
|
* @fileoverview Is the input (plain object, array, string or whatever) not empty?
|
|
14
|
-
* @version 4.0.
|
|
14
|
+
* @version 4.0.6
|
|
15
15
|
* @author Roy Revelt, Codsen Ltd
|
|
16
16
|
* @license MIT
|
|
17
17
|
* {@link https://codsen.com/os/util-nonempty/}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
/**
|
|
20
20
|
* @name object-merge-advanced
|
|
21
21
|
* @fileoverview Recursively, deeply merge of anything (objects, arrays, strings or nested thereof), which weighs contents by type hierarchy to ensure the maximum content is retained
|
|
22
|
-
* @version 13.0.
|
|
22
|
+
* @version 13.0.6
|
|
23
23
|
* @author Roy Revelt, Codsen Ltd
|
|
24
24
|
* @license MIT
|
|
25
25
|
* {@link https://codsen.com/os/object-merge-advanced/}
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
/**
|
|
28
28
|
* @name arrayiffy-if-string
|
|
29
29
|
* @fileoverview Put non-empty strings into arrays, turn empty-ones into empty arrays. Bypass everything else.
|
|
30
|
-
* @version 4.0.
|
|
30
|
+
* @version 4.0.6
|
|
31
31
|
* @author Roy Revelt, Codsen Ltd
|
|
32
32
|
* @license MIT
|
|
33
33
|
* {@link https://codsen.com/os/arrayiffy-if-string/}
|
|
@@ -36,8 +36,8 @@ function Ut(t){return"string"==typeof t?t.length?[t]:[]:t}var Ht={exports:{}};!f
|
|
|
36
36
|
/**
|
|
37
37
|
* @name object-all-values-equal-to
|
|
38
38
|
* @fileoverview Does the AST/nested-plain-object/array/whatever contain only one kind of value?
|
|
39
|
-
* @version 3.0.
|
|
39
|
+
* @version 3.0.6
|
|
40
40
|
* @author Roy Revelt, Codsen Ltd
|
|
41
41
|
* @license MIT
|
|
42
42
|
* {@link https://codsen.com/os/object-all-values-equal-to/}
|
|
43
|
-
*/function Vt(t,e,r){if(Array.isArray(t)){if(0===t.length)return!0;if(r.arraysMustNotContainPlaceholders&&t.length>0&&t.some((t=>qt(t,e))))return!1;for(let n=t.length;n--;)if(!Vt(t[n],e,r))return!1;return!0}if(At(t)){const n=Object.keys(t);if(0===n.length)return!0;for(let o=n.length;o--;)if(!Vt(t[n[o]],e,r))return!1;return!0}return qt(t,e)}function Lt(t,e,r){if(void 0===t)throw new Error("object-all-values-equal-to: [THROW_ID_01] The first input is undefined! Please provide the first argument.");if(void 0===e)throw new Error("object-all-values-equal-to: [THROW_ID_02] The second input is undefined! Please provide the second argument.");if(r&&!At(r))throw new Error(`object-all-values-equal-to: [THROW_ID_03] The third argument, options object, was given not as a plain object but as a ${typeof r}, equal to:\n${JSON.stringify(r,null,4)}`);return Vt(t,e,{arraysMustNotContainPlaceholders:!0,...r})}const Jt={placeholder:!1,doNotFillThesePathsIfTheyContainPlaceholders:[],useNullAsExplicitFalse:!0};function Gt(t){return At(t)?"plain object":Array.isArray(t)?"array":typeof t}function Qt(t){return"string"==typeof t}function Xt(t){return null!=t}function Yt(t,e,r,o=""){const i=n(t);if(Xt(i)||!(o.length&&r.doNotFillThesePathsIfTheyContainPlaceholders.includes(o)&&Lt(i,r.placeholder)))if(At(e)&&At(i))Object.keys(e).forEach((t=>{const n=`${o?`${o}.`:""}${t}`;r.doNotFillThesePathsIfTheyContainPlaceholders.includes(n)&&(Xt(i[t])?Lt(i[t],r.placeholder)&&(i[t]=r.placeholder):i[t]=r.placeholder),Xt(i[t])&&r.doNotFillThesePathsIfTheyContainPlaceholders.includes(n)&&Lt(i[t],r.placeholder)||(i[t]=Yt(i[t],e[t],r,n))}));else{if(!Array.isArray(e)||!Array.isArray(i))return function(t,e,r){if(!arguments.length)throw new TypeError("object-merge-advanced/mergeAdvanced(): [THROW_ID_01] Both inputs are missing");return Wt({key:null,path:"",type:[Bt(t),Bt(e)]},t,e,r)}(e,i,{useNullAsExplicitFalse:r.useNullAsExplicitFalse});if(0===i.length)return e;if(e.length>0)for(let t=i.length;t--;){const n=(o?`${o}.`:"")+"0";(At(e[0])||Array.isArray(e[0]))&&(i[t]=Yt(i[t],e[0],r,n))}}return i}t.fillMissing=function(t,e,r){if(0===arguments.length)throw new Error("object-fill-missing-keys: [THROW_ID_01] All arguments are missing!");if(!At(t))throw new Error(`object-fill-missing-keys: [THROW_ID_02] First argument, input object must be a plain object. Currently it's type is "${Gt(t)}" and it's equal to: ${JSON.stringify(t,null,4)}`);if(!At(e))throw new Error(`object-fill-missing-keys: [THROW_ID_03] Second argument, schema object, must be a plain object. Currently it's type is "${Gt(e)}" and it's equal to: ${JSON.stringify(e,null,4)}`);if(r&&!At(r))throw new Error(`object-fill-missing-keys: [THROW_ID_04] Third argument, schema object, must be a plain object. Currently it's type is "${Gt(r)}" and it's equal to: ${JSON.stringify(r,null,4)}`);const o={...Jt,...r||{}};o.doNotFillThesePathsIfTheyContainPlaceholders=Ut(o.doNotFillThesePathsIfTheyContainPlaceholders);let i=null,a=null;if(o.doNotFillThesePathsIfTheyContainPlaceholders.length>0&&!o.doNotFillThesePathsIfTheyContainPlaceholders.every(((t,e)=>!!Qt(t)||(i=t,a=e,!1))))throw new Error(`object-fill-missing-keys: [THROW_ID_06] opts.doNotFillThesePathsIfTheyContainPlaceholders element with an index number "${a}" is not a string! It's ${Gt(i)}, equal to:\n${JSON.stringify(i,null,4)}`);return Yt(n(t),n(e),o)},t.version="9.0.
|
|
43
|
+
*/function Vt(t,e,r){if(Array.isArray(t)){if(0===t.length)return!0;if(r.arraysMustNotContainPlaceholders&&t.length>0&&t.some((t=>qt(t,e))))return!1;for(let n=t.length;n--;)if(!Vt(t[n],e,r))return!1;return!0}if(At(t)){const n=Object.keys(t);if(0===n.length)return!0;for(let o=n.length;o--;)if(!Vt(t[n[o]],e,r))return!1;return!0}return qt(t,e)}function Lt(t,e,r){if(void 0===t)throw new Error("object-all-values-equal-to: [THROW_ID_01] The first input is undefined! Please provide the first argument.");if(void 0===e)throw new Error("object-all-values-equal-to: [THROW_ID_02] The second input is undefined! Please provide the second argument.");if(r&&!At(r))throw new Error(`object-all-values-equal-to: [THROW_ID_03] The third argument, options object, was given not as a plain object but as a ${typeof r}, equal to:\n${JSON.stringify(r,null,4)}`);return Vt(t,e,{arraysMustNotContainPlaceholders:!0,...r})}const Jt={placeholder:!1,doNotFillThesePathsIfTheyContainPlaceholders:[],useNullAsExplicitFalse:!0};function Gt(t){return At(t)?"plain object":Array.isArray(t)?"array":typeof t}function Qt(t){return"string"==typeof t}function Xt(t){return null!=t}function Yt(t,e,r,o=""){const i=n(t);if(Xt(i)||!(o.length&&r.doNotFillThesePathsIfTheyContainPlaceholders.includes(o)&&Lt(i,r.placeholder)))if(At(e)&&At(i))Object.keys(e).forEach((t=>{const n=`${o?`${o}.`:""}${t}`;r.doNotFillThesePathsIfTheyContainPlaceholders.includes(n)&&(Xt(i[t])?Lt(i[t],r.placeholder)&&(i[t]=r.placeholder):i[t]=r.placeholder),Xt(i[t])&&r.doNotFillThesePathsIfTheyContainPlaceholders.includes(n)&&Lt(i[t],r.placeholder)||(i[t]=Yt(i[t],e[t],r,n))}));else{if(!Array.isArray(e)||!Array.isArray(i))return function(t,e,r){if(!arguments.length)throw new TypeError("object-merge-advanced/mergeAdvanced(): [THROW_ID_01] Both inputs are missing");return Wt({key:null,path:"",type:[Bt(t),Bt(e)]},t,e,r)}(e,i,{useNullAsExplicitFalse:r.useNullAsExplicitFalse});if(0===i.length)return e;if(e.length>0)for(let t=i.length;t--;){const n=(o?`${o}.`:"")+"0";(At(e[0])||Array.isArray(e[0]))&&(i[t]=Yt(i[t],e[0],r,n))}}return i}t.fillMissing=function(t,e,r){if(0===arguments.length)throw new Error("object-fill-missing-keys: [THROW_ID_01] All arguments are missing!");if(!At(t))throw new Error(`object-fill-missing-keys: [THROW_ID_02] First argument, input object must be a plain object. Currently it's type is "${Gt(t)}" and it's equal to: ${JSON.stringify(t,null,4)}`);if(!At(e))throw new Error(`object-fill-missing-keys: [THROW_ID_03] Second argument, schema object, must be a plain object. Currently it's type is "${Gt(e)}" and it's equal to: ${JSON.stringify(e,null,4)}`);if(r&&!At(r))throw new Error(`object-fill-missing-keys: [THROW_ID_04] Third argument, schema object, must be a plain object. Currently it's type is "${Gt(r)}" and it's equal to: ${JSON.stringify(r,null,4)}`);const o={...Jt,...r||{}};o.doNotFillThesePathsIfTheyContainPlaceholders=Ut(o.doNotFillThesePathsIfTheyContainPlaceholders);let i=null,a=null;if(o.doNotFillThesePathsIfTheyContainPlaceholders.length>0&&!o.doNotFillThesePathsIfTheyContainPlaceholders.every(((t,e)=>!!Qt(t)||(i=t,a=e,!1))))throw new Error(`object-fill-missing-keys: [THROW_ID_06] opts.doNotFillThesePathsIfTheyContainPlaceholders element with an index number "${a}" is not a string! It's ${Gt(i)}, equal to:\n${JSON.stringify(i,null,4)}`);return Yt(n(t),n(e),o)},t.version="9.0.6",Object.defineProperty(t,"__esModule",{value:!0})}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "object-fill-missing-keys",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.6",
|
|
4
4
|
"description": "Add missing keys into plain objects, according to a reference object",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"add",
|
|
@@ -38,13 +38,12 @@
|
|
|
38
38
|
"types": "types/index.d.ts",
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "rollup -c",
|
|
41
|
-
"
|
|
42
|
-
"
|
|
41
|
+
"build:esbuild": "node '../../scripts/esbuild.js'",
|
|
42
|
+
"build:esbuild:dev": "cross-env MODE=dev node '../../scripts/esbuild.js'",
|
|
43
|
+
"ci_test": "npm run build && npm run format && tap --no-only --reporter=silent",
|
|
43
44
|
"clean_types": "../../scripts/cleanTypes.js",
|
|
44
45
|
"dev": "rollup -c --dev",
|
|
45
46
|
"devunittest": "npm run dev && tap --only -R 'base'",
|
|
46
|
-
"esbuild": "node '../../scripts/esbuild.js'",
|
|
47
|
-
"esbuild_dev": "cross-env MODE=dev node '../../scripts/esbuild.js'",
|
|
48
47
|
"format": "npm run lect && npm run prettier && npm run lint",
|
|
49
48
|
"lect": "lect",
|
|
50
49
|
"lint": "../../node_modules/eslint/bin/eslint.js . --ext .js --ext .ts --fix --config \"../../.eslintrc.json\" --quiet",
|
|
@@ -53,17 +52,14 @@
|
|
|
53
52
|
"republish": "npm publish || :",
|
|
54
53
|
"tap": "tap",
|
|
55
54
|
"pretest": "npm run build",
|
|
56
|
-
"test": "npm run
|
|
55
|
+
"test": "npm run test:ci && npm run perf",
|
|
56
|
+
"test:ci": "npm run unittest && npm run test:examples && npm run format",
|
|
57
57
|
"test:examples": "../../scripts/test-examples.js && npm run lect && npm run prettier",
|
|
58
58
|
"tsc": "tsc",
|
|
59
|
-
"unittest": "tap --no-only --
|
|
59
|
+
"unittest": "tap --no-only --reporter=terse && tsc -p tsconfig.json --noEmit"
|
|
60
60
|
},
|
|
61
61
|
"tap": {
|
|
62
62
|
"check-coverage": false,
|
|
63
|
-
"coverage-report": [
|
|
64
|
-
"json-summary",
|
|
65
|
-
"text"
|
|
66
|
-
],
|
|
67
63
|
"node-arg": [
|
|
68
64
|
"--no-warnings",
|
|
69
65
|
"--experimental-loader",
|
|
@@ -86,12 +82,12 @@
|
|
|
86
82
|
}
|
|
87
83
|
},
|
|
88
84
|
"dependencies": {
|
|
89
|
-
"@babel/runtime": "^7.16.
|
|
90
|
-
"arrayiffy-if-string": "^4.0.
|
|
85
|
+
"@babel/runtime": "^7.16.3",
|
|
86
|
+
"arrayiffy-if-string": "^4.0.6",
|
|
91
87
|
"lodash.clonedeep": "^4.5.0",
|
|
92
88
|
"lodash.isplainobject": "^4.0.6",
|
|
93
|
-
"object-all-values-equal-to": "^3.0.
|
|
94
|
-
"object-merge-advanced": "^13.0.
|
|
89
|
+
"object-all-values-equal-to": "^3.0.6",
|
|
90
|
+
"object-merge-advanced": "^13.0.6"
|
|
95
91
|
},
|
|
96
92
|
"devDependencies": {
|
|
97
93
|
"@babel/cli": "^7.16.0",
|
|
@@ -102,8 +98,8 @@
|
|
|
102
98
|
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.0",
|
|
103
99
|
"@babel/plugin-proposal-object-rest-spread": "^7.16.0",
|
|
104
100
|
"@babel/plugin-proposal-optional-chaining": "^7.16.0",
|
|
105
|
-
"@babel/plugin-transform-runtime": "^7.16.
|
|
106
|
-
"@babel/preset-env": "^7.16.
|
|
101
|
+
"@babel/plugin-transform-runtime": "^7.16.4",
|
|
102
|
+
"@babel/preset-env": "^7.16.4",
|
|
107
103
|
"@babel/preset-typescript": "^7.16.0",
|
|
108
104
|
"@babel/register": "^7.16.0",
|
|
109
105
|
"@istanbuljs/esm-loader-hook": "^0.1.2",
|
|
@@ -115,25 +111,25 @@
|
|
|
115
111
|
"@rollup/plugin-typescript": "^8.3.0",
|
|
116
112
|
"@types/lodash.clonedeep": "^4.5.6",
|
|
117
113
|
"@types/lodash.isplainobject": "^4.0.6",
|
|
118
|
-
"@types/node": "^16.11.
|
|
114
|
+
"@types/node": "^16.11.9",
|
|
119
115
|
"@types/tap": "^15.0.5",
|
|
120
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
121
|
-
"@typescript-eslint/parser": "^5.
|
|
116
|
+
"@typescript-eslint/eslint-plugin": "^5.4.0",
|
|
117
|
+
"@typescript-eslint/parser": "^5.4.0",
|
|
122
118
|
"core-js": "^3.19.1",
|
|
123
119
|
"cross-env": "^7.0.3",
|
|
124
|
-
"eslint": "^8.
|
|
125
|
-
"lect": "^0.18.
|
|
126
|
-
"rollup": "^2.
|
|
120
|
+
"eslint": "^8.3.0",
|
|
121
|
+
"lect": "^0.18.6",
|
|
122
|
+
"rollup": "^2.60.0",
|
|
127
123
|
"rollup-plugin-ascii": "^0.0.3",
|
|
128
124
|
"rollup-plugin-banner": "^0.2.1",
|
|
129
125
|
"rollup-plugin-cleanup": "^3.2.1",
|
|
130
126
|
"rollup-plugin-dts": "^4.0.1",
|
|
131
127
|
"rollup-plugin-terser": "^7.0.2",
|
|
132
|
-
"tap": "^15.
|
|
128
|
+
"tap": "^15.1.2",
|
|
133
129
|
"tslib": "^2.3.1",
|
|
134
|
-
"typescript": "^4.
|
|
130
|
+
"typescript": "^4.5.2"
|
|
135
131
|
},
|
|
136
132
|
"engines": {
|
|
137
|
-
"node": ">=
|
|
133
|
+
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
|
|
138
134
|
}
|
|
139
135
|
}
|