@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.
- package/.turbo/turbo-build.log +6 -6
- package/CHANGELOG.md +9 -0
- package/dist/index.js +4 -2
- package/dist/index.mjs +4 -2
- package/package.json +6 -6
- package/src/PluvPlatform.ts +5 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @pluv/platform-pluv@2.2.
|
|
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
|
[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
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
11
|
+
[32mCJS[39m [1mdist/index.js [22m[32m14.70 KB[39m
|
|
12
|
+
[32mCJS[39m ⚡️ Build success in 123ms
|
|
13
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m12.86 KB[39m
|
|
14
|
+
[32mESM[39m ⚡️ Build success in 123ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 6713ms
|
|
17
17
|
[32mDTS[39m [1mdist/index.d.mts [22m[32m3.72 KB[39m
|
|
18
18
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m3.72 KB[39m
|
package/CHANGELOG.md
CHANGED
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
|
+
"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.
|
|
25
|
-
"@pluv/io": "^2.2.
|
|
26
|
-
"@pluv/types": "^2.2.
|
|
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
|
-
"
|
|
33
|
-
"
|
|
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",
|
package/src/PluvPlatform.ts
CHANGED
|
@@ -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
|
}
|