mogobase 1.0.6 → 1.0.8

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.
Files changed (2) hide show
  1. package/lib/server/ws.js +2 -2
  2. package/package.json +3 -2
package/lib/server/ws.js CHANGED
@@ -33,7 +33,7 @@ class WebSocket {
33
33
  return;
34
34
  }
35
35
  const state = this._state.get(id);
36
- const resumeToken = state.changeStream?.resumeToken;
36
+ const resumeToken = state.changeStream?.resumeToken || undefined;
37
37
  if (state.changeStream) {
38
38
  state.changeStream.close();
39
39
  }
@@ -62,7 +62,7 @@ class WebSocket {
62
62
  return;
63
63
  }
64
64
  const state = this._state.get(id);
65
- const resumeToken = state.changeStream?.resumeToken;
65
+ const resumeToken = state.changeStream?.resumeToken || undefined;
66
66
  if (state.changeStream) {
67
67
  state.changeStream.close();
68
68
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mogobase",
3
3
  "type": "module",
4
- "version": "1.0.6",
4
+ "version": "1.0.8",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
7
7
  "types": "types/index.d.ts",
@@ -35,7 +35,8 @@
35
35
  "build": "rm -rf lib && tsc && tsc-alias",
36
36
  "start": "node lib/server/start.js",
37
37
  "deploy": "wrangler deploy --minify",
38
- "cf-typegen": "wrangler types --env-interface CloudflareBindings"
38
+ "cf-typegen": "wrangler types --env-interface CloudflareBindings",
39
+ "prepublish": "npm run build"
39
40
  },
40
41
  "dependencies": {
41
42
  "@hono/node-server": "^1.19.7",