@reglow/reglow 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -16
- package/dist/reglow/core/config.d.ts +3 -0
- package/dist/reglow/core/config.js +12 -2
- package/dist/reglow/core/config.js.map +1 -1
- package/dist/reglow/core/models.d.ts +2 -0
- package/dist/reglow/core/models.js +1 -0
- package/dist/reglow/core/models.js.map +1 -1
- package/dist/reglow/core/tenant_guard.d.ts +26 -0
- package/dist/reglow/core/tenant_guard.js +116 -0
- package/dist/reglow/core/tenant_guard.js.map +1 -0
- package/dist/reglow/modules/agreement/controller.js +1 -1
- package/dist/reglow/modules/agreement/controller.js.map +1 -1
- package/dist/reglow/modules/ai/controller.js +22 -7
- package/dist/reglow/modules/ai/controller.js.map +1 -1
- package/dist/reglow/modules/article/controller.js +21 -7
- package/dist/reglow/modules/article/controller.js.map +1 -1
- package/dist/reglow/modules/dashboard/controller.d.ts +6 -0
- package/dist/reglow/modules/dashboard/controller.js +8 -0
- package/dist/reglow/modules/dashboard/controller.js.map +1 -0
- package/dist/reglow/modules/dashboard/router.d.ts +11 -0
- package/dist/reglow/modules/dashboard/router.js +9 -0
- package/dist/reglow/modules/dashboard/router.js.map +1 -0
- package/dist/reglow/modules/dashboard/service.d.ts +8 -0
- package/dist/reglow/modules/dashboard/service.js +34 -0
- package/dist/reglow/modules/dashboard/service.js.map +1 -0
- package/dist/reglow/modules/dept/controller.js +1 -1
- package/dist/reglow/modules/dept/controller.js.map +1 -1
- package/dist/reglow/modules/material/controller.js +6 -3
- package/dist/reglow/modules/material/controller.js.map +1 -1
- package/dist/reglow/modules/menu/controller.js +1 -1
- package/dist/reglow/modules/menu/controller.js.map +1 -1
- package/dist/reglow/modules/photo/controller.js +8 -8
- package/dist/reglow/modules/photo/controller.js.map +1 -1
- package/dist/reglow/modules/photo/controller_client.js +37 -15
- package/dist/reglow/modules/photo/controller_client.js.map +1 -1
- package/dist/reglow/modules/photo/policy.d.ts +35 -0
- package/dist/reglow/modules/photo/policy.js +40 -0
- package/dist/reglow/modules/photo/policy.js.map +1 -0
- package/dist/reglow/modules/security/audit_chain.d.ts +64 -0
- package/dist/reglow/modules/security/audit_chain.js +91 -0
- package/dist/reglow/modules/security/audit_chain.js.map +1 -0
- package/dist/reglow/modules/security/crypto.d.ts +18 -0
- package/dist/reglow/modules/security/crypto.js +78 -0
- package/dist/reglow/modules/security/crypto.js.map +1 -0
- package/dist/reglow/modules/security/repository.d.ts +6 -0
- package/dist/reglow/modules/security/repository.js +30 -0
- package/dist/reglow/modules/security/repository.js.map +1 -0
- package/dist/reglow/modules/video/controller.js +15 -7
- package/dist/reglow/modules/video/controller.js.map +1 -1
- package/dist/reglow/scripts/init-data.js +1561 -221
- package/dist/reglow/scripts/init-data.js.map +1 -1
- package/dist/reglow/scripts/remove-business-menu.js +3 -3
- package/dist/reglow/scripts/remove-business-menu.js.map +1 -1
- package/dist/reglow/scripts/schema.js +16 -14
- package/dist/reglow/scripts/schema.js.map +1 -1
- package/dist/reglow/scripts/sync-menu-mysql-to-sqlite.js +2 -2
- package/dist/reglow/scripts/sync-menu-mysql-to-sqlite.js.map +1 -1
- package/dist/server.js +23 -1
- package/dist/server.js.map +1 -1
- package/package.json +8 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reglow/reglow",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "ReglowAdmin 通用后台框架 - Node.js (Fastify + TypeScript) 版",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -36,16 +36,17 @@
|
|
|
36
36
|
"dev": "tsx server.ts",
|
|
37
37
|
"start": "node dist/server.js",
|
|
38
38
|
"type-check": "tsc --noEmit -p tsconfig.json",
|
|
39
|
-
"test": "node --import tsx --test tests/sort.test.ts"
|
|
39
|
+
"test": "node --import tsx --test tests/sort.test.ts tests/photo_policy.test.ts tests/audit_chain.test.ts tests/tenant_guard.test.ts tests/common_contract.test.ts tests/exception_handler.test.ts tests/middleware.test.ts tests/core_infra.test.ts tests/core_redis.test.ts tests/core_session.test.ts tests/core_auth.test.ts tests/core_payment.test.ts tests/core_storage.test.ts tests/core_email.test.ts tests/core_wechat.test.ts tests/core_sms.test.ts tests/core_database_mysql.test.ts tests/core_plugin.test.ts",
|
|
40
|
+
"test:coverage": "c8 --all --src reglow --extension .ts --exclude \"**/dist/**\" --reporter=text-summary --reporter=json-summary --reporter=html --reports-dir coverage node --import tsx --test tests/sort.test.ts tests/photo_policy.test.ts tests/audit_chain.test.ts tests/tenant_guard.test.ts tests/common_contract.test.ts tests/exception_handler.test.ts tests/middleware.test.ts tests/core_infra.test.ts tests/core_redis.test.ts tests/core_session.test.ts tests/core_auth.test.ts tests/core_payment.test.ts tests/core_storage.test.ts tests/core_email.test.ts tests/core_wechat.test.ts tests/core_sms.test.ts tests/core_database_mysql.test.ts tests/core_plugin.test.ts"
|
|
40
41
|
},
|
|
41
42
|
"peerDependencies": {
|
|
42
|
-
"fastify": "^4.28.1",
|
|
43
43
|
"@fastify/cors": "^9.0.1",
|
|
44
44
|
"@fastify/multipart": "^8.3.0",
|
|
45
45
|
"@fastify/static": "^7.0.4",
|
|
46
46
|
"@fastify/swagger": "^8.15.0",
|
|
47
47
|
"@fastify/swagger-ui": "^4.1.0",
|
|
48
48
|
"@fastify/websocket": "^10.0.1",
|
|
49
|
+
"fastify": "^4.28.1",
|
|
49
50
|
"knex": "^3.1.0"
|
|
50
51
|
},
|
|
51
52
|
"dependencies": {
|
|
@@ -56,7 +57,7 @@
|
|
|
56
57
|
"mysql2": "^3.11.0"
|
|
57
58
|
},
|
|
58
59
|
"optionalDependencies": {
|
|
59
|
-
"better-sqlite3": "^
|
|
60
|
+
"better-sqlite3": "^13.0.3"
|
|
60
61
|
},
|
|
61
62
|
"devDependencies": {
|
|
62
63
|
"@fastify/cors": "^9.0.1",
|
|
@@ -65,16 +66,18 @@
|
|
|
65
66
|
"@fastify/swagger": "^8.15.0",
|
|
66
67
|
"@fastify/swagger-ui": "^4.1.0",
|
|
67
68
|
"@fastify/websocket": "^10.0.1",
|
|
69
|
+
"@scalar/fastify-api-reference": "^1.71.0",
|
|
68
70
|
"@sinclair/typebox": "^0.34.0",
|
|
69
71
|
"@types/bcryptjs": "^2.4.6",
|
|
70
72
|
"@types/jsonwebtoken": "^9.0.7",
|
|
71
73
|
"@types/node": "^22.9.0",
|
|
74
|
+
"c8": "^9.1.0",
|
|
72
75
|
"fastify": "^4.28.1",
|
|
73
76
|
"knex": "^3.1.0",
|
|
74
77
|
"tsx": "^4.19.0",
|
|
75
78
|
"typescript": "^5.6.3"
|
|
76
79
|
},
|
|
77
80
|
"engines": {
|
|
78
|
-
"node": ">=
|
|
81
|
+
"node": ">=25"
|
|
79
82
|
}
|
|
80
83
|
}
|