-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
53 lines (53 loc) · 2.1 KB
/
Copy pathpackage.json
File metadata and controls
53 lines (53 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"name": "telegram-text-sender",
"version": "1.0.0",
"description": "Vanilla JS приложение для отправки выделенного текста в Telegram бот",
"main": "src/server.js",
"scripts": {
"start": "NODE_ENV=production node src/server.js",
"dev": "NODE_ENV=development nodemon src/server.js",
"debug": "NODE_ENV=development node --inspect src/server.js",
"test": "echo \"Тесты не настроены\" && exit 0",
"build": "echo \"Сборка не требуется для Vanilla JS\" && exit 0",
"setup": "npm install && cp env-example.txt .env",
"health": "curl -s http://localhost:3001/api/health | jq . 2>/dev/null || curl -s http://localhost:3001/api/health",
"test-send": "curl -X POST http://localhost:3001/api/test-send",
"security-check": "echo '🔒 Проверка безопасности:' && echo '✅ Токены в .env' && echo '✅ config.js в .gitignore' && echo '✅ API middleware активен' && echo '✅ CSP политика настроена'",
"check-chat-id": "echo '1. Напишите сообщение боту @DummyLanding0394_bot в Telegram' && echo '2. Затем выполните:' && echo 'curl -s \"https://api.telegram.org/bot8095752954:AAEle0QLrw-BbukL8j9jbDRInm2zbjjH2P8/getUpdates\" | jq \".result[-1].message.chat.id\" 2>/dev/null || echo \"Установите jq или проверьте URL вручную\"'"
},
"keywords": [
"telegram",
"bot",
"vanilla-js",
"text-selection",
"html2canvas"
],
"author": "JavaScript Developer",
"license": "MIT",
"dependencies": {
"express": "^4.18.2",
"multer": "^1.4.5-lts.1",
"axios": "^1.6.0",
"cors": "^2.8.5",
"form-data": "^4.0.0",
"helmet": "^7.1.0",
"express-rate-limit": "^7.1.5",
"dotenv": "^16.3.1"
},
"devDependencies": {
"nodemon": "^3.0.1"
},
"engines": {
"node": ">=16.0.0"
},
"repository": {
"type": "git",
"url": "."
},
"browserslist": [
"last 2 Chrome versions",
"last 2 Firefox versions",
"last 2 Edge versions",
"Safari >= 12"
]
}