@blocklet/js-sdk 1.16.31-beta-4246ab25 → 1.16.31-beta-a0cc72cf

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.d.mts CHANGED
@@ -48,8 +48,9 @@ declare class AuthService {
48
48
  }): Promise<string>;
49
49
  getProfile(): Promise<any>;
50
50
  refreshProfile(): Promise<void>;
51
- saveProfile({ locale }: {
52
- locale: string;
51
+ saveProfile({ locale, inviter }: {
52
+ locale?: string;
53
+ inviter?: string;
53
54
  }): Promise<any>;
54
55
  /**
55
56
  *
package/dist/index.d.ts CHANGED
@@ -48,8 +48,9 @@ declare class AuthService {
48
48
  }): Promise<string>;
49
49
  getProfile(): Promise<any>;
50
50
  refreshProfile(): Promise<void>;
51
- saveProfile({ locale }: {
52
- locale: string;
51
+ saveProfile({ locale, inviter }: {
52
+ locale?: string;
53
+ inviter?: string;
53
54
  }): Promise<any>;
54
55
  /**
55
56
  *
package/dist/index.mjs CHANGED
@@ -57,10 +57,8 @@ class AuthService {
57
57
  async refreshProfile() {
58
58
  await this.api.put(`/api/user/refreshProfile`);
59
59
  }
60
- async saveProfile({ locale }) {
61
- const { data } = await this.api.put("/api/user/profile", {
62
- locale
63
- });
60
+ async saveProfile({ locale, inviter }) {
61
+ const { data } = await this.api.put("/api/user/profile", { locale, inviter });
64
62
  return data;
65
63
  }
66
64
  /**
@@ -70,9 +68,7 @@ class AuthService {
70
68
  * @return {*} {Promise<void>}
71
69
  */
72
70
  async logout({ visitorId }) {
73
- const { data } = await this.api.post("/api/user/logout", {
74
- visitorId
75
- });
71
+ const { data } = await this.api.post("/api/user/logout", { visitorId });
76
72
  return data;
77
73
  }
78
74
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/js-sdk",
3
- "version": "1.16.31-beta-4246ab25",
3
+ "version": "1.16.31-beta-a0cc72cf",
4
4
  "main": "dist/index.mjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -31,8 +31,8 @@
31
31
  "build": "unbuild"
32
32
  },
33
33
  "dependencies": {
34
- "@abtnode/constant": "1.16.31-beta-4246ab25",
35
- "@blocklet/meta": "1.16.31-beta-4246ab25",
34
+ "@abtnode/constant": "1.16.31-beta-a0cc72cf",
35
+ "@blocklet/meta": "1.16.31-beta-a0cc72cf",
36
36
  "axios": "^1.7.5",
37
37
  "js-cookie": "^3.0.5",
38
38
  "quick-lru": "^7.0.0",
@@ -41,5 +41,5 @@
41
41
  "devDependencies": {
42
42
  "unbuild": "^2.0.0"
43
43
  },
44
- "gitHead": "ef93705b89033e4cd5fed458b64521d0a994a1d0"
44
+ "gitHead": "d1eec814979a4086fc5efd7c719687b76c972ec6"
45
45
  }