@pluv/io 2.2.2 → 2.2.3

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.
@@ -1,9 +1,9 @@
1
1
 
2
- > @pluv/io@2.2.2 build /home/runner/work/pluv/pluv/packages/io
2
+ > @pluv/io@2.2.3 build /home/runner/work/pluv/pluv/packages/io
3
3
  > pnpm run version && tsup src/index.ts --format esm,cjs --dts
4
4
 
5
5
 
6
- > @pluv/io@2.2.2 version /home/runner/work/pluv/pluv/packages/io
6
+ > @pluv/io@2.2.3 version /home/runner/work/pluv/pluv/packages/io
7
7
  > genversion ./src/version.generated.ts --esm
8
8
 
9
9
  CLI Building entry: src/index.ts
@@ -12,11 +12,11 @@
12
12
  CLI Target: es6
13
13
  ESM Build start
14
14
  CJS Build start
15
- ESM dist/index.mjs 51.72 KB
16
- ESM ⚡️ Build success in 132ms
17
- CJS dist/index.js 53.89 KB
18
- CJS ⚡️ Build success in 133ms
15
+ ESM dist/index.mjs 51.73 KB
16
+ ESM ⚡️ Build success in 142ms
17
+ CJS dist/index.js 53.90 KB
18
+ CJS ⚡️ Build success in 143ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 4072ms
20
+ DTS ⚡️ Build success in 4187ms
21
21
  DTS dist/index.d.mts 32.25 KB
22
22
  DTS dist/index.d.ts 32.25 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @pluv/io
2
2
 
3
+ ## 2.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - @pluv/crdt@2.2.3
8
+ - @pluv/types@2.2.3
9
+
3
10
  ## 2.2.2
4
11
 
5
12
  ### Patch Changes
package/dist/index.js CHANGED
@@ -1162,7 +1162,7 @@ var pickBy = (obj, by) => {
1162
1162
  };
1163
1163
 
1164
1164
  // src/version.generated.ts
1165
- var version = "2.2.2";
1165
+ var version = "2.2.3";
1166
1166
 
1167
1167
  // src/PluvServer.ts
1168
1168
  var PluvServer = class {
@@ -1441,8 +1441,9 @@ var PluvIO = class {
1441
1441
  createToken(params) {
1442
1442
  return __async(this, null, function* () {
1443
1443
  var _a;
1444
- if (!this._authorize)
1444
+ if (!this._authorize) {
1445
1445
  throw new Error("IO does not specify authorize during initialization.");
1446
+ }
1446
1447
  const ioAuthorize = this._getIOAuthorize(params);
1447
1448
  const user = params.user;
1448
1449
  const parsed = !!ioAuthorize ? ioAuthorize.user.parse(user) : user;
package/dist/index.mjs CHANGED
@@ -1120,7 +1120,7 @@ var pickBy = (obj, by) => {
1120
1120
  };
1121
1121
 
1122
1122
  // src/version.generated.ts
1123
- var version = "2.2.2";
1123
+ var version = "2.2.3";
1124
1124
 
1125
1125
  // src/PluvServer.ts
1126
1126
  var PluvServer = class {
@@ -1399,8 +1399,9 @@ var PluvIO = class {
1399
1399
  createToken(params) {
1400
1400
  return __async(this, null, function* () {
1401
1401
  var _a;
1402
- if (!this._authorize)
1402
+ if (!this._authorize) {
1403
1403
  throw new Error("IO does not specify authorize during initialization.");
1404
+ }
1404
1405
  const ioAuthorize = this._getIOAuthorize(params);
1405
1406
  const user = params.user;
1406
1407
  const parsed = !!ioAuthorize ? ioAuthorize.user.parse(user) : user;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluv/io",
3
- "version": "2.2.2",
3
+ "version": "2.2.3",
4
4
  "description": "@pluv/io server-side websocket manager",
5
5
  "author": "leedavidcs",
6
6
  "license": "MIT",
@@ -21,16 +21,16 @@
21
21
  "jose": "^5.10.0",
22
22
  "kleur": "^4.1.5",
23
23
  "wonka": "^6.3.5",
24
- "@pluv/crdt": "^2.2.2",
25
- "@pluv/types": "^2.2.2"
24
+ "@pluv/crdt": "^2.2.3",
25
+ "@pluv/types": "^2.2.3"
26
26
  },
27
27
  "devDependencies": {
28
28
  "eslint": "^9.27.0",
29
29
  "genversion": "^3.2.0",
30
30
  "tsup": "^8.5.0",
31
31
  "typescript": "^5.8.3",
32
- "@pluv/tsconfig": "^2.2.2",
33
- "eslint-config-pluv": "^2.2.2"
32
+ "@pluv/tsconfig": "^2.2.3",
33
+ "eslint-config-pluv": "^2.2.3"
34
34
  },
35
35
  "scripts": {
36
36
  "build": "pnpm run version && tsup src/index.ts --format esm,cjs --dts",
package/src/PluvIO.ts CHANGED
@@ -120,8 +120,9 @@ export class PluvIO<
120
120
  public async createToken(
121
121
  params: JWTEncodeParams<InferIOAuthorizeUser<TAuthorize>, TPlatform>,
122
122
  ): Promise<string> {
123
- if (!this._authorize)
123
+ if (!this._authorize) {
124
124
  throw new Error("IO does not specify authorize during initialization.");
125
+ }
125
126
 
126
127
  const ioAuthorize = this._getIOAuthorize(params);
127
128
  const user = params.user as BaseUser;
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '2.2.2'
2
+ export const version = '2.2.3'