@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.
- package/dist/jsenv_navi.js +12 -9
- package/dist/jsenv_navi.js.map +3 -3
- package/package.json +1 -1
package/dist/jsenv_navi.js
CHANGED
|
@@ -5450,15 +5450,18 @@ const stateSignal = (defaultValue, options = {}) => {
|
|
|
5450
5450
|
}
|
|
5451
5451
|
return value;
|
|
5452
5452
|
}
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
|
|
5460
|
-
|
|
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;
|