mirror of
https://github.com/Silentely/eSIM-Tools.git
synced 2026-09-03 06:24:20 +08:00
- 新增统一的中间件模块,提供鉴权、CORS和错误处理功能 - 重构所有Functions使用withAuth中间件简化代码结构 - 添加安全存储模块替代localStorage,防御XSS攻击 - 引入HTML清理工具,自动转义特殊字符和验证URL安全性 - 创建代码质量检查脚本,验证语法、环境变量和依赖完整性 - 添加构建日志工具和重构脚本,统一替换console.log为Logger - 引入ESLint配置,提升代码质量和一致性 - 重构Giffgaff相关API,统一错误处理和验证逻辑 - 优化构建脚本,添加压缩和图片优化功能 - 新增健康检查端点,用于服务监控和状态报告
89 lines
2.5 KiB
JSON
89 lines
2.5 KiB
JSON
{
|
|
"name": "esim-tools",
|
|
"version": "2.0.0",
|
|
"description": "专为Giffgaff和Simyo用户设计的eSIM管理工具集",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"prestart": "npm run build",
|
|
"predev": "npm run build",
|
|
"prenetlify-dev": "npm run build",
|
|
"start": "node server.js",
|
|
"dev": "nodemon server.js",
|
|
"build": "npm run build:static",
|
|
"build:static": "node scripts/build-static.js",
|
|
"test": "jest",
|
|
"test:watch": "jest --watch",
|
|
"test:coverage": "jest --coverage",
|
|
"netlify-dev": "npx --yes netlify-cli@latest dev",
|
|
"deploy": "npm run build && npx --yes netlify-cli@latest deploy --prod",
|
|
"optimize-images": "node scripts/optimize-images.js",
|
|
"compress": "node scripts/compress.js",
|
|
"security-check": "node scripts/security-check.js",
|
|
"quality-check": "node scripts/quality-check.js",
|
|
"deploy-prepare": "node scripts/deploy-prepare.js",
|
|
"deploy-analyze": "node scripts/deploy-analyze.js",
|
|
"deploy-test": "node scripts/test-deploy-config.js"
|
|
},
|
|
"keywords": [
|
|
"esim",
|
|
"giffgaff",
|
|
"simyo",
|
|
"mobile",
|
|
"sim-card",
|
|
"oauth",
|
|
"api"
|
|
],
|
|
"author": "eSIM Tools Team",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"axios": "^1.12.0",
|
|
"cheerio": "^1.0.0-rc.12",
|
|
"cors": "^2.8.5",
|
|
"dotenv": "^16.3.1",
|
|
"express": "^4.18.2",
|
|
"helmet": "^7.1.0",
|
|
"morgan": "^1.10.0"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.23.0",
|
|
"@babel/plugin-transform-runtime": "^7.28.0",
|
|
"@babel/preset-env": "^7.23.0",
|
|
"@babel/runtime": "^7.28.2",
|
|
"@testing-library/jest-dom": "^6.1.5",
|
|
"@testing-library/user-event": "^14.5.1",
|
|
"autoprefixer": "^10.4.16",
|
|
"babel-loader": "^9.1.3",
|
|
"compression-webpack-plugin": "^10.0.0",
|
|
"core-js": "^3.45.0",
|
|
"css-loader": "^6.8.1",
|
|
"cssnano": "^6.0.1",
|
|
"esbuild": "^0.25.8",
|
|
"http-proxy-middleware": "^3.0.5",
|
|
"jest": "^29.7.0",
|
|
"jest-environment-jsdom": "^29.7.0",
|
|
"nodemon": "^3.0.2",
|
|
"on-headers": "^1.1.0",
|
|
"postcss": "^8.4.31",
|
|
"postcss-cli": "^11.0.1",
|
|
"postcss-loader": "^7.3.3",
|
|
"sharp": "^0.34.3",
|
|
"style-loader": "^3.3.3",
|
|
"terser-webpack-plugin": "^5.3.9",
|
|
"webpack": "^5.89.0",
|
|
"webpack-cli": "^5.1.4",
|
|
"workbox-webpack-plugin": "^7.0.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=18.0.0",
|
|
"npm": ">=8.0.0"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/Silentely/eSIM-Tools.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/Silentely/eSIM-Tools/issues"
|
|
},
|
|
"homepage": "https://esim.cosr.eu.org"
|
|
}
|