nitropack-nightly 2.11.2-20250305-134511.9f4dffdb → 2.11.2-20250305-141434.67c396ba
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/core/index.mjs +3 -2
- package/dist/meta/index.d.mts +1 -1
- package/dist/meta/index.d.ts +1 -1
- package/dist/meta/index.mjs +1 -1
- package/package.json +1 -1
package/dist/core/index.mjs
CHANGED
|
@@ -2247,6 +2247,7 @@ function createHTTPProxy(defaults = {}) {
|
|
|
2247
2247
|
});
|
|
2248
2248
|
const handleEvent = async (event, opts = {}) => {
|
|
2249
2249
|
try {
|
|
2250
|
+
event._handled = true;
|
|
2250
2251
|
await proxy.web(event.node.req, event.node.res, opts);
|
|
2251
2252
|
} catch (error) {
|
|
2252
2253
|
if (error?.code !== "ECONNRESET") {
|
|
@@ -2280,14 +2281,14 @@ class NodeDevWorker {
|
|
|
2280
2281
|
!this.closed && this.#address && this.#proxy && this.#worker
|
|
2281
2282
|
);
|
|
2282
2283
|
}
|
|
2283
|
-
handleEvent(event) {
|
|
2284
|
+
async handleEvent(event) {
|
|
2284
2285
|
if (!this.#address || !this.#proxy) {
|
|
2285
2286
|
throw createError({
|
|
2286
2287
|
status: 503,
|
|
2287
2288
|
statusText: "Dev worker is unavailable"
|
|
2288
2289
|
});
|
|
2289
2290
|
}
|
|
2290
|
-
|
|
2291
|
+
await this.#proxy.handleEvent(event, { target: this.#address });
|
|
2291
2292
|
}
|
|
2292
2293
|
handleUpgrade(req, socket, head) {
|
|
2293
2294
|
if (!this.ready) {
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED
package/dist/meta/index.mjs
CHANGED
package/package.json
CHANGED