mirror of
https://github.com/Silentely/eSIM-Tools.git
synced 2026-09-10 01:38:49 +08:00
前端监控 (src/js/modules/sentry-init.js): - 使用 @sentry/browser SDK v10+ 和 browserTracingIntegration() - 智能环境检测,开发环境自动禁用 - 敏感数据过滤 (authKey, token, password, cookie) - 性能追踪采样率 10% 后端监控 (netlify/functions/_shared/sentry.js): - 使用 @sentry/node 用于 Netlify Functions - 仅上报 5xx 服务端错误,节省配额 - Serverless 环境 flush() 确保错误发送 构建集成 (webpack.config.js): - @sentry/webpack-plugin 自动上传 Source Maps - 自动使用 Netlify COMMIT_REF 作为 release 版本 - 上传后自动删除本地 source maps 环境变量: - SENTRY_DSN: 错误上报端点 - SENTRY_AUTH_TOKEN: Source Maps 上传认证 - SENTRY_ORG / SENTRY_PROJECT: 组织和项目标识
92 lines
2.6 KiB
JSON
92 lines
2.6 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": {
|
|
"@sentry/browser": "^10.30.0",
|
|
"@sentry/node": "^10.30.0",
|
|
"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",
|
|
"@sentry/webpack-plugin": "^4.6.1",
|
|
"@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"
|
|
}
|