@blocklet/js-sdk 1.16.31-beta-52250475 → 1.16.31-beta-73df673d

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-52250475",
3
+ "version": "1.16.31-beta-73df673d",
4
4
  "main": "dist/index.mjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -31,15 +31,14 @@
31
31
  "build": "unbuild"
32
32
  },
33
33
  "dependencies": {
34
- "@abtnode/constant": "1.16.31-beta-52250475",
35
- "@blocklet/meta": "1.16.31-beta-52250475",
36
- "axios": "^1.7.2",
34
+ "@abtnode/constant": "1.16.30",
35
+ "@blocklet/meta": "1.16.30",
36
+ "axios": "^1.7.5",
37
37
  "js-cookie": "^3.0.5",
38
38
  "quick-lru": "^7.0.0",
39
39
  "ufo": "^1.5.3"
40
40
  },
41
41
  "devDependencies": {
42
42
  "unbuild": "^2.0.0"
43
- },
44
- "gitHead": "26155b86f103f9e64fd8a23b7fffdb279c71209c"
43
+ }
45
44
  }
package/LICENSE DELETED
@@ -1,13 +0,0 @@
1
- Copyright 2018-2020 ArcBlock
2
-
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License.
5
- You may obtain a copy of the License at
6
-
7
- http://www.apache.org/licenses/LICENSE-2.0
8
-
9
- Unless required by applicable law or agreed to in writing, software
10
- distributed under the License is distributed on an "AS IS" BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
13
- limitations under the License.