@blocklet/js-sdk 1.16.28-next-5a717317 → 1.16.28

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/index.cjs CHANGED
@@ -56,6 +56,16 @@ class AuthService {
56
56
  locale
57
57
  });
58
58
  }
59
+ async getProfile() {
60
+ const { data } = await this.api.get("/api/user/profile");
61
+ return data;
62
+ }
63
+ async saveProfile({ locale }) {
64
+ const { data } = await this.api.put("/api/user/profile", {
65
+ locale
66
+ });
67
+ return data;
68
+ }
59
69
  /**
60
70
  *
61
71
  * 指定要退出登录的设备 id
package/dist/index.d.cts CHANGED
@@ -42,6 +42,10 @@ declare class AuthService {
42
42
  did: string;
43
43
  locale: string;
44
44
  }): Promise<string>;
45
+ getProfile(): Promise<any>;
46
+ saveProfile({ locale }: {
47
+ locale: string;
48
+ }): Promise<any>;
45
49
  /**
46
50
  *
47
51
  * 指定要退出登录的设备 id
package/dist/index.d.mts CHANGED
@@ -42,6 +42,10 @@ declare class AuthService {
42
42
  did: string;
43
43
  locale: string;
44
44
  }): Promise<string>;
45
+ getProfile(): Promise<any>;
46
+ saveProfile({ locale }: {
47
+ locale: string;
48
+ }): Promise<any>;
45
49
  /**
46
50
  *
47
51
  * 指定要退出登录的设备 id
package/dist/index.d.ts CHANGED
@@ -42,6 +42,10 @@ declare class AuthService {
42
42
  did: string;
43
43
  locale: string;
44
44
  }): Promise<string>;
45
+ getProfile(): Promise<any>;
46
+ saveProfile({ locale }: {
47
+ locale: string;
48
+ }): Promise<any>;
45
49
  /**
46
50
  *
47
51
  * 指定要退出登录的设备 id
package/dist/index.mjs CHANGED
@@ -49,6 +49,16 @@ class AuthService {
49
49
  locale
50
50
  });
51
51
  }
52
+ async getProfile() {
53
+ const { data } = await this.api.get("/api/user/profile");
54
+ return data;
55
+ }
56
+ async saveProfile({ locale }) {
57
+ const { data } = await this.api.put("/api/user/profile", {
58
+ locale
59
+ });
60
+ return data;
61
+ }
52
62
  /**
53
63
  *
54
64
  * 指定要退出登录的设备 id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/js-sdk",
3
- "version": "1.16.28-next-5a717317",
3
+ "version": "1.16.28",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -31,13 +31,13 @@
31
31
  "build": "unbuild"
32
32
  },
33
33
  "dependencies": {
34
- "@abtnode/constant": "1.16.28-next-5a717317",
35
- "axios": "^0.27.2",
34
+ "@abtnode/constant": "1.16.28",
35
+ "axios": "^1.7.2",
36
36
  "js-cookie": "^3.0.5",
37
- "ufo": "^1.3.2"
37
+ "ufo": "^1.5.3"
38
38
  },
39
39
  "devDependencies": {
40
40
  "unbuild": "^2.0.0"
41
41
  },
42
- "gitHead": "3624967f9549de3a25a87ed6b20f82519ddb4757"
42
+ "gitHead": "54db076a7e520bbc260f8cbf0af31dd50b86aef1"
43
43
  }