@jsenv/navi 0.26.27 → 0.26.29
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 +9 -7
- package/dist/jsenv_navi.js.map +3 -3
- package/package.json +2 -2
package/dist/jsenv_navi.js
CHANGED
|
@@ -5323,6 +5323,7 @@ const stateSignal = (defaultValue, options = {}) => {
|
|
|
5323
5323
|
persists = false,
|
|
5324
5324
|
debug,
|
|
5325
5325
|
default: staticFallback,
|
|
5326
|
+
ignoreArrayOrder,
|
|
5326
5327
|
} = options;
|
|
5327
5328
|
|
|
5328
5329
|
// Check if defaultValue is a signal (dynamic default) or static value
|
|
@@ -5415,15 +5416,15 @@ const stateSignal = (defaultValue, options = {}) => {
|
|
|
5415
5416
|
const dynamicValue = dynamicDefaultSignal.peek();
|
|
5416
5417
|
if (dynamicValue === undefined) {
|
|
5417
5418
|
return !compareTwoJsValues(value, staticDefaultValue, {
|
|
5418
|
-
ignoreArrayOrder
|
|
5419
|
+
ignoreArrayOrder,
|
|
5419
5420
|
});
|
|
5420
5421
|
}
|
|
5421
5422
|
return !compareTwoJsValues(value, dynamicValue, {
|
|
5422
|
-
ignoreArrayOrder
|
|
5423
|
+
ignoreArrayOrder,
|
|
5423
5424
|
});
|
|
5424
5425
|
}
|
|
5425
5426
|
return !compareTwoJsValues(value, staticDefaultValue, {
|
|
5426
|
-
ignoreArrayOrder
|
|
5427
|
+
ignoreArrayOrder,
|
|
5427
5428
|
});
|
|
5428
5429
|
};
|
|
5429
5430
|
|
|
@@ -5456,15 +5457,16 @@ const stateSignal = (defaultValue, options = {}) => {
|
|
|
5456
5457
|
const hasAutoFix = Boolean(validity.validSuggestion);
|
|
5457
5458
|
if (hasAutoFix) {
|
|
5458
5459
|
if (debug) {
|
|
5459
|
-
console.debug(
|
|
5460
|
-
|
|
5460
|
+
console.debug(`[stateSignal:${signalIdString}] validation failed: `, {
|
|
5461
|
+
value,
|
|
5462
|
+
validValue: validity.validSuggestion.value,
|
|
5461
5463
|
validity,
|
|
5462
|
-
);
|
|
5464
|
+
});
|
|
5463
5465
|
}
|
|
5464
5466
|
} else {
|
|
5465
5467
|
console.warn(
|
|
5466
5468
|
`[stateSignal:${signalIdString}] validation failed with no valid suggestion: `,
|
|
5467
|
-
validity,
|
|
5469
|
+
{ value, validity },
|
|
5468
5470
|
);
|
|
5469
5471
|
}
|
|
5470
5472
|
if (validity.validSuggestion) {
|