@pluv/io 0.10.3 → 0.11.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 +20 -0
- package/dist/index.js +3 -1
- package/dist/index.mjs +2 -1
- package/package.json +8 -8
- package/src/IORoom.ts +2 -2
- package/src/index.ts +2 -6
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @pluv/io@0.
|
|
2
|
+
> @pluv/io@0.11.1 build /home/runner/work/pluv/pluv/packages/io
|
|
3
3
|
> tsup src/index.ts --format esm,cjs --dts
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
[34mCLI[39m Target: es6
|
|
9
9
|
[34mESM[39m Build start
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
11
|
+
[32mCJS[39m [1mdist/index.js [22m[32m31.38 KB[39m
|
|
12
|
+
[32mCJS[39m ⚡️ Build success in 82ms
|
|
13
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m29.30 KB[39m
|
|
14
|
+
[32mESM[39m ⚡️ Build success in 83ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 3432ms
|
|
17
17
|
[32mDTS[39m [1mdist/index.d.mts [22m[32m17.12 KB[39m
|
|
18
18
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m17.12 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @pluv/io
|
|
2
2
|
|
|
3
|
+
## 0.11.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 74b3061: Bumped minor and patch dependencies.
|
|
8
|
+
- Updated dependencies [74b3061]
|
|
9
|
+
- @pluv/crdt-yjs@0.11.1
|
|
10
|
+
- @pluv/types@0.11.1
|
|
11
|
+
|
|
12
|
+
## 0.11.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- b538f5c: Exported class PluvIO from @pluv/io.
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- @pluv/crdt-yjs@0.11.0
|
|
21
|
+
- @pluv/types@0.11.0
|
|
22
|
+
|
|
3
23
|
## 0.10.3
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -83,6 +83,7 @@ __export(src_exports, {
|
|
|
83
83
|
AbstractPlatform: () => AbstractPlatform,
|
|
84
84
|
AbstractPubSub: () => AbstractPubSub,
|
|
85
85
|
AbstractWebSocket: () => AbstractWebSocket,
|
|
86
|
+
PluvIO: () => PluvIO,
|
|
86
87
|
createIO: () => createIO
|
|
87
88
|
});
|
|
88
89
|
module.exports = __toCommonJS(src_exports);
|
|
@@ -632,8 +633,8 @@ var IORoom = class {
|
|
|
632
633
|
};
|
|
633
634
|
}
|
|
634
635
|
_parseMessage(message) {
|
|
635
|
-
const parsed = this._platform.parseData(message.data);
|
|
636
636
|
try {
|
|
637
|
+
const parsed = this._platform.parseData(message.data);
|
|
637
638
|
if (typeof parsed !== "object")
|
|
638
639
|
return null;
|
|
639
640
|
if (typeof parsed.type !== "string")
|
|
@@ -1000,5 +1001,6 @@ var createIO = (params) => {
|
|
|
1000
1001
|
AbstractPlatform,
|
|
1001
1002
|
AbstractPubSub,
|
|
1002
1003
|
AbstractWebSocket,
|
|
1004
|
+
PluvIO,
|
|
1003
1005
|
createIO
|
|
1004
1006
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -595,8 +595,8 @@ var IORoom = class {
|
|
|
595
595
|
};
|
|
596
596
|
}
|
|
597
597
|
_parseMessage(message) {
|
|
598
|
-
const parsed = this._platform.parseData(message.data);
|
|
599
598
|
try {
|
|
599
|
+
const parsed = this._platform.parseData(message.data);
|
|
600
600
|
if (typeof parsed !== "object")
|
|
601
601
|
return null;
|
|
602
602
|
if (typeof parsed.type !== "string")
|
|
@@ -962,5 +962,6 @@ export {
|
|
|
962
962
|
AbstractPlatform,
|
|
963
963
|
AbstractPubSub,
|
|
964
964
|
AbstractWebSocket,
|
|
965
|
+
PluvIO,
|
|
965
966
|
createIO
|
|
966
967
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pluv/io",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"description": "@pluv/io server-side websocket manager",
|
|
5
5
|
"author": "leedavidcs",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,22 +18,22 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@panva/hkdf": "^1.1.1",
|
|
21
|
-
"jose": "^4.14.
|
|
21
|
+
"jose": "^4.14.6",
|
|
22
22
|
"kleur": "^4.1.5",
|
|
23
23
|
"wonka": "^6.3.4",
|
|
24
|
-
"@pluv/crdt-yjs": "^0.
|
|
25
|
-
"@pluv/types": "^0.
|
|
24
|
+
"@pluv/crdt-yjs": "^0.11.1",
|
|
25
|
+
"@pluv/types": "^0.11.1"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"yjs": "^13.0.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"eslint": "^8.
|
|
31
|
+
"eslint": "^8.49.0",
|
|
32
32
|
"tsup": "^7.2.0",
|
|
33
|
-
"typescript": "^5.
|
|
33
|
+
"typescript": "^5.2.2",
|
|
34
34
|
"yjs": "^13.6.7",
|
|
35
|
-
"@pluv/tsconfig": "^0.
|
|
36
|
-
"eslint-config-pluv": "^0.
|
|
35
|
+
"@pluv/tsconfig": "^0.11.1",
|
|
36
|
+
"eslint-config-pluv": "^0.11.1"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|
package/src/IORoom.ts
CHANGED
|
@@ -605,9 +605,9 @@ export class IORoom<
|
|
|
605
605
|
private _parseMessage(message: {
|
|
606
606
|
data: string | ArrayBuffer;
|
|
607
607
|
}): EventMessage<string, any> | null {
|
|
608
|
-
const parsed = this._platform.parseData(message.data);
|
|
609
|
-
|
|
610
608
|
try {
|
|
609
|
+
const parsed = this._platform.parseData(message.data);
|
|
610
|
+
|
|
611
611
|
if (typeof parsed !== "object") return null;
|
|
612
612
|
if (typeof parsed.type !== "string") return null;
|
|
613
613
|
if (typeof parsed.data !== "object") return null;
|
package/src/index.ts
CHANGED
|
@@ -27,12 +27,8 @@ export type {
|
|
|
27
27
|
AbstractWebSocketHandleErrorParams,
|
|
28
28
|
} from "./AbstractWebSocket";
|
|
29
29
|
export type { IORoom } from "./IORoom";
|
|
30
|
-
export
|
|
31
|
-
|
|
32
|
-
InferIORoom,
|
|
33
|
-
PluvIO,
|
|
34
|
-
PluvIOConfig,
|
|
35
|
-
} from "./PluvIO";
|
|
30
|
+
export { PluvIO } from "./PluvIO";
|
|
31
|
+
export type { GetRoomOptions, InferIORoom, PluvIOConfig } from "./PluvIO";
|
|
36
32
|
export type {
|
|
37
33
|
AuthorizeModule,
|
|
38
34
|
AuthorizeParams,
|