@inweb/client 25.4.1 → 25.4.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.
- package/dist/client.js +76 -63
- package/dist/client.js.map +1 -1
- package/dist/client.min.js +1 -1
- package/dist/client.module.js +59 -56
- package/dist/client.module.js.map +1 -1
- package/lib/Api/ClashTest.d.ts +2 -2
- package/lib/Api/Client.d.ts +14 -4
- package/lib/Api/Job.d.ts +1 -1
- package/lib/Api/Member.d.ts +2 -2
- package/lib/Api/Permission.d.ts +2 -2
- package/lib/Api/Project.d.ts +1 -1
- package/lib/Api/Role.d.ts +2 -2
- package/lib/Api/User.d.ts +2 -2
- package/lib/index.d.ts +1 -0
- package/package.json +2 -2
- package/src/Api/ClashTest.ts +2 -2
- package/src/Api/Client.ts +71 -59
- package/src/Api/Fetch.ts +2 -2
- package/src/Api/HttpClient.ts +3 -3
- package/src/Api/Job.ts +1 -1
- package/src/Api/Member.ts +2 -2
- package/src/Api/Permission.ts +2 -2
- package/src/Api/Project.ts +1 -1
- package/src/Api/Role.ts +2 -2
- package/src/Api/User.ts +2 -2
- package/src/index.ts +1 -0
package/src/Api/User.ts
CHANGED
|
@@ -66,7 +66,7 @@ export interface UserParams {
|
|
|
66
66
|
*/
|
|
67
67
|
export class User {
|
|
68
68
|
private _data: any;
|
|
69
|
-
|
|
69
|
+
public httpClient: IHttpClient;
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
72
|
* @param data - An object that implements user data storage.
|
|
@@ -233,7 +233,7 @@ export class User {
|
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
/**
|
|
236
|
-
* The user's API key.
|
|
236
|
+
* The user's access token (API key). Use {@link Client.signInWithToken()} to log in using token.
|
|
237
237
|
*
|
|
238
238
|
* @readonly
|
|
239
239
|
*/
|
package/src/index.ts
CHANGED
|
@@ -26,6 +26,7 @@ export { Client } from "./Api/Client";
|
|
|
26
26
|
export { ClashTest } from "./Api/ClashTest";
|
|
27
27
|
export * from "./Api/ClientEvents";
|
|
28
28
|
export { File } from "./Api/File";
|
|
29
|
+
export { FetchError, statusText } from "./Api/FetchError";
|
|
29
30
|
export { Job } from "./Api/Job";
|
|
30
31
|
export { Member } from "./Api/Member";
|
|
31
32
|
export { Model } from "./Api/Model";
|