@seayoo-web/gamer-api 2.13.11 → 2.13.13
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 +8 -3
- package/package.json +6 -6
- package/types/src/utils.d.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -200,9 +200,14 @@ class ia {
|
|
|
200
200
|
const n = _();
|
|
201
201
|
if (!this.idToken || n && !this.weixinToken)
|
|
202
202
|
return !1;
|
|
203
|
-
const { code: r, data: a } = await this.req.post(
|
|
204
|
-
|
|
205
|
-
|
|
203
|
+
const { code: r, data: a } = await this.req.post(
|
|
204
|
+
"session/switch-game",
|
|
205
|
+
c({ game_id: t }),
|
|
206
|
+
fe,
|
|
207
|
+
{
|
|
208
|
+
message: !1
|
|
209
|
+
}
|
|
210
|
+
);
|
|
206
211
|
switch (r) {
|
|
207
212
|
case "game_not_allowed":
|
|
208
213
|
return !1;
|
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.13.
|
|
4
|
+
"version": "2.13.13",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "index.ts",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -31,16 +31,16 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.13.1",
|
|
33
33
|
"@seayoo-web/combo-webview": "2.8.0",
|
|
34
|
-
"@seayoo-web/
|
|
34
|
+
"@seayoo-web/scripts": "3.1.6",
|
|
35
35
|
"@seayoo-web/request": "3.4.2",
|
|
36
|
+
"@seayoo-web/tsconfig": "1.0.5",
|
|
36
37
|
"@seayoo-web/utils": "4.1.3",
|
|
37
|
-
"@seayoo-web/validator": "2.0.0"
|
|
38
|
-
"@seayoo-web/scripts": "3.1.6"
|
|
38
|
+
"@seayoo-web/validator": "2.0.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@seayoo-web/combo-webview": "^2.8.0",
|
|
42
|
-
"@seayoo-web/
|
|
43
|
-
"@seayoo-web/
|
|
42
|
+
"@seayoo-web/utils": "^4.1.3",
|
|
43
|
+
"@seayoo-web/validator": "^2.0.0"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"prebuild": "pnpm -F validator build && pnpm -F request build && pnpm -F combo-webview build",
|
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;
|