zastro-websockets-node 9.3.0 → 9.3.1-1

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/serve-app.js CHANGED
@@ -39,7 +39,7 @@ function createAppHandler(app) {
39
39
  } else if (next) {
40
40
  return next();
41
41
  } else {
42
- const response = await app.render(req);
42
+ const response = await app.render(req, { addCookieHeader: true });
43
43
  await NodeApp.writeResponse(response, res);
44
44
  }
45
45
  };
@@ -3,13 +3,19 @@ class UpgradeResponse extends Response {
3
3
  status = 101;
4
4
  constructor() {
5
5
  super(null, {
6
- status: 101,
6
+ status: 200,
7
7
  statusText: "Switching Protocols",
8
8
  headers: {
9
9
  "Upgrade": "websocket",
10
10
  "Connection": "Upgrade"
11
11
  }
12
12
  });
13
+ Object.defineProperty(this, "status", {
14
+ value: 101,
15
+ writable: false,
16
+ enumerable: true,
17
+ configurable: false
18
+ });
13
19
  }
14
20
  }
15
21
  async function writeResponseToSocket(socket, response) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zastro-websockets-node",
3
3
  "description": "Deploy your site to a Node.js server with WebSocket support",
4
- "version": "9.3.0",
4
+ "version": "9.3.1-1",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
7
7
  "author": "Zach Handley <zach@zachhandley.com>",