@mtcute/bun 0.22.3 → 0.24.0

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 (3) hide show
  1. package/client.d.ts +1 -1
  2. package/client.js +2 -2
  3. package/package.json +9 -21
package/client.d.ts CHANGED
@@ -32,7 +32,7 @@ export declare class TelegramClient extends TelegramClientBase {
32
32
  * @param text Text of the question
33
33
  */
34
34
  input(text: string): Promise<string>;
35
- close(): Promise<void>;
35
+ destroy(): Promise<void>;
36
36
  start(params?: Parameters<TelegramClientBase['start']>[0]): Promise<User>;
37
37
  run(params: Parameters<TelegramClient['start']>[0] | ((user: User) => void | Promise<void>), then?: (user: User) => void | Promise<void>): void;
38
38
  downloadToFile(filename: string, location: FileDownloadLocation, params?: FileDownloadParameters | undefined): Promise<void>;
package/client.js CHANGED
@@ -50,9 +50,9 @@ class TelegramClient extends TelegramClient$1 {
50
50
  }
51
51
  return new Promise((res) => this._rl?.question(text, res));
52
52
  }
53
- close() {
53
+ destroy() {
54
54
  this._rl?.close();
55
- return super.close();
55
+ return super.destroy();
56
56
  }
57
57
  start(params = {}) {
58
58
  if (!params.botToken) {
package/package.json CHANGED
@@ -1,48 +1,36 @@
1
1
  {
2
2
  "name": "@mtcute/bun",
3
3
  "type": "module",
4
- "version": "0.22.3",
4
+ "version": "0.24.0",
5
5
  "description": "Meta-package for Bun",
6
6
  "license": "MIT",
7
7
  "dependencies": {
8
- "@mtcute/core": "^0.22.3",
9
- "@mtcute/html-parser": "^0.22.1",
10
- "@mtcute/markdown-parser": "^0.22.3",
11
- "@mtcute/wasm": "^0.22.3",
12
- "@fuman/utils": "0.0.4",
13
- "@fuman/bun": "0.0.9",
14
- "@fuman/net": "0.0.9",
15
- "@fuman/io": "0.0.8"
8
+ "@mtcute/core": "^0.24.0",
9
+ "@mtcute/html-parser": "^0.24.0",
10
+ "@mtcute/markdown-parser": "^0.24.0",
11
+ "@mtcute/wasm": "^0.23.0",
12
+ "@fuman/utils": "0.0.14",
13
+ "@fuman/bun": "0.0.14",
14
+ "@fuman/net": "0.0.14",
15
+ "@fuman/io": "0.0.14"
16
16
  },
17
17
  "exports": {
18
18
  ".": {
19
19
  "import": {
20
20
  "types": "./index.d.ts",
21
21
  "default": "./index.js"
22
- },
23
- "require": {
24
- "types": "./index.d.cts",
25
- "default": "./index.cjs"
26
22
  }
27
23
  },
28
24
  "./utils.js": {
29
25
  "import": {
30
26
  "types": "./utils.d.ts",
31
27
  "default": "./utils.js"
32
- },
33
- "require": {
34
- "types": "./utils.d.cts",
35
- "default": "./utils.cjs"
36
28
  }
37
29
  },
38
30
  "./methods.js": {
39
31
  "import": {
40
32
  "types": "./methods.d.ts",
41
33
  "default": "./methods.js"
42
- },
43
- "require": {
44
- "types": "./methods.d.cts",
45
- "default": "./methods.cjs"
46
34
  }
47
35
  }
48
36
  },