capnweb-experimental-hibernation 0.6.3 → 0.6.4
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/index-workers.cjs +5 -2
- package/dist/index-workers.cjs.map +1 -1
- package/dist/index-workers.js +5 -2
- package/dist/index-workers.js.map +1 -1
- package/dist/index.cjs +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index-workers.cjs
CHANGED
|
@@ -3386,7 +3386,10 @@ async function __experimental_newHibernatableWebSocketRpcSession(webSocket, loca
|
|
|
3386
3386
|
webSocket.close(1011, "stale session");
|
|
3387
3387
|
} catch {
|
|
3388
3388
|
}
|
|
3389
|
-
|
|
3389
|
+
if (options.sessionStore) {
|
|
3390
|
+
await options.sessionStore.delete(sessionId);
|
|
3391
|
+
}
|
|
3392
|
+
return void 0;
|
|
3390
3393
|
}
|
|
3391
3394
|
throw err;
|
|
3392
3395
|
}
|
|
@@ -4190,7 +4193,7 @@ function __experimental_newDurableObjectSessionStore(storage, prefix = "capnweb:
|
|
|
4190
4193
|
await storage.put(`${prefix}${sessionId}`, snapshot);
|
|
4191
4194
|
},
|
|
4192
4195
|
async delete(sessionId) {
|
|
4193
|
-
await storage.delete
|
|
4196
|
+
await storage.delete(`${prefix}${sessionId}`);
|
|
4194
4197
|
}
|
|
4195
4198
|
};
|
|
4196
4199
|
}
|