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.
@@ -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
- return this.#proxy.handleEvent(event, { target: this.#address });
2291
+ await this.#proxy.handleEvent(event, { target: this.#address });
2291
2292
  }
2292
2293
  handleUpgrade(req, socket, head) {
2293
2294
  if (!this.ready) {
@@ -1,3 +1,3 @@
1
- const version = "2.11.2-20250305-134511.9f4dffdb";
1
+ const version = "2.11.2-20250305-141434.67c396ba";
2
2
 
3
3
  export { version };
@@ -1,3 +1,3 @@
1
- const version = "2.11.2-20250305-134511.9f4dffdb";
1
+ const version = "2.11.2-20250305-141434.67c396ba";
2
2
 
3
3
  export { version };
@@ -1,3 +1,3 @@
1
- const version = "2.11.2-20250305-134511.9f4dffdb";
1
+ const version = "2.11.2-20250305-141434.67c396ba";
2
2
 
3
3
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitropack-nightly",
3
- "version": "2.11.2-20250305-134511.9f4dffdb",
3
+ "version": "2.11.2-20250305-141434.67c396ba",
4
4
  "description": "Build and Deploy Universal JavaScript Servers",
5
5
  "repository": "nitrojs/nitro",
6
6
  "license": "MIT",