d33b4e40b8
Replaces DisconnectReason enum import with type-only WASocket import and uses 401 directly instead of DisconnectReason.loggedOut. Baileys is an ES module that cannot be executed in Jest's CommonJS mode, so removing the value import (keeping only type imports) prevents ts-jest from trying to execute the module. Also updated session-pool.test.ts to verify end() is called with the expected Boom error object instead of undefined. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
34 lines
898 B
JSON
34 lines
898 B
JSON
{
|
|
"name": "@tower/worker",
|
|
"version": "0.0.1",
|
|
"scripts": {
|
|
"generate": "prisma generate --schema=../api/prisma/schema.prisma",
|
|
"build": "tsc",
|
|
"dev": "DOTENV_CONFIG_PATH=../../.env ts-node -r dotenv/config src/main.ts",
|
|
"start": "node dist/main.js",
|
|
"test": "jest"
|
|
},
|
|
"dependencies": {
|
|
"@hapi/boom": "^10.0.1",
|
|
"@prisma/client": "^6.0.0",
|
|
"@tower/config": "workspace:*",
|
|
"@tower/logger": "workspace:*",
|
|
"@tower/types": "workspace:*",
|
|
"@whiskeysockets/baileys": "7.0.0-rc13",
|
|
"bullmq": "^5.0.0",
|
|
"ioredis": "^5.0.0",
|
|
"qrcode-terminal": "^0.12.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/jest": "^29.0.0",
|
|
"@types/node": "^22.0.0",
|
|
"@types/qrcode-terminal": "^0.12.2",
|
|
"dotenv": "^17.4.2",
|
|
"jest": "^29.0.0",
|
|
"prisma": "^6.0.0",
|
|
"ts-jest": "^29.0.0",
|
|
"ts-node": "^10.9.0",
|
|
"typescript": "^5.7.0"
|
|
}
|
|
}
|