@optique/core 1.0.0-dev.1720 → 1.0.0-dev.1722

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.
@@ -4166,7 +4166,7 @@ function conditional(discriminator, branches, defaultBranch, options) {
4166
4166
  if (!defaultResult.success && defaultResult.consumed > 0) return defaultResult;
4167
4167
  if (defaultResult.success && defaultResult.consumed.length === 0 && speculationContext.buffer.length === 0) deferredBranchState = getAnnotatedChildState(state, defaultResult.next.state, defaultBranch);
4168
4168
  }
4169
- if (speculativeError != null && !ambiguous) return speculativeError;
4169
+ if (speculativeError != null && !ambiguous && !provisionalAmbiguous) return speculativeError;
4170
4170
  const annotatedDiscriminatorState$1 = getAnnotatedChildState(state, discriminatorResult.next.state, discriminator);
4171
4171
  return {
4172
4172
  success: true,
@@ -4166,7 +4166,7 @@ function conditional(discriminator, branches, defaultBranch, options) {
4166
4166
  if (!defaultResult.success && defaultResult.consumed > 0) return defaultResult;
4167
4167
  if (defaultResult.success && defaultResult.consumed.length === 0 && speculationContext.buffer.length === 0) deferredBranchState = getAnnotatedChildState(state, defaultResult.next.state, defaultBranch);
4168
4168
  }
4169
- if (speculativeError != null && !ambiguous) return speculativeError;
4169
+ if (speculativeError != null && !ambiguous && !provisionalAmbiguous) return speculativeError;
4170
4170
  const annotatedDiscriminatorState$1 = getAnnotatedChildState(state, discriminatorResult.next.state, discriminator);
4171
4171
  return {
4172
4172
  success: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/core",
3
- "version": "1.0.0-dev.1720+dd376912",
3
+ "version": "1.0.0-dev.1722+72215deb",
4
4
  "description": "Type-safe combinatorial command-line interface parser",
5
5
  "keywords": [
6
6
  "CLI",