onebots 0.0.4 → 0.0.5

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.
@@ -58,7 +58,7 @@ export declare class CommonAction {
58
58
  good: boolean;
59
59
  };
60
60
  login(this: V11, password?: string): Promise<unknown>;
61
- submitSlider(this: V11, ticket: string): Promise<unknown>;
62
- submitSmsCode(this: V11, code: string): Promise<unknown>;
61
+ submitSlider(this: V11, ticket: string): Promise<any>;
62
+ submitSmsCode(this: V11, code: string): Promise<any>;
63
63
  sendSmsCode(this: V11): void;
64
64
  }
@@ -105,12 +105,12 @@ class CommonAction {
105
105
  async submitSlider(ticket) {
106
106
  await this.client.submitSlider(ticket);
107
107
  // @ts-ignore
108
- return this.action.login();
108
+ return this.action.login.apply(this, []);
109
109
  }
110
110
  async submitSmsCode(code) {
111
111
  await this.client.submitSmsCode(code);
112
112
  // @ts-ignore
113
- return this.action.login();
113
+ return this.action.login.apply(this, []);
114
114
  }
115
115
  sendSmsCode() {
116
116
  return this.client.sendSmsCode();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "onebots",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "基于icqq的多例oneBot实现",
5
5
  "main": "lib/index.js",
6
6
  "bin": {