@pluv/types 0.40.2 → 0.41.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/.turbo/turbo-build.log +6 -6
- package/CHANGELOG.md +4 -0
- package/dist/index.d.mts +14 -1
- package/dist/index.d.ts +14 -1
- package/package.json +5 -5
- package/src/pluv.ts +7 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @pluv/types@0.
|
|
2
|
+
> @pluv/types@0.41.1 build /home/runner/work/pluv/pluv/packages/types
|
|
3
3
|
> tsup src/index.ts --format esm,cjs --dts
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
[34mESM[39m Build start
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
11
|
[32mESM[39m [1mdist/index.mjs [22m[32m0 B[39m
|
|
12
|
-
[32mESM[39m ⚡️ Build success in
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 27ms
|
|
13
13
|
[32mCJS[39m [1mdist/index.js [22m[32m758.00 B[39m
|
|
14
|
-
[32mCJS[39m ⚡️ Build success in
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 27ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
17
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[32m7.
|
|
18
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m7.
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 727ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m7.47 KB[39m
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m7.47 KB[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -66,14 +66,20 @@ interface BaseIOAuthorizeEventRecord<TAuthorize extends IOAuthorize<any, any>> {
|
|
|
66
66
|
connectionId: string;
|
|
67
67
|
presence: JsonObject | null;
|
|
68
68
|
room: string | null;
|
|
69
|
+
timers: {
|
|
70
|
+
presence: number | null;
|
|
71
|
+
};
|
|
69
72
|
user: Id<InferIOAuthorizeUser<TAuthorize>>;
|
|
70
73
|
};
|
|
71
74
|
};
|
|
72
75
|
};
|
|
73
76
|
$userJoined: {
|
|
74
77
|
connectionId: string;
|
|
75
|
-
user: NonNullable<Id<InferIOAuthorizeUser<TAuthorize>>>;
|
|
76
78
|
presence: JsonObject;
|
|
79
|
+
timers: {
|
|
80
|
+
presence: number | null;
|
|
81
|
+
};
|
|
82
|
+
user: NonNullable<Id<InferIOAuthorizeUser<TAuthorize>>>;
|
|
77
83
|
};
|
|
78
84
|
}
|
|
79
85
|
type BaseIOEventRecord<TAuthorize extends IOAuthorize<any, any>> = BaseIOAuthorizeEventRecord<TAuthorize> & {
|
|
@@ -87,9 +93,16 @@ type BaseIOEventRecord<TAuthorize extends IOAuthorize<any, any>> = BaseIOAuthori
|
|
|
87
93
|
$pong: {};
|
|
88
94
|
$presenceUpdated: {
|
|
89
95
|
presence: JsonObject;
|
|
96
|
+
timers: {
|
|
97
|
+
presence: number | null;
|
|
98
|
+
};
|
|
90
99
|
};
|
|
91
100
|
$registered: {
|
|
101
|
+
presence: JsonObject | null;
|
|
92
102
|
sessionId: string;
|
|
103
|
+
timers: {
|
|
104
|
+
presence: number | null;
|
|
105
|
+
};
|
|
93
106
|
};
|
|
94
107
|
$storageReceived: {
|
|
95
108
|
state: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -66,14 +66,20 @@ interface BaseIOAuthorizeEventRecord<TAuthorize extends IOAuthorize<any, any>> {
|
|
|
66
66
|
connectionId: string;
|
|
67
67
|
presence: JsonObject | null;
|
|
68
68
|
room: string | null;
|
|
69
|
+
timers: {
|
|
70
|
+
presence: number | null;
|
|
71
|
+
};
|
|
69
72
|
user: Id<InferIOAuthorizeUser<TAuthorize>>;
|
|
70
73
|
};
|
|
71
74
|
};
|
|
72
75
|
};
|
|
73
76
|
$userJoined: {
|
|
74
77
|
connectionId: string;
|
|
75
|
-
user: NonNullable<Id<InferIOAuthorizeUser<TAuthorize>>>;
|
|
76
78
|
presence: JsonObject;
|
|
79
|
+
timers: {
|
|
80
|
+
presence: number | null;
|
|
81
|
+
};
|
|
82
|
+
user: NonNullable<Id<InferIOAuthorizeUser<TAuthorize>>>;
|
|
77
83
|
};
|
|
78
84
|
}
|
|
79
85
|
type BaseIOEventRecord<TAuthorize extends IOAuthorize<any, any>> = BaseIOAuthorizeEventRecord<TAuthorize> & {
|
|
@@ -87,9 +93,16 @@ type BaseIOEventRecord<TAuthorize extends IOAuthorize<any, any>> = BaseIOAuthori
|
|
|
87
93
|
$pong: {};
|
|
88
94
|
$presenceUpdated: {
|
|
89
95
|
presence: JsonObject;
|
|
96
|
+
timers: {
|
|
97
|
+
presence: number | null;
|
|
98
|
+
};
|
|
90
99
|
};
|
|
91
100
|
$registered: {
|
|
101
|
+
presence: JsonObject | null;
|
|
92
102
|
sessionId: string;
|
|
103
|
+
timers: {
|
|
104
|
+
presence: number | null;
|
|
105
|
+
};
|
|
93
106
|
};
|
|
94
107
|
$storageReceived: {
|
|
95
108
|
state: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pluv/types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.41.1",
|
|
4
4
|
"description": "@pluv/io shared types",
|
|
5
5
|
"author": "leedavidcs",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,16 +16,16 @@
|
|
|
16
16
|
"access": "public"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"eslint": "^9.
|
|
19
|
+
"eslint": "^9.25.0",
|
|
20
20
|
"tsup": "^8.4.0",
|
|
21
21
|
"typescript": "^5.8.3",
|
|
22
|
-
"@pluv/tsconfig": "^0.
|
|
23
|
-
"eslint-config-pluv": "^0.
|
|
22
|
+
"@pluv/tsconfig": "^0.41.1",
|
|
23
|
+
"eslint-config-pluv": "^0.41.1"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|
|
27
27
|
"dev": "tsup src/index.ts --format esm,cjs --watch --dts",
|
|
28
|
-
"lint": "eslint src/**/*.ts
|
|
28
|
+
"lint": "eslint \"src/**/*.ts*\" --fix --max-warnings 0",
|
|
29
29
|
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
|
|
30
30
|
}
|
|
31
31
|
}
|
package/src/pluv.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Id, JsonObject, MaybePromise,
|
|
1
|
+
import type { Id, JsonObject, MaybePromise, UnionToIntersection } from "./general";
|
|
2
2
|
|
|
3
3
|
export type BaseUser = {
|
|
4
4
|
id: string;
|
|
@@ -29,14 +29,16 @@ export interface BaseIOAuthorizeEventRecord<TAuthorize extends IOAuthorize<any,
|
|
|
29
29
|
connectionId: string;
|
|
30
30
|
presence: JsonObject | null;
|
|
31
31
|
room: string | null;
|
|
32
|
+
timers: { presence: number | null };
|
|
32
33
|
user: Id<InferIOAuthorizeUser<TAuthorize>>;
|
|
33
34
|
};
|
|
34
35
|
};
|
|
35
36
|
};
|
|
36
37
|
$userJoined: {
|
|
37
38
|
connectionId: string;
|
|
38
|
-
user: NonNullable<Id<InferIOAuthorizeUser<TAuthorize>>>;
|
|
39
39
|
presence: JsonObject;
|
|
40
|
+
timers: { presence: number | null };
|
|
41
|
+
user: NonNullable<Id<InferIOAuthorizeUser<TAuthorize>>>;
|
|
40
42
|
};
|
|
41
43
|
}
|
|
42
44
|
|
|
@@ -51,9 +53,12 @@ export type BaseIOEventRecord<TAuthorize extends IOAuthorize<any, any>> = BaseIO
|
|
|
51
53
|
$pong: {};
|
|
52
54
|
$presenceUpdated: {
|
|
53
55
|
presence: JsonObject;
|
|
56
|
+
timers: { presence: number | null };
|
|
54
57
|
};
|
|
55
58
|
$registered: {
|
|
59
|
+
presence: JsonObject | null;
|
|
56
60
|
sessionId: string;
|
|
61
|
+
timers: { presence: number | null };
|
|
57
62
|
};
|
|
58
63
|
$storageReceived: {
|
|
59
64
|
state: string;
|