@indietabletop/appkit 5.5.0 → 5.5.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/lib/client.ts +11 -3
- package/package.json +3 -2
package/lib/client.ts
CHANGED
|
@@ -297,9 +297,17 @@ export class IndieTabletopClient {
|
|
|
297
297
|
}
|
|
298
298
|
|
|
299
299
|
async logout() {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
300
|
+
const result = await this.fetch(
|
|
301
|
+
"/v1/sessions",
|
|
302
|
+
object({ message: string() }),
|
|
303
|
+
{ method: "DELETE" },
|
|
304
|
+
);
|
|
305
|
+
|
|
306
|
+
// Emit sessionExpired to make sure that relevant listeners are run as if the
|
|
307
|
+
// session was expired.
|
|
308
|
+
this.dispatchEvent("sessionExpired");
|
|
309
|
+
|
|
310
|
+
return result;
|
|
303
311
|
}
|
|
304
312
|
|
|
305
313
|
async join(payload: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@indietabletop/appkit",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.1",
|
|
4
4
|
"description": "A collection of modules used in apps built by Indie Tabletop Club",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -60,5 +60,6 @@
|
|
|
60
60
|
"workerDirectory": [
|
|
61
61
|
"public"
|
|
62
62
|
]
|
|
63
|
-
}
|
|
63
|
+
},
|
|
64
|
+
"packageManager": "npm@11.7.0+sha512.c22099a6fff8d5b2286c2a09df5352b4858a7c0c716320f58989d60ad8b29ecf2ce6fdfe97ccb41c23ffb1272e1fa079f868487dd6b81d02a2a9e199c095a117"
|
|
64
65
|
}
|