@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.
@@ -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);
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/core",
3
- "version": "1.0.0-dev.1714+ef964285",
3
+ "version": "1.0.0-dev.1716+22013925",
4
4
  "description": "Type-safe combinatorial command-line interface parser",
5
5
  "keywords": [
6
6
  "CLI",