hono 4.11.8 → 4.11.9
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.
|
@@ -208,14 +208,10 @@ const getNextChildren = (node, container, nextChildren, childrenToRemove, callba
|
|
|
208
208
|
});
|
|
209
209
|
};
|
|
210
210
|
const findInsertBefore = (node) => {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
return null;
|
|
214
|
-
}
|
|
215
|
-
if (node.tag !== HONO_PORTAL_ELEMENT && node.e) {
|
|
216
|
-
return node.e;
|
|
217
|
-
}
|
|
211
|
+
while (node && (node.tag === HONO_PORTAL_ELEMENT || !node.e)) {
|
|
212
|
+
node = node.tag === HONO_PORTAL_ELEMENT || !node.vC?.[0] ? node.nN : node.vC[0];
|
|
218
213
|
}
|
|
214
|
+
return node?.e;
|
|
219
215
|
};
|
|
220
216
|
const removeNode = (node) => {
|
|
221
217
|
if (!isNodeString(node)) {
|
|
@@ -313,7 +309,7 @@ const applyNodeObject = (node, container, isNew) => {
|
|
|
313
309
|
}
|
|
314
310
|
}
|
|
315
311
|
if (node.pP) {
|
|
316
|
-
|
|
312
|
+
node.pP = void 0;
|
|
317
313
|
}
|
|
318
314
|
if (callbacks.length) {
|
|
319
315
|
const useLayoutEffectCbs = [];
|
package/dist/cjs/utils/url.js
CHANGED
|
@@ -106,9 +106,11 @@ const getPath = (request) => {
|
|
|
106
106
|
const charCode = url.charCodeAt(i);
|
|
107
107
|
if (charCode === 37) {
|
|
108
108
|
const queryIndex = url.indexOf("?", i);
|
|
109
|
-
const
|
|
109
|
+
const hashIndex = url.indexOf("#", i);
|
|
110
|
+
const end = queryIndex === -1 ? hashIndex === -1 ? void 0 : hashIndex : hashIndex === -1 ? queryIndex : Math.min(queryIndex, hashIndex);
|
|
111
|
+
const path = url.slice(start, end);
|
|
110
112
|
return tryDecodeURI(path.includes("%25") ? path.replace(/%25/g, "%2525") : path);
|
|
111
|
-
} else if (charCode === 63) {
|
|
113
|
+
} else if (charCode === 63 || charCode === 35) {
|
|
112
114
|
break;
|
|
113
115
|
}
|
|
114
116
|
}
|
package/dist/jsx/dom/render.js
CHANGED
|
@@ -184,14 +184,10 @@ var getNextChildren = (node, container, nextChildren, childrenToRemove, callback
|
|
|
184
184
|
});
|
|
185
185
|
};
|
|
186
186
|
var findInsertBefore = (node) => {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
return null;
|
|
190
|
-
}
|
|
191
|
-
if (node.tag !== HONO_PORTAL_ELEMENT && node.e) {
|
|
192
|
-
return node.e;
|
|
193
|
-
}
|
|
187
|
+
while (node && (node.tag === HONO_PORTAL_ELEMENT || !node.e)) {
|
|
188
|
+
node = node.tag === HONO_PORTAL_ELEMENT || !node.vC?.[0] ? node.nN : node.vC[0];
|
|
194
189
|
}
|
|
190
|
+
return node?.e;
|
|
195
191
|
};
|
|
196
192
|
var removeNode = (node) => {
|
|
197
193
|
if (!isNodeString(node)) {
|
|
@@ -289,7 +285,7 @@ var applyNodeObject = (node, container, isNew) => {
|
|
|
289
285
|
}
|
|
290
286
|
}
|
|
291
287
|
if (node.pP) {
|
|
292
|
-
|
|
288
|
+
node.pP = void 0;
|
|
293
289
|
}
|
|
294
290
|
if (callbacks.length) {
|
|
295
291
|
const useLayoutEffectCbs = [];
|
package/dist/utils/url.js
CHANGED
|
@@ -73,9 +73,11 @@ var getPath = (request) => {
|
|
|
73
73
|
const charCode = url.charCodeAt(i);
|
|
74
74
|
if (charCode === 37) {
|
|
75
75
|
const queryIndex = url.indexOf("?", i);
|
|
76
|
-
const
|
|
76
|
+
const hashIndex = url.indexOf("#", i);
|
|
77
|
+
const end = queryIndex === -1 ? hashIndex === -1 ? void 0 : hashIndex : hashIndex === -1 ? queryIndex : Math.min(queryIndex, hashIndex);
|
|
78
|
+
const path = url.slice(start, end);
|
|
77
79
|
return tryDecodeURI(path.includes("%25") ? path.replace(/%25/g, "%2525") : path);
|
|
78
|
-
} else if (charCode === 63) {
|
|
80
|
+
} else if (charCode === 63 || charCode === 35) {
|
|
79
81
|
break;
|
|
80
82
|
}
|
|
81
83
|
}
|