@pluv/platform-pluv 2.2.3 → 2.2.4

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,5 +1,5 @@
1
1
 
2
- > @pluv/platform-pluv@2.2.3 build /home/runner/work/pluv/pluv/packages/platform-pluv
2
+ > @pluv/platform-pluv@2.2.4 build /home/runner/work/pluv/pluv/packages/platform-pluv
3
3
  > tsup src/index.ts --format esm,cjs --dts
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -8,11 +8,11 @@
8
8
  CLI Target: es6
9
9
  ESM Build start
10
10
  CJS Build start
11
- ESM dist/index.mjs 12.70 KB
12
- ESM ⚡️ Build success in 121ms
13
- CJS dist/index.js 14.54 KB
14
- CJS ⚡️ Build success in 124ms
11
+ CJS dist/index.js 14.70 KB
12
+ CJS ⚡️ Build success in 123ms
13
+ ESM dist/index.mjs 12.86 KB
14
+ ESM ⚡️ Build success in 123ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 6328ms
16
+ DTS ⚡️ Build success in 6713ms
17
17
  DTS dist/index.d.mts 3.72 KB
18
18
  DTS dist/index.d.ts 3.72 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @pluv/platform-pluv
2
2
 
3
+ ## 2.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 113ec6c: Updated internal logging.
8
+ - @pluv/crdt@2.2.4
9
+ - @pluv/io@2.2.4
10
+ - @pluv/types@2.2.4
11
+
3
12
  ## 2.2.3
4
13
 
5
14
  ### Patch Changes
package/dist/index.js CHANGED
@@ -237,7 +237,7 @@ var PluvPlatform = class extends import_io.AbstractPlatform {
237
237
  };
238
238
  this._name = "platformPluv";
239
239
  this._createToken = (params) => __async(this, null, function* () {
240
- var _a;
240
+ var _a, _b;
241
241
  const parsed = params.authorize.user.parse(params.user);
242
242
  const [endpoints, publicKey, secretKey] = yield Promise.all([
243
243
  typeof this._endpoints === "object" ? this._endpoints : this._endpoints(),
@@ -259,10 +259,12 @@ var PluvPlatform = class extends import_io.AbstractPlatform {
259
259
  this._logDebug(error);
260
260
  return null;
261
261
  });
262
+ this._logDebug({ response: { status: (_b = res == null ? void 0 : res.status) != null ? _b : null } });
262
263
  if (!res || !res.ok || res.status !== 200) {
263
264
  throw new Error("Authorization failed");
264
265
  }
265
266
  const token = yield res.text().catch(() => null);
267
+ this._logDebug({ token });
266
268
  if (typeof token !== "string") throw new Error("Authorization failed");
267
269
  return token;
268
270
  });
@@ -409,7 +411,7 @@ var PluvPlatform = class extends import_io.AbstractPlatform {
409
411
  }
410
412
  _logDebug(...args) {
411
413
  if (!this._debug) return;
412
- console.log(...args);
414
+ console.log("[PLATFORM PLUV]", ...args);
413
415
  }
414
416
  };
415
417
 
package/dist/index.mjs CHANGED
@@ -207,7 +207,7 @@ var PluvPlatform = class extends AbstractPlatform {
207
207
  };
208
208
  this._name = "platformPluv";
209
209
  this._createToken = (params) => __async(this, null, function* () {
210
- var _a;
210
+ var _a, _b;
211
211
  const parsed = params.authorize.user.parse(params.user);
212
212
  const [endpoints, publicKey, secretKey] = yield Promise.all([
213
213
  typeof this._endpoints === "object" ? this._endpoints : this._endpoints(),
@@ -229,10 +229,12 @@ var PluvPlatform = class extends AbstractPlatform {
229
229
  this._logDebug(error);
230
230
  return null;
231
231
  });
232
+ this._logDebug({ response: { status: (_b = res == null ? void 0 : res.status) != null ? _b : null } });
232
233
  if (!res || !res.ok || res.status !== 200) {
233
234
  throw new Error("Authorization failed");
234
235
  }
235
236
  const token = yield res.text().catch(() => null);
237
+ this._logDebug({ token });
236
238
  if (typeof token !== "string") throw new Error("Authorization failed");
237
239
  return token;
238
240
  });
@@ -379,7 +381,7 @@ var PluvPlatform = class extends AbstractPlatform {
379
381
  }
380
382
  _logDebug(...args) {
381
383
  if (!this._debug) return;
382
- console.log(...args);
384
+ console.log("[PLATFORM PLUV]", ...args);
383
385
  }
384
386
  };
385
387
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluv/platform-pluv",
3
- "version": "2.2.3",
3
+ "version": "2.2.4",
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.3",
25
- "@pluv/io": "^2.2.3",
26
- "@pluv/types": "^2.2.3"
24
+ "@pluv/crdt": "^2.2.4",
25
+ "@pluv/io": "^2.2.4",
26
+ "@pluv/types": "^2.2.4"
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.3",
33
- "eslint-config-pluv": "^2.2.3"
32
+ "eslint-config-pluv": "^2.2.4",
33
+ "@pluv/tsconfig": "^2.2.4"
34
34
  },
35
35
  "scripts": {
36
36
  "build": "tsup src/index.ts --format esm,cjs --dts",
@@ -119,12 +119,16 @@ export class PluvPlatform<
119
119
  return null;
120
120
  });
121
121
 
122
+ this._logDebug({ response: { status: res?.status ?? null } });
123
+
122
124
  if (!res || !res.ok || res.status !== 200) {
123
125
  throw new Error("Authorization failed");
124
126
  }
125
127
 
126
128
  const token = await res.text().catch(() => null);
127
129
 
130
+ this._logDebug({ token });
131
+
128
132
  if (typeof token !== "string") throw new Error("Authorization failed");
129
133
 
130
134
  return token;
@@ -309,6 +313,6 @@ export class PluvPlatform<
309
313
  private _logDebug(...args: any[]): void {
310
314
  if (!this._debug) return;
311
315
 
312
- console.log(...args);
316
+ console.log("[PLATFORM PLUV]", ...args);
313
317
  }
314
318
  }