@jsenv/navi 0.26.24 → 0.26.25

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.
@@ -5450,15 +5450,18 @@ const stateSignal = (defaultValue, options = {}) => {
5450
5450
  }
5451
5451
  return value;
5452
5452
  }
5453
- if (debug) {
5454
- console.debug(`[stateSignal:${signalIdString}] validation failed`, {
5455
- value,
5456
- min,
5457
- max,
5458
- step,
5459
- oneOf,
5460
- hasAutoFix: Boolean(validity.validSuggestion),
5461
- });
5453
+
5454
+ const hasAutoFix = Boolean(validity.validSuggestion);
5455
+ if (hasAutoFix) {
5456
+ if (debug) {
5457
+ console.debug(
5458
+ `[stateSignal:${signalIdString}] validation failed: ${validity.message}`,
5459
+ );
5460
+ }
5461
+ } else {
5462
+ console.warn(
5463
+ `[stateSignal:${signalIdString}] validation failed with no valid suggestion: ${validity.message}`,
5464
+ );
5462
5465
  }
5463
5466
  if (validity.validSuggestion) {
5464
5467
  const validValue = validity.validSuggestion.value;