@optique/core 1.3.0-dev.2401 → 1.3.0-dev.2403
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.
|
@@ -1325,8 +1325,9 @@ function buildRuntimeNodesFromPairs(pairs, state, parentPath) {
|
|
|
1325
1325
|
const nodes = [];
|
|
1326
1326
|
for (const [field, parser] of pairs) {
|
|
1327
1327
|
const fieldState = Object.hasOwn(state, field) ? state[field] : void 0;
|
|
1328
|
-
const
|
|
1329
|
-
const
|
|
1328
|
+
const isDerived = parser.dependencyMetadata?.derived != null;
|
|
1329
|
+
const rawInput = isDerived ? extractRawInputFromState(fieldState) : void 0;
|
|
1330
|
+
const defaultDependencyValues = isDerived ? getDefaultDependencySnapshot(fieldState) : void 0;
|
|
1330
1331
|
nodes.push({
|
|
1331
1332
|
path: [...prefix, field],
|
|
1332
1333
|
parser,
|
|
@@ -1356,8 +1357,9 @@ function buildRuntimeNodesFromArray(parsers, stateArray, parentPath) {
|
|
|
1356
1357
|
for (let i = 0; i < parsers.length; i++) {
|
|
1357
1358
|
const parser = parsers[i];
|
|
1358
1359
|
const elemState = i < stateArray.length ? stateArray[i] : void 0;
|
|
1359
|
-
const
|
|
1360
|
-
const
|
|
1360
|
+
const isDerived = parser.dependencyMetadata?.derived != null;
|
|
1361
|
+
const rawInput = isDerived ? extractRawInputFromState(elemState) : void 0;
|
|
1362
|
+
const defaultDependencyValues = isDerived ? getDefaultDependencySnapshot(elemState) : void 0;
|
|
1361
1363
|
nodes.push({
|
|
1362
1364
|
path: [...prefix, i],
|
|
1363
1365
|
parser,
|
|
@@ -1325,8 +1325,9 @@ function buildRuntimeNodesFromPairs(pairs, state, parentPath) {
|
|
|
1325
1325
|
const nodes = [];
|
|
1326
1326
|
for (const [field, parser] of pairs) {
|
|
1327
1327
|
const fieldState = Object.hasOwn(state, field) ? state[field] : void 0;
|
|
1328
|
-
const
|
|
1329
|
-
const
|
|
1328
|
+
const isDerived = parser.dependencyMetadata?.derived != null;
|
|
1329
|
+
const rawInput = isDerived ? extractRawInputFromState(fieldState) : void 0;
|
|
1330
|
+
const defaultDependencyValues = isDerived ? getDefaultDependencySnapshot(fieldState) : void 0;
|
|
1330
1331
|
nodes.push({
|
|
1331
1332
|
path: [...prefix, field],
|
|
1332
1333
|
parser,
|
|
@@ -1356,8 +1357,9 @@ function buildRuntimeNodesFromArray(parsers, stateArray, parentPath) {
|
|
|
1356
1357
|
for (let i = 0; i < parsers.length; i++) {
|
|
1357
1358
|
const parser = parsers[i];
|
|
1358
1359
|
const elemState = i < stateArray.length ? stateArray[i] : void 0;
|
|
1359
|
-
const
|
|
1360
|
-
const
|
|
1360
|
+
const isDerived = parser.dependencyMetadata?.derived != null;
|
|
1361
|
+
const rawInput = isDerived ? extractRawInputFromState(elemState) : void 0;
|
|
1362
|
+
const defaultDependencyValues = isDerived ? getDefaultDependencySnapshot(elemState) : void 0;
|
|
1361
1363
|
nodes.push({
|
|
1362
1364
|
path: [...prefix, i],
|
|
1363
1365
|
parser,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optique/core",
|
|
3
|
-
"version": "1.3.0-dev.
|
|
3
|
+
"version": "1.3.0-dev.2403",
|
|
4
4
|
"description": "Type-safe combinatorial command-line interface parser",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
},
|
|
222
222
|
"sideEffects": false,
|
|
223
223
|
"devDependencies": {
|
|
224
|
-
"@optique/env": "1.3.0-dev.
|
|
224
|
+
"@optique/env": "1.3.0-dev.2403+eb79fb61",
|
|
225
225
|
"@types/node": "^24.0.0",
|
|
226
226
|
"fast-check": "^4.7.0",
|
|
227
227
|
"tsdown": "^0.13.0",
|