@optique/core 1.0.0-dev.1714 → 1.0.0-dev.1716
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 +1 -1
- package/dist/constructs.js +1 -1
- package/package.json +1 -1
package/dist/constructs.cjs
CHANGED
|
@@ -4141,7 +4141,7 @@ function conditional(discriminator, branches, defaultBranch, options) {
|
|
|
4141
4141
|
}
|
|
4142
4142
|
}
|
|
4143
4143
|
let deferredBranchState = state.branchState;
|
|
4144
|
-
if (defaultBranch !== void 0) {
|
|
4144
|
+
if (defaultBranch !== void 0 && !ambiguous && !provisionalAmbiguous) {
|
|
4145
4145
|
const defaultResult = await defaultBranch.parse(withChildContext(speculationContext, "_branch", state.branchState ?? defaultBranch.initialState, defaultBranch, defaultBranch.usage));
|
|
4146
4146
|
if (defaultResult.success && defaultResult.consumed.length > 0) {
|
|
4147
4147
|
const defaultExec = mergeChildExec(discriminatorExec ?? context.exec, defaultResult.next.exec);
|
package/dist/constructs.js
CHANGED
|
@@ -4141,7 +4141,7 @@ function conditional(discriminator, branches, defaultBranch, options) {
|
|
|
4141
4141
|
}
|
|
4142
4142
|
}
|
|
4143
4143
|
let deferredBranchState = state.branchState;
|
|
4144
|
-
if (defaultBranch !== void 0) {
|
|
4144
|
+
if (defaultBranch !== void 0 && !ambiguous && !provisionalAmbiguous) {
|
|
4145
4145
|
const defaultResult = await defaultBranch.parse(withChildContext(speculationContext, "_branch", state.branchState ?? defaultBranch.initialState, defaultBranch, defaultBranch.usage));
|
|
4146
4146
|
if (defaultResult.success && defaultResult.consumed.length > 0) {
|
|
4147
4147
|
const defaultExec = mergeChildExec(discriminatorExec ?? context.exec, defaultResult.next.exec);
|