@opendatalabs/personal-server-ts-server 1.0.1 → 1.1.0
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/ui/ps-lite-debug.js +6 -5
- package/package.json +3 -3
package/dist/ui/ps-lite-debug.js
CHANGED
|
@@ -128197,8 +128197,9 @@ function startPsLiteRelayClient(options) {
|
|
|
128197
128197
|
streams.clear();
|
|
128198
128198
|
pendingStreamData.clear();
|
|
128199
128199
|
issueToken = void 0;
|
|
128200
|
+
const detail = { code: event?.code, reason: event?.reason };
|
|
128200
128201
|
if (closed) {
|
|
128201
|
-
options.onStatus?.("closed");
|
|
128202
|
+
options.onStatus?.("closed", detail);
|
|
128202
128203
|
return;
|
|
128203
128204
|
}
|
|
128204
128205
|
if (event?.code === RELAY_CLOSE_SESSION_REPLACED) {
|
|
@@ -128208,10 +128209,10 @@ function startPsLiteRelayClient(options) {
|
|
|
128208
128209
|
reconnectTimer = void 0;
|
|
128209
128210
|
}
|
|
128210
128211
|
log("relay session replaced by another connection \u2014 not reconnecting");
|
|
128211
|
-
options.onStatus?.("replaced");
|
|
128212
|
+
options.onStatus?.("replaced", detail);
|
|
128212
128213
|
return;
|
|
128213
128214
|
}
|
|
128214
|
-
options.onStatus?.("disconnected");
|
|
128215
|
+
options.onStatus?.("disconnected", detail);
|
|
128215
128216
|
scheduleReconnect();
|
|
128216
128217
|
};
|
|
128217
128218
|
socket.onerror = () => {
|
|
@@ -128510,11 +128511,11 @@ async function startPersonalServer(options) {
|
|
|
128510
128511
|
...resolvedRelayOptions,
|
|
128511
128512
|
runtime,
|
|
128512
128513
|
origin: runtimeOrigin,
|
|
128513
|
-
onStatus(nextRelayStatus) {
|
|
128514
|
+
onStatus(nextRelayStatus, detail) {
|
|
128514
128515
|
relayStatus2 = nextRelayStatus;
|
|
128515
128516
|
if (nextRelayStatus === "error")
|
|
128516
128517
|
setStatus("error");
|
|
128517
|
-
resolvedRelayOptions.onStatus?.(nextRelayStatus);
|
|
128518
|
+
resolvedRelayOptions.onStatus?.(nextRelayStatus, detail);
|
|
128518
128519
|
}
|
|
128519
128520
|
});
|
|
128520
128521
|
relayClientForDrain = relayClient;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opendatalabs/personal-server-ts-server",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Hono HTTP server for the Vana Personal Server — routes, middleware, composition root",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@hono/node-server": "^1.19.13",
|
|
47
|
-
"@opendatalabs/personal-server-ts-core": "1.0
|
|
48
|
-
"@opendatalabs/personal-server-ts-lite": "1.0
|
|
47
|
+
"@opendatalabs/personal-server-ts-core": "1.1.0",
|
|
48
|
+
"@opendatalabs/personal-server-ts-lite": "1.1.0",
|
|
49
49
|
"@opendatalabs/vana-sdk": "3.13.0",
|
|
50
50
|
"better-sqlite3": "^12.11.1",
|
|
51
51
|
"hono": "^4.12.27",
|