@seayoo-web/gamer-api 1.1.0 → 1.1.1

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -168,7 +168,7 @@ class Xt {
168
168
  * https://kdocs.cn/l/cf2mO2uRLqh9?linkname=OdGVCdQxEu
169
169
  */
170
170
  async getSession() {
171
- if (await this.autoLogin()) return null;
171
+ if (!await this.autoLogin()) return null;
172
172
  const { data: t } = await this.req.get("session", L, {
173
173
  message: !1
174
174
  });
@@ -180,7 +180,7 @@ class Xt {
180
180
  * https://kdocs.cn/l/cf2mO2uRLqh9?linkname=kZYnwX6RcF
181
181
  */
182
182
  async authRealName(t) {
183
- if (await this.autoLogin()) return null;
183
+ if (!await this.autoLogin()) return null;
184
184
  const { data: r } = await this.req.post("auth-real-name", s(t), L);
185
185
  return r;
186
186
  }
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": "1.1.0",
4
+ "version": "1.1.1",
5
5
  "type": "module",
6
6
  "source": "index.ts",
7
7
  "main": "./dist/index.js",
@@ -24,9 +24,9 @@
24
24
  "@types/node": "^22.13.1",
25
25
  "@seayoo-web/combo-webview": "^2.5.0",
26
26
  "@seayoo-web/request": "^2.1.2",
27
+ "@seayoo-web/utils": "^3.0.10",
27
28
  "@seayoo-web/tsconfig": "^1.0.3",
28
- "@seayoo-web/scripts": "^1.3.9",
29
- "@seayoo-web/utils": "^3.0.10"
29
+ "@seayoo-web/scripts": "^1.3.9"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "@seayoo-web/combo-webview": "^2.5.0",