@pluv/platform-cloudflare 0.22.0 → 0.23.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/.turbo/turbo-build.log +2 -2
- package/CHANGELOG.md +8 -0
- package/package.json +6 -6
- package/src/createPluvHandler.ts +0 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @pluv/platform-cloudflare@0.
|
|
2
|
+
> @pluv/platform-cloudflare@0.23.0 build /home/runner/work/pluv/pluv/packages/platform-cloudflare
|
|
3
3
|
> tsup src/index.ts --format esm,cjs --dts
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -13,6 +13,6 @@
|
|
|
13
13
|
[32mCJS[39m [1mdist/index.js [22m[32m15.18 KB[39m
|
|
14
14
|
[32mCJS[39m ⚡️ Build success in 96ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 3590ms
|
|
17
17
|
[32mDTS[39m [1mdist/index.d.mts [22m[32m4.15 KB[39m
|
|
18
18
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m4.15 KB[39m
|
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pluv/platform-cloudflare",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"description": "@pluv/io adapter for cloudflare workers",
|
|
5
5
|
"author": "leedavidcs",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,16 +18,16 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"path-to-regexp": "^7.1.0",
|
|
21
|
-
"@pluv/io": "^0.
|
|
22
|
-
"@pluv/types": "^0.
|
|
21
|
+
"@pluv/io": "^0.23.0",
|
|
22
|
+
"@pluv/types": "^0.23.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@cloudflare/workers-types": "^4.
|
|
25
|
+
"@cloudflare/workers-types": "^4.20240815.0",
|
|
26
26
|
"eslint": "^8.57.0",
|
|
27
27
|
"tsup": "^8.2.4",
|
|
28
28
|
"typescript": "^5.5.4",
|
|
29
|
-
"@pluv/tsconfig": "^0.
|
|
30
|
-
"eslint-config-pluv": "^0.
|
|
29
|
+
"@pluv/tsconfig": "^0.23.0",
|
|
30
|
+
"eslint-config-pluv": "^0.23.0"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|
package/src/createPluvHandler.ts
CHANGED
|
@@ -70,7 +70,6 @@ export const createPluvHandler = <TPluvServer extends PluvServer<CloudflarePlatf
|
|
|
70
70
|
if (io._registrationMode !== "detached") return;
|
|
71
71
|
|
|
72
72
|
const handler = this._room.onError(ws);
|
|
73
|
-
|
|
74
73
|
const eventError = error instanceof Error ? error : new Error("Internal Error");
|
|
75
74
|
|
|
76
75
|
handler({ error: eventError, message: eventError.message });
|
|
@@ -92,7 +91,6 @@ export const createPluvHandler = <TPluvServer extends PluvServer<CloudflarePlatf
|
|
|
92
91
|
}
|
|
93
92
|
|
|
94
93
|
const { 0: client, 1: server } = new WebSocketPair();
|
|
95
|
-
|
|
96
94
|
const token = new URL(request.url).searchParams.get("token");
|
|
97
95
|
|
|
98
96
|
await this._room.register(server, { token });
|