TXBOX - refactor: update package configuration and improve error handling
- Changed package.json to use "tsx" instead of "ts-node" for development. - Updated "@whiskeysockets/baileys" dependency to version 6.7.24. - Added error handling for unhandled rejections and uncaught exceptions in server.ts. - Implemented a reconnect mechanism for WhatsApp connection failures. - Updated tsconfig.json to use "NodeNext" module and resolution for ESM compatibility.
This commit is contained in:
+4
-3
@@ -2,8 +2,9 @@
|
||||
"name": "txbot",
|
||||
"version": "1.0.0",
|
||||
"main": "index.js",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "ts-node src/server.ts",
|
||||
"dev": "tsx src/server.ts",
|
||||
"build": "tsc",
|
||||
"start": "node dist/server.js"
|
||||
},
|
||||
@@ -12,14 +13,14 @@
|
||||
"license": "ISC",
|
||||
"description": "",
|
||||
"dependencies": {
|
||||
"@whiskeysockets/baileys": "6.17.16",
|
||||
"@whiskeysockets/baileys": "6.7.24",
|
||||
"express": "^5.1.0",
|
||||
"qrcode": "^1.5.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/express": "^5.0.2",
|
||||
"@types/qrcode": "^1.5.5",
|
||||
"ts-node": "^10.9.2",
|
||||
"tsx": "^4.20.3",
|
||||
"typescript": "^5.8.3"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user