@pluv/platform-pluv 2.2.6 → 2.2.8
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 +19 -0
- package/dist/index.js +7 -3
- package/dist/index.mjs +7 -3
- package/package.json +6 -6
- package/src/PluvPlatform.ts +8 -3
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @pluv/platform-pluv@2.2.
|
|
2
|
+
> @pluv/platform-pluv@2.2.8 build /home/runner/work/pluv/pluv/packages/platform-pluv
|
|
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[
|
|
12
|
-
[32mESM[39m ⚡️ Build success in
|
|
13
|
-
[32mCJS[39m [1mdist/index.js [22m[32m14.
|
|
14
|
-
[32mCJS[39m ⚡️ Build success in
|
|
11
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m13.11 KB[39m
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 80ms
|
|
13
|
+
[32mCJS[39m [1mdist/index.js [22m[32m14.95 KB[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 81ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 6513ms
|
|
17
17
|
[32mDTS[39m [1mdist/index.d.mts [22m[32m3.79 KB[39m
|
|
18
18
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m3.79 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @pluv/platform-pluv
|
|
2
2
|
|
|
3
|
+
## 2.2.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b60ccd8: Fix `PluvServer` fetch config validation.
|
|
8
|
+
- Updated dependencies [b60ccd8]
|
|
9
|
+
- @pluv/io@2.2.8
|
|
10
|
+
- @pluv/crdt@2.2.8
|
|
11
|
+
- @pluv/types@2.2.8
|
|
12
|
+
|
|
13
|
+
## 2.2.7
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [ec2717b]
|
|
18
|
+
- @pluv/io@2.2.7
|
|
19
|
+
- @pluv/crdt@2.2.7
|
|
20
|
+
- @pluv/types@2.2.7
|
|
21
|
+
|
|
3
22
|
## 2.2.6
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -388,12 +388,16 @@ var PluvPlatform = class extends import_io.AbstractPlatform {
|
|
|
388
388
|
throw new Error("Not implemented");
|
|
389
389
|
}
|
|
390
390
|
validateConfig(config) {
|
|
391
|
-
|
|
391
|
+
this._logDebug("validating config with properties:", Object.keys(config != null ? config : {}));
|
|
392
|
+
if (!config.authorize) {
|
|
392
393
|
throw new Error("Config `authorize` must be provided to `platformPluv`");
|
|
393
|
-
|
|
394
|
+
}
|
|
395
|
+
if (!!config.onRoomMessage) {
|
|
394
396
|
throw new Error("Config `onRoomMessage` is not supported on `platformPluv`");
|
|
395
|
-
|
|
397
|
+
}
|
|
398
|
+
if (!!config.onStorageUpdated) {
|
|
396
399
|
throw new Error("Config `onStorageUpdated` is not supported on `platformPluv`");
|
|
400
|
+
}
|
|
397
401
|
this._getInitialStorage = config.getInitialStorage;
|
|
398
402
|
this._listeners = {
|
|
399
403
|
onRoomDeleted: (event) => {
|
package/dist/index.mjs
CHANGED
|
@@ -358,12 +358,16 @@ var PluvPlatform = class extends AbstractPlatform {
|
|
|
358
358
|
throw new Error("Not implemented");
|
|
359
359
|
}
|
|
360
360
|
validateConfig(config) {
|
|
361
|
-
|
|
361
|
+
this._logDebug("validating config with properties:", Object.keys(config != null ? config : {}));
|
|
362
|
+
if (!config.authorize) {
|
|
362
363
|
throw new Error("Config `authorize` must be provided to `platformPluv`");
|
|
363
|
-
|
|
364
|
+
}
|
|
365
|
+
if (!!config.onRoomMessage) {
|
|
364
366
|
throw new Error("Config `onRoomMessage` is not supported on `platformPluv`");
|
|
365
|
-
|
|
367
|
+
}
|
|
368
|
+
if (!!config.onStorageUpdated) {
|
|
366
369
|
throw new Error("Config `onStorageUpdated` is not supported on `platformPluv`");
|
|
370
|
+
}
|
|
367
371
|
this._getInitialStorage = config.getInitialStorage;
|
|
368
372
|
this._listeners = {
|
|
369
373
|
onRoomDeleted: (event) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pluv/platform-pluv",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.8",
|
|
4
4
|
"description": "@pluv/io adapter for pluv.io",
|
|
5
5
|
"author": "leedavidcs",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,16 +21,16 @@
|
|
|
21
21
|
"fast-json-stable-stringify": "^2.1.0",
|
|
22
22
|
"hono": "^4.7.10",
|
|
23
23
|
"zod": "^3.25.17",
|
|
24
|
-
"@pluv/crdt": "^2.2.
|
|
25
|
-
"@pluv/io": "^2.2.
|
|
26
|
-
"@pluv/types": "^2.2.
|
|
24
|
+
"@pluv/crdt": "^2.2.8",
|
|
25
|
+
"@pluv/io": "^2.2.8",
|
|
26
|
+
"@pluv/types": "^2.2.8"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"eslint": "^9.27.0",
|
|
30
30
|
"tsup": "^8.5.0",
|
|
31
31
|
"typescript": "^5.8.3",
|
|
32
|
-
"@pluv/tsconfig": "^2.2.
|
|
33
|
-
"eslint-config-pluv": "^2.2.
|
|
32
|
+
"@pluv/tsconfig": "^2.2.8",
|
|
33
|
+
"eslint-config-pluv": "^2.2.8"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|
package/src/PluvPlatform.ts
CHANGED
|
@@ -199,12 +199,17 @@ export class PluvPlatform<
|
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
public validateConfig(config: any): void {
|
|
202
|
-
|
|
202
|
+
this._logDebug("validating config with properties:", Object.keys(config ?? {}));
|
|
203
|
+
|
|
204
|
+
if (!config.authorize) {
|
|
203
205
|
throw new Error("Config `authorize` must be provided to `platformPluv`");
|
|
204
|
-
|
|
206
|
+
}
|
|
207
|
+
if (!!config.onRoomMessage) {
|
|
205
208
|
throw new Error("Config `onRoomMessage` is not supported on `platformPluv`");
|
|
206
|
-
|
|
209
|
+
}
|
|
210
|
+
if (!!config.onStorageUpdated) {
|
|
207
211
|
throw new Error("Config `onStorageUpdated` is not supported on `platformPluv`");
|
|
212
|
+
}
|
|
208
213
|
|
|
209
214
|
this._getInitialStorage = config.getInitialStorage;
|
|
210
215
|
this._listeners = {
|