@tailuge/messaging 1.4.0 → 1.5.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/index.js +5 -5
- package/dist/lobby.js +3 -3
- package/dist/messagingclient.js +3 -3
- package/dist/table.js +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from "./messagingclient";
|
|
2
|
-
export * from "./lobby";
|
|
3
|
-
export * from "./table";
|
|
4
|
-
export * from "./types";
|
|
5
|
-
export * from "./nchanclient";
|
|
1
|
+
export * from "./messagingclient.js";
|
|
2
|
+
export * from "./lobby.js";
|
|
3
|
+
export * from "./table.js";
|
|
4
|
+
export * from "./types.js";
|
|
5
|
+
export * from "./nchanclient.js";
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
package/dist/lobby.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { parseMessage } from "./types";
|
|
2
|
-
import { Table } from "./table";
|
|
3
|
-
import { getUID } from "./utils/uid";
|
|
1
|
+
import { parseMessage } from "./types.js";
|
|
2
|
+
import { Table } from "./table.js";
|
|
3
|
+
import { getUID } from "./utils/uid.js";
|
|
4
4
|
/**
|
|
5
5
|
* Manages the global lobby state, including real-time presence tracking and challenge flows.
|
|
6
6
|
*/
|
package/dist/messagingclient.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { NchanClient } from "./nchanclient";
|
|
2
|
-
import { Lobby } from "./lobby";
|
|
3
|
-
import { Table } from "./table";
|
|
1
|
+
import { NchanClient } from "./nchanclient.js";
|
|
2
|
+
import { Lobby } from "./lobby.js";
|
|
3
|
+
import { Table } from "./table.js";
|
|
4
4
|
/**
|
|
5
5
|
* The main messaging client library entry point.
|
|
6
6
|
* Encapsulates transport logic and provides access to lobby and table functionality.
|
package/dist/table.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { parseMessage } from "./types";
|
|
1
|
+
import { parseMessage } from "./types.js";
|
|
2
2
|
/**
|
|
3
3
|
* Represents a specific communication channel for a 2-player/spectator scenario at a table.
|
|
4
4
|
* Uses `any` as default for internal storage flexibility; consumers should use `unknown` or specific types.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tailuge/messaging",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A stateful messaging library for Nchan-powered real-time applications.",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"test:debug": "npm run playwright",
|
|
24
24
|
"lint": "tsc --noEmit && npx oxlint src test",
|
|
25
25
|
"prettify": "npx oxfmt src test",
|
|
26
|
-
"build": "tsc --declaration",
|
|
26
|
+
"build": "tsc --declaration && node scripts/add-js-extensions.js",
|
|
27
27
|
"release": "npm version minor --no-git-tag-version && npm run build",
|
|
28
28
|
"build:all": "npm run build && npm run build:example && npm run docker:start",
|
|
29
29
|
"build:example": "mkdir -p docker/html/example && npx esbuild example/src/client.ts --bundle --outfile=docker/html/example/client.js && cp example/*.html docker/html/example/",
|