json-renderers-build-table 1.26.2 → 1.32.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/package.json +5 -4
- package/src/index.js +2 -2
- package/src/{v26 → v29}/actions/index.js +25 -19
- package/src/{v26 → v29}/actions/insertOptions/index.js +47 -47
- package/src/{v24 → v29}/actions/insertOptions/instructions/footer.json +22 -22
- package/src/{v26 → v29}/actions/insertOptions/instructions/single.json +62 -62
- package/src/v29/actions/insertSearch/index.js +7 -0
- package/src/v29/actions/insertSearch/instructions/template.json +20 -0
- package/src/{v26 → v29}/actions/insertSerial/index.js +47 -47
- package/src/{v26 → v29}/actions/insertSerial/instructions/footer.json +22 -22
- package/src/{v24 → v29}/actions/insertSerial/instructions/single.json +62 -62
- package/src/v29/builders/simple/index.js +45 -0
- package/src/{v26/builders/simple → v29/builders/simpleSearch}/index.js +40 -40
- package/src/{v25 → v29}/builders/withFooter/index.js +40 -40
- package/src/{v25 → v29}/index.js +21 -21
- package/src/{v25 → v30}/actions/index.js +25 -19
- package/src/{v24 → v30}/actions/insertOptions/index.js +47 -47
- package/src/{v26 → v30}/actions/insertOptions/instructions/footer.json +22 -22
- package/src/{v25 → v30}/actions/insertOptions/instructions/single.json +62 -62
- package/src/v30/actions/insertSearch/index.js +7 -0
- package/src/v30/actions/insertSearch/instructions/template.json +20 -0
- package/src/{v24 → v30}/actions/insertSerial/index.js +47 -47
- package/src/{v24 → v30}/actions/insertSerial/instructions/footer.json +22 -22
- package/src/{v26 → v30}/actions/insertSerial/instructions/single.json +62 -62
- package/src/v30/builders/simple/index.js +45 -0
- package/src/{v25/builders/simple → v30/builders/simpleSearch}/index.js +40 -40
- package/src/{v26 → v30}/builders/withFooter/index.js +40 -40
- package/src/{v26 → v30}/index.js +21 -21
- package/src/{v24 → v30}/singleInstruction/index.js +5 -5
- package/src/v31/actions/index.js +30 -0
- package/src/v31/actions/insertSearch/index.js +7 -0
- package/src/v31/actions/insertSearch/instructions/template.json +20 -0
- package/src/v31/actions/instructionsForOptions.json +44 -0
- package/src/v31/actions/instructionsForSerial.json +44 -0
- package/src/v31/builders/simple/index.js +41 -0
- package/src/v31/builders/simpleSearch/index.js +40 -0
- package/src/v31/builders/withFooter/index.js +40 -0
- package/src/{v22 → v31}/index.js +7 -1
- package/src/{v25 → v31}/singleInstruction/index.js +5 -5
- package/src/v32/actions/index.js +28 -0
- package/src/v32/actions/insertSearch/index.js +7 -0
- package/src/v32/actions/insertSearch/instructions/template.json +20 -0
- package/src/{v24/actions/insertOptions/instructions/single.json → v32/actions/instructionsForOptions.json} +58 -62
- package/src/{v25/actions/insertSerial/instructions/single.json → v32/actions/instructionsForSerial.json} +58 -62
- package/src/v32/builders/simple/index.js +41 -0
- package/src/v32/builders/simple/instructions/single.json +38 -0
- package/src/v32/builders/simpleSearch/index.js +40 -0
- package/src/v32/builders/simpleSearch/instructions/double.json +19 -0
- package/src/v32/builders/simpleSearch/instructions/single.json +38 -0
- package/src/{v23 → v32}/builders/spec.json +4 -0
- package/src/v32/builders/withFooter/index.js +40 -0
- package/src/v32/builders/withFooter/instructions/double.json +19 -0
- package/src/{v23 → v32}/index.js +21 -34
- package/src/{v22 → v32}/singleInstruction/index.js +5 -5
- package/src/v22/builders/simple/index.js +0 -22
- package/src/v22/builders/spec.json +0 -88
- package/src/v22/builders/withFooter/index.js +0 -24
- package/src/v23/builders/simple/index.js +0 -22
- package/src/v23/builders/withFooter/index.js +0 -24
- package/src/v23/builders/withOptions/index.js +0 -51
- package/src/v23/builders/withOptions/instructions/double.json +0 -19
- package/src/v23/builders/withOptions/instructions/postSingle.json +0 -22
- package/src/v23/builders/withOptions/instructions/single.json +0 -78
- package/src/v23/builders/withSerial/index.js +0 -51
- package/src/v23/builders/withSerial/instructions/double.json +0 -19
- package/src/v23/builders/withSerial/instructions/postSingle.json +0 -22
- package/src/v23/builders/withSerial/instructions/single.json +0 -78
- package/src/v23/singleInstruction/index.js +0 -32
- package/src/v24/actions/index.js +0 -5
- package/src/v24/builders/simple/index.js +0 -49
- package/src/v24/builders/withFooter/index.js +0 -49
- package/src/v24/index.js +0 -71
- package/src/v25/actions/insertOptions/index.js +0 -47
- package/src/v25/actions/insertOptions/instructions/footer.json +0 -22
- package/src/v25/actions/insertSerial/index.js +0 -47
- package/src/v25/actions/insertSerial/instructions/footer.json +0 -22
- package/src/v26/builders/bodyOnly/base.json +0 -1
- package/src/v26/builders/bodyOnly/index.js +0 -18
- package/src/v26/builders/bodyOnly/instructions/double.json +0 -18
- package/src/v26/builders/footerOnly/base.json +0 -3
- package/src/v26/builders/footerOnly/index.js +0 -21
- package/src/v26/builders/footerOnly/instructions/single.json +0 -19
- package/src/v26/builders/headerOnly/index.js +0 -18
- package/src/v26/builders/withFooter/base.json +0 -53
- package/src/v26/builders/withFooter/instructions/single.json +0 -56
- package/src/v26/doubleInstruction/index.js +0 -21
- package/src/v26/guards/index.js +0 -10
- package/src/v26/guards/references/func/index.js +0 -8
- package/src/v26/guards/references/index.js +0 -9
- package/src/v26/guards/references/templateKey/index.js +0 -8
- package/src/v26/guards/structure/destinationPath/index.js +0 -8
- package/src/v26/guards/structure/func/index.js +0 -8
- package/src/v26/guards/structure/index.js +0 -15
- package/src/v26/guards/structure/sourcePath/index.js +0 -8
- package/src/v26/guards/structure/templateKey/index.js +0 -9
- package/src/v26/writePath/index.js +0 -62
- /package/src/{v22 → v29}/builders/bodyOnly/base.json +0 -0
- /package/src/{v22 → v29}/builders/bodyOnly/index.js +0 -0
- /package/src/{v22 → v29}/builders/bodyOnly/instructions/double.json +0 -0
- /package/src/{v22 → v29}/builders/footerOnly/base.json +0 -0
- /package/src/{v22 → v29}/builders/footerOnly/index.js +0 -0
- /package/src/{v22 → v29}/builders/footerOnly/instructions/single.json +0 -0
- /package/src/{v22 → v29}/builders/headerOnly/base.json +0 -0
- /package/src/{v22 → v29}/builders/headerOnly/index.js +0 -0
- /package/src/{v22 → v29}/builders/headerOnly/instructions/single.json +0 -0
- /package/src/{v22 → v29}/builders/simple/base.json +0 -0
- /package/src/{v22 → v29}/builders/simple/instructions/double.json +0 -0
- /package/src/{v22 → v29}/builders/simple/instructions/single.json +0 -0
- /package/src/{v22/builders/withFooter → v29/builders/simpleSearch}/base.json +0 -0
- /package/src/{v22/builders/withFooter → v29/builders/simpleSearch}/instructions/double.json +0 -0
- /package/src/{v23/builders/headerOnly → v29/builders/simpleSearch}/instructions/single.json +0 -0
- /package/src/{v24 → v29}/builders/spec.json +0 -0
- /package/src/{v23/builders/headerOnly → v29/builders/withFooter}/base.json +0 -0
- /package/src/{v23/builders/simple → v29/builders/withFooter}/instructions/double.json +0 -0
- /package/src/{v22 → v29}/builders/withFooter/instructions/single.json +0 -0
- /package/src/{v22 → v29}/doubleInstruction/index.js +0 -0
- /package/src/{v22 → v29}/guards/index.js +0 -0
- /package/src/{v22 → v29}/guards/references/func/index.js +0 -0
- /package/src/{v22 → v29}/guards/references/index.js +0 -0
- /package/src/{v22 → v29}/guards/references/templateKey/index.js +0 -0
- /package/src/{v22 → v29}/guards/structure/destinationPath/index.js +0 -0
- /package/src/{v22 → v29}/guards/structure/func/index.js +0 -0
- /package/src/{v22 → v29}/guards/structure/index.js +0 -0
- /package/src/{v22 → v29}/guards/structure/sourcePath/index.js +0 -0
- /package/src/{v22 → v29}/guards/structure/templateKey/index.js +0 -0
- /package/src/{v26 → v29}/singleInstruction/index.js +0 -0
- /package/src/{v22 → v29}/writePath/index.js +0 -0
- /package/src/{v23 → v30}/builders/bodyOnly/base.json +0 -0
- /package/src/{v23 → v30}/builders/bodyOnly/index.js +0 -0
- /package/src/{v23 → v30}/builders/bodyOnly/instructions/double.json +0 -0
- /package/src/{v23 → v30}/builders/footerOnly/base.json +0 -0
- /package/src/{v23 → v30}/builders/footerOnly/index.js +0 -0
- /package/src/{v23 → v30}/builders/footerOnly/instructions/single.json +0 -0
- /package/src/{v23/builders/simple → v30/builders/headerOnly}/base.json +0 -0
- /package/src/{v23 → v30}/builders/headerOnly/index.js +0 -0
- /package/src/{v23/builders/simple → v30/builders/headerOnly}/instructions/single.json +0 -0
- /package/src/{v23/builders/withFooter → v30/builders/simple}/base.json +0 -0
- /package/src/{v23/builders/withFooter → v30/builders/simple}/instructions/double.json +0 -0
- /package/src/{v24/builders/headerOnly → v30/builders/simple}/instructions/single.json +0 -0
- /package/src/{v23/builders/withOptions → v30/builders/simpleSearch}/base.json +0 -0
- /package/src/{v24/builders/simple → v30/builders/simpleSearch}/instructions/double.json +0 -0
- /package/src/{v24/builders/simple → v30/builders/simpleSearch}/instructions/single.json +0 -0
- /package/src/{v25 → v30}/builders/spec.json +0 -0
- /package/src/{v23/builders/withSerial → v30/builders/withFooter}/base.json +0 -0
- /package/src/{v24 → v30}/builders/withFooter/instructions/double.json +0 -0
- /package/src/{v23 → v30}/builders/withFooter/instructions/single.json +0 -0
- /package/src/{v23 → v30}/doubleInstruction/index.js +0 -0
- /package/src/{v23 → v30}/guards/index.js +0 -0
- /package/src/{v23 → v30}/guards/references/func/index.js +0 -0
- /package/src/{v23 → v30}/guards/references/index.js +0 -0
- /package/src/{v23 → v30}/guards/references/templateKey/index.js +0 -0
- /package/src/{v23 → v30}/guards/structure/destinationPath/index.js +0 -0
- /package/src/{v23 → v30}/guards/structure/func/index.js +0 -0
- /package/src/{v23 → v30}/guards/structure/index.js +0 -0
- /package/src/{v23 → v30}/guards/structure/sourcePath/index.js +0 -0
- /package/src/{v23 → v30}/guards/structure/templateKey/index.js +0 -0
- /package/src/{v23 → v30}/writePath/index.js +0 -0
- /package/src/{v24 → v31}/builders/bodyOnly/base.json +0 -0
- /package/src/{v24 → v31}/builders/bodyOnly/index.js +0 -0
- /package/src/{v24 → v31}/builders/bodyOnly/instructions/double.json +0 -0
- /package/src/{v24 → v31}/builders/footerOnly/base.json +0 -0
- /package/src/{v24 → v31}/builders/footerOnly/index.js +0 -0
- /package/src/{v24 → v31}/builders/footerOnly/instructions/single.json +0 -0
- /package/src/{v24 → v31}/builders/headerOnly/base.json +0 -0
- /package/src/{v24 → v31}/builders/headerOnly/index.js +0 -0
- /package/src/{v25 → v31}/builders/headerOnly/instructions/single.json +0 -0
- /package/src/{v24 → v31}/builders/simple/base.json +0 -0
- /package/src/{v25 → v31}/builders/simple/instructions/double.json +0 -0
- /package/src/{v25 → v31}/builders/simple/instructions/single.json +0 -0
- /package/src/{v24/builders/withFooter → v31/builders/simpleSearch}/base.json +0 -0
- /package/src/{v25/builders/withFooter → v31/builders/simpleSearch}/instructions/double.json +0 -0
- /package/src/{v26/builders/headerOnly → v31/builders/simpleSearch}/instructions/single.json +0 -0
- /package/src/{v26 → v31}/builders/spec.json +0 -0
- /package/src/{v25/builders/headerOnly → v31/builders/withFooter}/base.json +0 -0
- /package/src/{v26/builders/simple → v31/builders/withFooter}/instructions/double.json +0 -0
- /package/src/{v24 → v31}/builders/withFooter/instructions/single.json +0 -0
- /package/src/{v24 → v31}/doubleInstruction/index.js +0 -0
- /package/src/{v24 → v31}/guards/index.js +0 -0
- /package/src/{v24 → v31}/guards/references/func/index.js +0 -0
- /package/src/{v24 → v31}/guards/references/index.js +0 -0
- /package/src/{v24 → v31}/guards/references/templateKey/index.js +0 -0
- /package/src/{v24 → v31}/guards/structure/destinationPath/index.js +0 -0
- /package/src/{v24 → v31}/guards/structure/func/index.js +0 -0
- /package/src/{v24 → v31}/guards/structure/index.js +0 -0
- /package/src/{v24 → v31}/guards/structure/sourcePath/index.js +0 -0
- /package/src/{v24 → v31}/guards/structure/templateKey/index.js +0 -0
- /package/src/{v24 → v31}/writePath/index.js +0 -0
- /package/src/{v25 → v32}/builders/bodyOnly/base.json +0 -0
- /package/src/{v25 → v32}/builders/bodyOnly/index.js +0 -0
- /package/src/{v25 → v32}/builders/bodyOnly/instructions/double.json +0 -0
- /package/src/{v25 → v32}/builders/footerOnly/base.json +0 -0
- /package/src/{v25 → v32}/builders/footerOnly/index.js +0 -0
- /package/src/{v25 → v32}/builders/footerOnly/instructions/single.json +0 -0
- /package/src/{v25/builders/simple → v32/builders/headerOnly}/base.json +0 -0
- /package/src/{v25 → v32}/builders/headerOnly/index.js +0 -0
- /package/src/{v26/builders/simple → v32/builders/headerOnly}/instructions/single.json +0 -0
- /package/src/{v25/builders/withFooter → v32/builders/simple}/base.json +0 -0
- /package/src/{v26/builders/withFooter → v32/builders/simple}/instructions/double.json +0 -0
- /package/src/{v26/builders/headerOnly → v32/builders/simpleSearch}/base.json +0 -0
- /package/src/{v26/builders/simple → v32/builders/withFooter}/base.json +0 -0
- /package/src/{v25 → v32}/builders/withFooter/instructions/single.json +0 -0
- /package/src/{v25 → v32}/doubleInstruction/index.js +0 -0
- /package/src/{v25 → v32}/guards/index.js +0 -0
- /package/src/{v25 → v32}/guards/references/func/index.js +0 -0
- /package/src/{v25 → v32}/guards/references/index.js +0 -0
- /package/src/{v25 → v32}/guards/references/templateKey/index.js +0 -0
- /package/src/{v25 → v32}/guards/structure/destinationPath/index.js +0 -0
- /package/src/{v25 → v32}/guards/structure/func/index.js +0 -0
- /package/src/{v25 → v32}/guards/structure/index.js +0 -0
- /package/src/{v25 → v32}/guards/structure/sourcePath/index.js +0 -0
- /package/src/{v25 → v32}/guards/structure/templateKey/index.js +0 -0
- /package/src/{v25 → v32}/writePath/index.js +0 -0
package/src/v26/guards/index.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import checkStructure from "./structure/index.js";
|
|
2
|
-
import checkReferences from "./references/index.js";
|
|
3
|
-
|
|
4
|
-
const checkInstruction = (instruction, functions, spec, showLog, returnLog) => {
|
|
5
|
-
const structurePassed = checkStructure(instruction, showLog, returnLog);
|
|
6
|
-
if (!structurePassed) return false;
|
|
7
|
-
return checkReferences(instruction, functions, spec, showLog, returnLog);
|
|
8
|
-
};
|
|
9
|
-
export { checkStructure, checkReferences, checkInstruction };
|
|
10
|
-
export default checkInstruction;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
const checkFunctionReference = (instruction, functions, showLog, returnLog) => {
|
|
2
|
-
const passed = typeof functions[instruction.func] === "function";
|
|
3
|
-
const message = `references/func (${instruction.func}): ${passed ? "passed" : "failed"}`;
|
|
4
|
-
returnLog.push(message);
|
|
5
|
-
if (showLog) console.log(message);
|
|
6
|
-
return passed;
|
|
7
|
-
};
|
|
8
|
-
export default checkFunctionReference;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import checkFunctionReference from "./func/index.js";
|
|
2
|
-
import checkSpecReference from "./templateKey/index.js";
|
|
3
|
-
|
|
4
|
-
const checkReferences = (instruction, functions, spec, showLog, returnLog) => {
|
|
5
|
-
const functionPassed = checkFunctionReference(instruction, functions, showLog, returnLog);
|
|
6
|
-
const specPassed = checkSpecReference(instruction, spec, showLog, returnLog);
|
|
7
|
-
return functionPassed && specPassed;
|
|
8
|
-
};
|
|
9
|
-
export default checkReferences;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
const checkSpecReference = (instruction, spec, showLog, returnLog) => {
|
|
2
|
-
const passed = instruction.templateKey === undefined || Object.hasOwn(spec, instruction.templateKey);
|
|
3
|
-
const message = `references/templateKey${instruction.templateKey === undefined ? " (not used)" : ` (${instruction.templateKey})`}: ${passed ? "passed" : "failed"}`;
|
|
4
|
-
returnLog.push(message);
|
|
5
|
-
if (showLog) console.log(message);
|
|
6
|
-
return passed;
|
|
7
|
-
};
|
|
8
|
-
export default checkSpecReference;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
const checkDestinationPath = (instruction, showLog, returnLog) => {
|
|
2
|
-
const passed = Boolean(instruction.destinationPath?.fileName && Array.isArray(instruction.destinationPath?.filePath));
|
|
3
|
-
const message = `structure/destinationPath: ${passed ? "passed" : "failed"}`;
|
|
4
|
-
returnLog.push(message);
|
|
5
|
-
if (showLog) console.log(message);
|
|
6
|
-
return passed;
|
|
7
|
-
};
|
|
8
|
-
export default checkDestinationPath;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
const checkFunc = (instruction, showLog, returnLog) => {
|
|
2
|
-
const passed = typeof instruction.func === "string" && instruction.func.length > 0;
|
|
3
|
-
const message = `structure/func: ${passed ? "passed" : "failed"}`;
|
|
4
|
-
returnLog.push(message);
|
|
5
|
-
if (showLog) console.log(message);
|
|
6
|
-
return passed;
|
|
7
|
-
};
|
|
8
|
-
export default checkFunc;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import checkSourcePath from "./sourcePath/index.js";
|
|
2
|
-
import checkDestinationPath from "./destinationPath/index.js";
|
|
3
|
-
import checkTemplateKey from "./templateKey/index.js";
|
|
4
|
-
import checkFunc from "./func/index.js";
|
|
5
|
-
|
|
6
|
-
const checkStructure = (instruction, showLog, returnLog) => {
|
|
7
|
-
const results = [
|
|
8
|
-
checkSourcePath(instruction, showLog, returnLog),
|
|
9
|
-
checkDestinationPath(instruction, showLog, returnLog),
|
|
10
|
-
checkTemplateKey(instruction, showLog, returnLog),
|
|
11
|
-
checkFunc(instruction, showLog, returnLog)
|
|
12
|
-
];
|
|
13
|
-
return results.every(Boolean);
|
|
14
|
-
};
|
|
15
|
-
export default checkStructure;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
const checkSourcePath = (instruction, showLog, returnLog) => {
|
|
2
|
-
const passed = Boolean(instruction.sourcePath?.fileName && Array.isArray(instruction.sourcePath?.filePath));
|
|
3
|
-
const message = `structure/sourcePath: ${passed ? "passed" : "failed"}`;
|
|
4
|
-
returnLog.push(message);
|
|
5
|
-
if (showLog) console.log(message);
|
|
6
|
-
return passed;
|
|
7
|
-
};
|
|
8
|
-
export default checkSourcePath;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
const checkTemplateKey = (instruction, showLog, returnLog) => {
|
|
2
|
-
const passed = instruction.templateKey === undefined ||
|
|
3
|
-
(typeof instruction.templateKey === "string" && instruction.templateKey.length > 0);
|
|
4
|
-
const message = `structure/templateKey: ${passed ? "passed" : "failed"}`;
|
|
5
|
-
returnLog.push(message);
|
|
6
|
-
if (showLog) console.log(message);
|
|
7
|
-
return passed;
|
|
8
|
-
};
|
|
9
|
-
export default checkTemplateKey;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { findByRole } from "json-transformer-funcs";
|
|
2
|
-
|
|
3
|
-
const toArray = value => Array.isArray(value) ? value : [value];
|
|
4
|
-
|
|
5
|
-
const set = (parent, key, value) => {
|
|
6
|
-
parent[key] = value;
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
const push = (parent, key, value) => {
|
|
10
|
-
parent[key].push(...toArray(value));
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
const unshift = (parent, key, value) => {
|
|
14
|
-
parent[key].unshift(...toArray(value));
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
const pushToRows = (parent, key, value) => {
|
|
18
|
-
parent[key].forEach(row => {
|
|
19
|
-
row.children.push(...structuredClone(toArray(value)));
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
const unshiftToRows = (parent, key, value) => {
|
|
24
|
-
parent[key].forEach(row => {
|
|
25
|
-
row.children.unshift(...structuredClone(toArray(value)));
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
const unshiftSerialToRows = (parent, key, value) => {
|
|
30
|
-
parent[key].forEach((row, rowIndex) => {
|
|
31
|
-
const item = structuredClone(value);
|
|
32
|
-
item.textContent = rowIndex + 1;
|
|
33
|
-
row.children.unshift(item);
|
|
34
|
-
});
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
const actions = {
|
|
38
|
-
set,
|
|
39
|
-
push,
|
|
40
|
-
unshift,
|
|
41
|
-
pushToRows,
|
|
42
|
-
unshiftToRows,
|
|
43
|
-
unshiftSerialToRows
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
const resolveParent = (registry, path) => {
|
|
47
|
-
const root = path.dataRole
|
|
48
|
-
? findByRole(registry[path.fileName], path.dataRole)
|
|
49
|
-
: registry[path.fileName];
|
|
50
|
-
const keys = [...(path.filePath ?? [])];
|
|
51
|
-
const key = keys.pop();
|
|
52
|
-
const parent = keys.reduce((current, nextKey) => current[nextKey], root);
|
|
53
|
-
return { parent, key };
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
const writePath = (registry, path, value) => {
|
|
57
|
-
const { parent, key } = resolveParent(registry, path);
|
|
58
|
-
const action = actions[path.action] || set;
|
|
59
|
-
action(parent, key, value);
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
export default writePath;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|