nitropack-nightly 2.13.0-20260107-221335-d463e948 → 2.13.0-20260108-221133-a3ce370f

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.
@@ -1,4 +1,4 @@
1
- const version = "2.13.0-20260107-221335-d463e948";
1
+ const version = "2.13.0-20260108-221133-a3ce370f";
2
2
 
3
3
  const compatibilityChanges = [
4
4
  {
@@ -47,6 +47,7 @@ export class $DurableObject extends DurableObject {
47
47
  }
48
48
  }
49
49
  fetch(request) {
50
+ globalThis.__env__ = this.env;
50
51
  if (import.meta._websocket && request.headers.get("upgrade") === "websocket") {
51
52
  return ws.handleDurableUpgrade(this, request);
52
53
  }
@@ -67,11 +68,13 @@ export class $DurableObject extends DurableObject {
67
68
  );
68
69
  }
69
70
  async webSocketMessage(client, message) {
71
+ globalThis.__env__ = this.env;
70
72
  if (import.meta._websocket) {
71
73
  return ws.handleDurableMessage(this, client, message);
72
74
  }
73
75
  }
74
76
  async webSocketClose(client, code, reason, wasClean) {
77
+ globalThis.__env__ = this.env;
75
78
  if (import.meta._websocket) {
76
79
  return ws.handleDurableClose(this, client, code, reason, wasClean);
77
80
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitropack-nightly",
3
- "version": "2.13.0-20260107-221335-d463e948",
3
+ "version": "2.13.0-20260108-221133-a3ce370f",
4
4
  "description": "Build and Deploy Universal JavaScript Servers",
5
5
  "repository": "nitrojs/nitro",
6
6
  "license": "MIT",