teh-bot 1.0.3 → 1.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "teh-bot",
3
- "version": "1.0.3",
4
- "description": "Lightweight, high-performance Telegram Bot API module with zero dependencies",
3
+ "version": "1.0.5",
4
+ "description": "Lightweight, high-performance Telegram Bot API library with zero dependencies. Supports polling, webhooks, and all Telegram Bot API methods.",
5
5
  "keywords": [
6
6
  "telegram",
7
7
  "bot",
@@ -9,7 +9,12 @@
9
9
  "telegram-bot",
10
10
  "telegram-bot-api",
11
11
  "lightweight",
12
- "polling"
12
+ "polling",
13
+ "webhook",
14
+ "nodejs",
15
+ "typescript",
16
+ "esm",
17
+ "cjs"
13
18
  ],
14
19
  "homepage": "https://github.com/kazedevid/teh#readme",
15
20
  "bugs": {
@@ -21,16 +26,27 @@
21
26
  },
22
27
  "license": "MIT",
23
28
  "author": "KazeDevID",
24
- "type": "commonjs",
25
- "main": "index.js",
26
- "types": "index.d.ts",
29
+ "type": "module",
30
+ "exports": {
31
+ ".": {
32
+ "import": "./dist/index.mjs",
33
+ "require": "./dist/index.cjs",
34
+ "types": "./dist/index.d.ts"
35
+ }
36
+ },
37
+ "main": "./dist/index.cjs",
38
+ "module": "./dist/index.mjs",
39
+ "types": "dist/index.d.ts",
27
40
  "files": [
28
- "index.js",
29
- "index.d.ts",
41
+ "dist",
30
42
  "README.md",
31
- "LICENSE"
43
+ "LICENSE",
44
+ "CHANGELOG.md"
32
45
  ],
33
46
  "scripts": {
34
- "test": "echo \"Error: no test specified\" && exit 1"
47
+ "build": "node scripts/build.cjs",
48
+ "dev": "node examples/simple-bot.js",
49
+ "prepublish": "npm run build",
50
+ "test": "node scripts/test.cjs"
35
51
  }
36
- }
52
+ }