@pluv/client 0.37.1 → 0.37.2
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 +8 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +6 -6
- package/src/PluvRoom.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @pluv/client@0.37.
|
|
2
|
+
> @pluv/client@0.37.2 build /home/runner/work/pluv/pluv/packages/client
|
|
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
|
-
[32mESM[39m [1mdist/index.mjs [22m[32m47.
|
|
12
|
-
[32mESM[39m ⚡️ Build success in
|
|
13
|
-
[32mCJS[39m [1mdist/index.js [22m[32m48.
|
|
14
|
-
[32mCJS[39m ⚡️ Build success in
|
|
11
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m47.50 KB[39m
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 134ms
|
|
13
|
+
[32mCJS[39m [1mdist/index.js [22m[32m48.82 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 135ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 3258ms
|
|
17
17
|
[32mDTS[39m [1mdist/index.d.mts [22m[32m23.10 KB[39m
|
|
18
18
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m23.10 KB[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -839,7 +839,7 @@ var PluvRoom = class extends AbstractRoom {
|
|
|
839
839
|
_getWsEndpoint(room) {
|
|
840
840
|
switch (typeof this._endpoints.wsEndpoint) {
|
|
841
841
|
case "undefined":
|
|
842
|
-
return `/api/pluv/room/${room}`;
|
|
842
|
+
return !!this._getPublicKey() ? `https://rooms.pluv.io/${room}` : `/api/pluv/room/${room}`;
|
|
843
843
|
case "string":
|
|
844
844
|
return this._endpoints.wsEndpoint;
|
|
845
845
|
default:
|
package/dist/index.mjs
CHANGED
|
@@ -808,7 +808,7 @@ var PluvRoom = class extends AbstractRoom {
|
|
|
808
808
|
_getWsEndpoint(room) {
|
|
809
809
|
switch (typeof this._endpoints.wsEndpoint) {
|
|
810
810
|
case "undefined":
|
|
811
|
-
return `/api/pluv/room/${room}`;
|
|
811
|
+
return !!this._getPublicKey() ? `https://rooms.pluv.io/${room}` : `/api/pluv/room/${room}`;
|
|
812
812
|
case "string":
|
|
813
813
|
return this._endpoints.wsEndpoint;
|
|
814
814
|
default:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pluv/client",
|
|
3
|
-
"version": "0.37.
|
|
3
|
+
"version": "0.37.2",
|
|
4
4
|
"description": "@pluv/io frontend client",
|
|
5
5
|
"author": "leedavidcs",
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
"access": "public"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"wonka": "^6.3.
|
|
21
|
-
"@pluv/crdt": "^0.37.
|
|
22
|
-
"@pluv/types": "^0.37.
|
|
20
|
+
"wonka": "^6.3.5",
|
|
21
|
+
"@pluv/crdt": "^0.37.2",
|
|
22
|
+
"@pluv/types": "^0.37.2"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"eslint": "^8.57.1",
|
|
26
26
|
"tsup": "^8.4.0",
|
|
27
27
|
"typescript": "^5.8.2",
|
|
28
|
-
"@pluv/tsconfig": "^0.37.
|
|
29
|
-
"eslint-config-pluv": "^0.37.
|
|
28
|
+
"@pluv/tsconfig": "^0.37.2",
|
|
29
|
+
"eslint-config-pluv": "^0.37.2"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|
package/src/PluvRoom.ts
CHANGED
|
@@ -747,7 +747,7 @@ export class PluvRoom<
|
|
|
747
747
|
private _getWsEndpoint(room: string): string {
|
|
748
748
|
switch (typeof this._endpoints.wsEndpoint) {
|
|
749
749
|
case "undefined":
|
|
750
|
-
return `/api/pluv/room/${room}`;
|
|
750
|
+
return !!this._getPublicKey() ? `https://rooms.pluv.io/${room}` : `/api/pluv/room/${room}`;
|
|
751
751
|
case "string":
|
|
752
752
|
return this._endpoints.wsEndpoint;
|
|
753
753
|
default:
|