@continuous-excellence/ze-great-dashboard-aws 0.31.42 → 0.31.44
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/lambda.mjs +13 -8
- package/package.json +1 -1
package/dist/lambda.mjs
CHANGED
|
@@ -71825,16 +71825,21 @@ var _getQueryParam = (url2, key, multiple) => {
|
|
|
71825
71825
|
if (hashIndex !== -1) url2 = url2.slice(0, hashIndex);
|
|
71826
71826
|
let encoded;
|
|
71827
71827
|
if (!multiple && key && key.indexOf("%") === -1 && key.indexOf("+") === -1) {
|
|
71828
|
-
|
|
71828
|
+
const queryIndex = url2.indexOf("?", 8);
|
|
71829
|
+
let keyIndex2 = queryIndex;
|
|
71829
71830
|
if (keyIndex2 === -1) return;
|
|
71830
71831
|
if (!url2.startsWith(key, keyIndex2 + 1)) keyIndex2 = url2.indexOf(`&${key}`, keyIndex2 + 1);
|
|
71831
71832
|
while (keyIndex2 !== -1) {
|
|
71832
71833
|
const trailingKeyCode = url2.charCodeAt(keyIndex2 + key.length + 1);
|
|
71833
|
-
if (trailingKeyCode === 61) {
|
|
71834
|
-
|
|
71835
|
-
|
|
71836
|
-
|
|
71837
|
-
|
|
71834
|
+
if (trailingKeyCode === 61 || trailingKeyCode === 38 || isNaN(trailingKeyCode)) {
|
|
71835
|
+
if (keyIndex2 > queryIndex && /(?:^|&)[^=&]*[%+]/.test(url2.slice(queryIndex + 1, keyIndex2))) break;
|
|
71836
|
+
if (trailingKeyCode === 61) {
|
|
71837
|
+
const valueIndex = keyIndex2 + key.length + 2;
|
|
71838
|
+
const endIndex = url2.indexOf("&", valueIndex);
|
|
71839
|
+
return _decodeURI(url2.slice(valueIndex, endIndex === -1 ? void 0 : endIndex));
|
|
71840
|
+
}
|
|
71841
|
+
return "";
|
|
71842
|
+
}
|
|
71838
71843
|
keyIndex2 = url2.indexOf(`&${key}`, keyIndex2 + 1);
|
|
71839
71844
|
}
|
|
71840
71845
|
encoded = /[%+]/.test(url2);
|
|
@@ -73340,7 +73345,7 @@ var Node3 = class Node4 {
|
|
|
73340
73345
|
const restPathString = path.slice(partOffsets[i5]);
|
|
73341
73346
|
const m3 = matcher.exec(restPathString);
|
|
73342
73347
|
if (m3) {
|
|
73343
|
-
params[name] = m3[0];
|
|
73348
|
+
if (!Object.hasOwn(params, name)) params[name] = m3[0];
|
|
73344
73349
|
this.#pushHandlerSets(handlerSets, child, method, node2.#params, params);
|
|
73345
73350
|
if (m3[0].length === restPathString.length && child.#children["*"]) this.#pushHandlerSets(handlerSets, child.#children["*"], method, node2.#params, params);
|
|
73346
73351
|
for (const _ in child.#children) {
|
|
@@ -73353,7 +73358,7 @@ var Node3 = class Node4 {
|
|
|
73353
73358
|
}
|
|
73354
73359
|
}
|
|
73355
73360
|
if (matcher === true || matcher.test(part)) {
|
|
73356
|
-
params[name] = part;
|
|
73361
|
+
if (!Object.hasOwn(params, name)) params[name] = part;
|
|
73357
73362
|
if (isLast) {
|
|
73358
73363
|
this.#pushHandlerSets(handlerSets, child, method, params, node2.#params);
|
|
73359
73364
|
if (child.#children["*"]) this.#pushHandlerSets(handlerSets, child.#children["*"], method, params, node2.#params);
|
package/package.json
CHANGED