@seayoo-web/gamer-api 2.15.1 → 2.15.2
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.js +10 -2
- package/package.json +3 -3
- package/types/src/club.d.ts +4 -1
- package/types/src/utils.d.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -585,8 +585,16 @@ class ha {
|
|
|
585
585
|
*/
|
|
586
586
|
async addAddress(t, n) {
|
|
587
587
|
if (!await this.token.autoLogin()) return null;
|
|
588
|
-
const { data: r } = await this.req.post(
|
|
589
|
-
|
|
588
|
+
const { data: r, code: a, message: o } = await this.req.post(
|
|
589
|
+
"/club/add-address",
|
|
590
|
+
c(t),
|
|
591
|
+
B,
|
|
592
|
+
n
|
|
593
|
+
);
|
|
594
|
+
return r ?? {
|
|
595
|
+
message: o,
|
|
596
|
+
error: a
|
|
597
|
+
};
|
|
590
598
|
}
|
|
591
599
|
/**
|
|
592
600
|
* 修改自己的俱乐部收货地址
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seayoo-web/gamer-api",
|
|
3
3
|
"description": "agent for gamer api",
|
|
4
|
-
"version": "2.15.
|
|
4
|
+
"version": "2.15.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "index.ts",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.13.1",
|
|
33
|
-
"@seayoo-web/scripts": "3.1.6",
|
|
34
|
-
"@seayoo-web/request": "3.4.2",
|
|
35
33
|
"@seayoo-web/combo-webview": "2.8.0",
|
|
34
|
+
"@seayoo-web/request": "3.4.2",
|
|
35
|
+
"@seayoo-web/scripts": "3.1.6",
|
|
36
36
|
"@seayoo-web/tsconfig": "1.0.5",
|
|
37
37
|
"@seayoo-web/utils": "4.1.3",
|
|
38
38
|
"@seayoo-web/validator": "2.0.0"
|
package/types/src/club.d.ts
CHANGED
|
@@ -91,7 +91,10 @@ export declare class ClubApi {
|
|
|
91
91
|
*
|
|
92
92
|
* https://kdocs.cn/l/cgp4gSBMbOf1?linkname=TaGIIYDRYA
|
|
93
93
|
*/
|
|
94
|
-
addAddress(option: Omit<SomePartial<ClubAddress, "is_default">, "address_id">, requestOptions?: IRequestOptions): Promise<ClubAddress |
|
|
94
|
+
addAddress(option: Omit<SomePartial<ClubAddress, "is_default">, "address_id">, requestOptions?: IRequestOptions): Promise<ClubAddress | {
|
|
95
|
+
message: string;
|
|
96
|
+
error: RequestInternalError;
|
|
97
|
+
} | null>;
|
|
95
98
|
/**
|
|
96
99
|
* 修改自己的俱乐部收货地址
|
|
97
100
|
*
|
package/types/src/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const console: Pick<Console, "
|
|
1
|
+
export declare const console: Pick<Console, "error" | "log" | "warn">;
|
|
2
2
|
/** 检测是否在 combo webview */
|
|
3
3
|
export declare function inComboWebview(): boolean;
|
|
4
4
|
export declare function isRootEndpoint(path: string): boolean;
|