@4players/odin-common 2.13.1 → 2.13.3
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/cjs/index.js +2 -1
- package/lib/esm/index.js +2 -1
- package/lib/index.d.ts +1 -1
- package/lib/plugin/api.d.ts +11 -10
- package/package.json +1 -1
package/lib/cjs/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.zod = void 0;
|
|
17
18
|
__exportStar(require("./schema/serialization"), exports);
|
|
18
19
|
__exportStar(require("./schema/token"), exports);
|
|
19
20
|
__exportStar(require("./schema/room"), exports);
|
|
@@ -38,4 +39,4 @@ __exportStar(require("./utility/uuid"), exports);
|
|
|
38
39
|
__exportStar(require("./utility/validation"), exports);
|
|
39
40
|
__exportStar(require("./utility/log"), exports);
|
|
40
41
|
__exportStar(require("./plugin/api"), exports);
|
|
41
|
-
|
|
42
|
+
exports.zod = require("zod");
|
package/lib/esm/index.js
CHANGED
package/lib/index.d.ts
CHANGED
package/lib/plugin/api.d.ts
CHANGED
|
@@ -47,26 +47,27 @@ export declare namespace Backend {
|
|
|
47
47
|
rewinds: number;
|
|
48
48
|
cacheLength: number;
|
|
49
49
|
}
|
|
50
|
-
interface JoinRoomParameters {
|
|
51
|
-
readonly gateway: string | undefined;
|
|
52
|
-
readonly token: string;
|
|
53
|
-
readonly roomId?: string;
|
|
54
|
-
readonly userData?: Uint8Array;
|
|
55
|
-
readonly position?: [number, number, number];
|
|
56
|
-
readonly cipher?: SetupCipherSettings;
|
|
57
|
-
readonly onEvent: OnEvent;
|
|
58
|
-
readonly transport?: Transport;
|
|
59
|
-
}
|
|
60
50
|
interface ConnectionStats {
|
|
61
51
|
bytesSend: number;
|
|
62
52
|
bytesReceived: number;
|
|
63
53
|
packetsSend: number;
|
|
64
54
|
packetsReceived: number;
|
|
65
55
|
packetsLost: number;
|
|
56
|
+
packetsDropped: number;
|
|
66
57
|
roundTripTime: number;
|
|
67
58
|
congestionEvents: number;
|
|
68
59
|
congestionWindow: number;
|
|
69
60
|
}
|
|
61
|
+
interface JoinRoomParameters {
|
|
62
|
+
readonly gateway: string | undefined;
|
|
63
|
+
readonly token: string;
|
|
64
|
+
readonly roomId?: string;
|
|
65
|
+
readonly userData?: Uint8Array;
|
|
66
|
+
readonly position?: [number, number, number];
|
|
67
|
+
readonly cipher?: SetupCipherSettings;
|
|
68
|
+
readonly onEvent: OnEvent;
|
|
69
|
+
readonly transport?: Transport;
|
|
70
|
+
}
|
|
70
71
|
interface Room {
|
|
71
72
|
readonly token: string;
|
|
72
73
|
readonly cipher: Cipher | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@4players/odin-common",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.3",
|
|
4
4
|
"description": "A collection of commonly used type definitions and utility functions across ODIN web projects",
|
|
5
5
|
"author": "Josho Bleicker <josho.bleicker@4players.io> (https://www.4players.io)",
|
|
6
6
|
"homepage": "https://www.4players.io",
|