@optique/core 1.0.0-dev.1703 → 1.0.0-dev.1707
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/constructs.cjs +20 -4
- package/dist/constructs.js +20 -4
- package/package.json +1 -1
package/dist/constructs.cjs
CHANGED
|
@@ -3814,6 +3814,11 @@ function conditional(discriminator, branches, defaultBranch, options) {
|
|
|
3814
3814
|
return branchParseResult;
|
|
3815
3815
|
}
|
|
3816
3816
|
}
|
|
3817
|
+
if (discriminatorResult.consumed.length > 0) return {
|
|
3818
|
+
success: false,
|
|
3819
|
+
consumed: discriminatorResult.consumed.length,
|
|
3820
|
+
error: completionResult.success ? getNoMatchError$1() : completionResult.error
|
|
3821
|
+
};
|
|
3817
3822
|
}
|
|
3818
3823
|
const discriminatorConsumed = discriminatorResult.success ? discriminatorResult.consumed.length : discriminatorResult.consumed;
|
|
3819
3824
|
if (syncDefaultBranch !== void 0) {
|
|
@@ -3985,6 +3990,11 @@ function conditional(discriminator, branches, defaultBranch, options) {
|
|
|
3985
3990
|
return branchParseResult;
|
|
3986
3991
|
}
|
|
3987
3992
|
}
|
|
3993
|
+
if (discriminatorResult.consumed.length > 0) return {
|
|
3994
|
+
success: false,
|
|
3995
|
+
consumed: discriminatorResult.consumed.length,
|
|
3996
|
+
error: completionResult.success ? getNoMatchError$1() : completionResult.error
|
|
3997
|
+
};
|
|
3988
3998
|
}
|
|
3989
3999
|
const discriminatorConsumed = discriminatorResult.success ? discriminatorResult.consumed.length : discriminatorResult.consumed;
|
|
3990
4000
|
if (defaultBranch !== void 0) {
|
|
@@ -4030,10 +4040,13 @@ function conditional(discriminator, branches, defaultBranch, options) {
|
|
|
4030
4040
|
const deferredValue = deferredDiscriminatorResult.value;
|
|
4031
4041
|
const deferredBranch = syncBranches[deferredValue];
|
|
4032
4042
|
if (deferredBranch) {
|
|
4043
|
+
const branchExec = withChildExecPath(exec, "_branch");
|
|
4033
4044
|
const emptyCtx = {
|
|
4034
4045
|
buffer: [],
|
|
4035
4046
|
optionsTerminated: false,
|
|
4036
|
-
usage: []
|
|
4047
|
+
usage: [],
|
|
4048
|
+
exec: branchExec,
|
|
4049
|
+
dependencyRegistry: exec?.dependencyRegistry
|
|
4037
4050
|
};
|
|
4038
4051
|
const annotatedInitial = getAnnotatedChildState(state, deferredBranch.initialState, deferredBranch);
|
|
4039
4052
|
const replayResult = deferredBranch.parse({
|
|
@@ -4042,7 +4055,7 @@ function conditional(discriminator, branches, defaultBranch, options) {
|
|
|
4042
4055
|
});
|
|
4043
4056
|
const branchState = replayResult.success ? replayResult.next.state : annotatedInitial;
|
|
4044
4057
|
const annotatedBranchState = getAnnotatedChildState(state, branchState, deferredBranch);
|
|
4045
|
-
const branchResult$1 = unwrapCompleteResult(deferredBranch.complete(annotatedBranchState,
|
|
4058
|
+
const branchResult$1 = unwrapCompleteResult(deferredBranch.complete(annotatedBranchState, branchExec));
|
|
4046
4059
|
if (branchResult$1.success) return {
|
|
4047
4060
|
success: true,
|
|
4048
4061
|
value: [deferredValue, branchResult$1.value],
|
|
@@ -4136,10 +4149,13 @@ function conditional(discriminator, branches, defaultBranch, options) {
|
|
|
4136
4149
|
const deferredValue = deferredDiscriminatorResult.value;
|
|
4137
4150
|
const deferredBranch = branches[deferredValue];
|
|
4138
4151
|
if (deferredBranch) {
|
|
4152
|
+
const branchExec = withChildExecPath(exec, "_branch");
|
|
4139
4153
|
const emptyCtx = {
|
|
4140
4154
|
buffer: [],
|
|
4141
4155
|
optionsTerminated: false,
|
|
4142
|
-
usage: []
|
|
4156
|
+
usage: [],
|
|
4157
|
+
exec: branchExec,
|
|
4158
|
+
dependencyRegistry: exec?.dependencyRegistry
|
|
4143
4159
|
};
|
|
4144
4160
|
const annotatedInitial = getAnnotatedChildState(state, deferredBranch.initialState, deferredBranch);
|
|
4145
4161
|
const replayResult = await deferredBranch.parse({
|
|
@@ -4148,7 +4164,7 @@ function conditional(discriminator, branches, defaultBranch, options) {
|
|
|
4148
4164
|
});
|
|
4149
4165
|
const branchState = replayResult.success ? replayResult.next.state : annotatedInitial;
|
|
4150
4166
|
const annotatedBranchState = getAnnotatedChildState(state, branchState, deferredBranch);
|
|
4151
|
-
const branchResult$1 = unwrapCompleteResult(await deferredBranch.complete(annotatedBranchState,
|
|
4167
|
+
const branchResult$1 = unwrapCompleteResult(await deferredBranch.complete(annotatedBranchState, branchExec));
|
|
4152
4168
|
if (branchResult$1.success) return {
|
|
4153
4169
|
success: true,
|
|
4154
4170
|
value: [deferredValue, branchResult$1.value],
|
package/dist/constructs.js
CHANGED
|
@@ -3814,6 +3814,11 @@ function conditional(discriminator, branches, defaultBranch, options) {
|
|
|
3814
3814
|
return branchParseResult;
|
|
3815
3815
|
}
|
|
3816
3816
|
}
|
|
3817
|
+
if (discriminatorResult.consumed.length > 0) return {
|
|
3818
|
+
success: false,
|
|
3819
|
+
consumed: discriminatorResult.consumed.length,
|
|
3820
|
+
error: completionResult.success ? getNoMatchError$1() : completionResult.error
|
|
3821
|
+
};
|
|
3817
3822
|
}
|
|
3818
3823
|
const discriminatorConsumed = discriminatorResult.success ? discriminatorResult.consumed.length : discriminatorResult.consumed;
|
|
3819
3824
|
if (syncDefaultBranch !== void 0) {
|
|
@@ -3985,6 +3990,11 @@ function conditional(discriminator, branches, defaultBranch, options) {
|
|
|
3985
3990
|
return branchParseResult;
|
|
3986
3991
|
}
|
|
3987
3992
|
}
|
|
3993
|
+
if (discriminatorResult.consumed.length > 0) return {
|
|
3994
|
+
success: false,
|
|
3995
|
+
consumed: discriminatorResult.consumed.length,
|
|
3996
|
+
error: completionResult.success ? getNoMatchError$1() : completionResult.error
|
|
3997
|
+
};
|
|
3988
3998
|
}
|
|
3989
3999
|
const discriminatorConsumed = discriminatorResult.success ? discriminatorResult.consumed.length : discriminatorResult.consumed;
|
|
3990
4000
|
if (defaultBranch !== void 0) {
|
|
@@ -4030,10 +4040,13 @@ function conditional(discriminator, branches, defaultBranch, options) {
|
|
|
4030
4040
|
const deferredValue = deferredDiscriminatorResult.value;
|
|
4031
4041
|
const deferredBranch = syncBranches[deferredValue];
|
|
4032
4042
|
if (deferredBranch) {
|
|
4043
|
+
const branchExec = withChildExecPath(exec, "_branch");
|
|
4033
4044
|
const emptyCtx = {
|
|
4034
4045
|
buffer: [],
|
|
4035
4046
|
optionsTerminated: false,
|
|
4036
|
-
usage: []
|
|
4047
|
+
usage: [],
|
|
4048
|
+
exec: branchExec,
|
|
4049
|
+
dependencyRegistry: exec?.dependencyRegistry
|
|
4037
4050
|
};
|
|
4038
4051
|
const annotatedInitial = getAnnotatedChildState(state, deferredBranch.initialState, deferredBranch);
|
|
4039
4052
|
const replayResult = deferredBranch.parse({
|
|
@@ -4042,7 +4055,7 @@ function conditional(discriminator, branches, defaultBranch, options) {
|
|
|
4042
4055
|
});
|
|
4043
4056
|
const branchState = replayResult.success ? replayResult.next.state : annotatedInitial;
|
|
4044
4057
|
const annotatedBranchState = getAnnotatedChildState(state, branchState, deferredBranch);
|
|
4045
|
-
const branchResult$1 = unwrapCompleteResult(deferredBranch.complete(annotatedBranchState,
|
|
4058
|
+
const branchResult$1 = unwrapCompleteResult(deferredBranch.complete(annotatedBranchState, branchExec));
|
|
4046
4059
|
if (branchResult$1.success) return {
|
|
4047
4060
|
success: true,
|
|
4048
4061
|
value: [deferredValue, branchResult$1.value],
|
|
@@ -4136,10 +4149,13 @@ function conditional(discriminator, branches, defaultBranch, options) {
|
|
|
4136
4149
|
const deferredValue = deferredDiscriminatorResult.value;
|
|
4137
4150
|
const deferredBranch = branches[deferredValue];
|
|
4138
4151
|
if (deferredBranch) {
|
|
4152
|
+
const branchExec = withChildExecPath(exec, "_branch");
|
|
4139
4153
|
const emptyCtx = {
|
|
4140
4154
|
buffer: [],
|
|
4141
4155
|
optionsTerminated: false,
|
|
4142
|
-
usage: []
|
|
4156
|
+
usage: [],
|
|
4157
|
+
exec: branchExec,
|
|
4158
|
+
dependencyRegistry: exec?.dependencyRegistry
|
|
4143
4159
|
};
|
|
4144
4160
|
const annotatedInitial = getAnnotatedChildState(state, deferredBranch.initialState, deferredBranch);
|
|
4145
4161
|
const replayResult = await deferredBranch.parse({
|
|
@@ -4148,7 +4164,7 @@ function conditional(discriminator, branches, defaultBranch, options) {
|
|
|
4148
4164
|
});
|
|
4149
4165
|
const branchState = replayResult.success ? replayResult.next.state : annotatedInitial;
|
|
4150
4166
|
const annotatedBranchState = getAnnotatedChildState(state, branchState, deferredBranch);
|
|
4151
|
-
const branchResult$1 = unwrapCompleteResult(await deferredBranch.complete(annotatedBranchState,
|
|
4167
|
+
const branchResult$1 = unwrapCompleteResult(await deferredBranch.complete(annotatedBranchState, branchExec));
|
|
4152
4168
|
if (branchResult$1.success) return {
|
|
4153
4169
|
success: true,
|
|
4154
4170
|
value: [deferredValue, branchResult$1.value],
|