Files
CloudFlare-ImgBed/package.json
T
MarSeventh 61f210e0cb feat: 会话安全策略 - 后端支持动态 Secure/MaxAge 配置
- 扩展 getSecurityConfig 和 fetchSecurityConfig 默认值,新增 sessionSecure、userSessionMaxAge、adminSessionMaxAge 字段
- 改造 buildSessionCookie 支持 secure 参数
- createSession 根据 authType 动态读取配置计算 maxAge
- destroySession 读取 sessionSecure 确保清除 Cookie 属性一致
2026-04-21 10:58:54 +08:00

31 lines
990 B
JSON

{
"name": "cloudflare-imgbed",
"version": "2.6.7",
"type": "module",
"scripts": {
"ci-test": "concurrently --kill-others \"npm start\" \"wait-on http://localhost:8080 && mocha\"",
"ci-test:docker": "concurrently --kill-others \"npm run start:docker\" \"wait-on http://localhost:8080 && mocha\"",
"test": "mocha",
"start": "npx wrangler pages dev ./ --kv \"img_url\" --r2 \"img_r2\" --ip 0.0.0.0 --port 8080 --persist-to ./data",
"start:docker": "node --import ./server/register.mjs server/index.js"
},
"dependencies": {
"@aws-sdk/client-s3": "3.726.1",
"@cloudflare/pages-plugin-sentry": "^1.1.3",
"@sentry/tracing": "^7.114.0",
"better-sqlite3": "^11.9.1",
"hono": "^4.7.4",
"@hono/node-server": "^1.13.8",
"miniflare": "^3.20240718.0"
},
"overrides": {
"fast-xml-parser": "^5.3.6"
},
"devDependencies": {
"concurrently": "^8.2.2",
"mocha": "^10.6.0",
"wait-on": "^7.2.0",
"wrangler": "^4.24.0"
}
}