@jsenv/navi 0.16.20 → 0.16.21
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 +7 -1
- package/dist/jsenv_navi.js.map +3 -3
- package/package.json +1 -1
package/dist/jsenv_navi.js
CHANGED
|
@@ -9465,7 +9465,13 @@ const extractSearchParams = (urlObj, connections = []) => {
|
|
|
9465
9465
|
const numberValue = Number(value);
|
|
9466
9466
|
params[key] = isNaN(numberValue) ? value : numberValue;
|
|
9467
9467
|
} else if (signalType === "boolean") {
|
|
9468
|
-
|
|
9468
|
+
// Handle boolean query parameters:
|
|
9469
|
+
// ?walk=true → true
|
|
9470
|
+
// ?walk=1 → true
|
|
9471
|
+
// ?walk → true (parameter present without value)
|
|
9472
|
+
// ?walk=false → false
|
|
9473
|
+
// ?walk=0 → false
|
|
9474
|
+
params[key] = value === "true" || value === "1" || value === "";
|
|
9469
9475
|
} else {
|
|
9470
9476
|
params[key] = value;
|
|
9471
9477
|
}
|