@yss123/cage-testkit 0.3.2 → 0.4.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/dist/env.js +1 -1
- package/package.json +8 -8
package/dist/env.js
CHANGED
|
@@ -105,7 +105,7 @@ export async function createTestEnv(opts) {
|
|
|
105
105
|
},
|
|
106
106
|
/**
|
|
107
107
|
* 先创建独立角色,再逐个授能力与范围,最后创建用户并分配该角色。
|
|
108
|
-
* caps=all 取当前内核目录;params
|
|
108
|
+
* caps=all 取当前内核目录;params 给特定能力提供自定义参数,scopes 保留组合子语义。
|
|
109
109
|
* 返回的 ctx 会重新解析身份,账号没有自动设置登录密码,HTTP 测试需单独设置。
|
|
110
110
|
*/
|
|
111
111
|
async user(o) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yss123/cage-testkit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "派生测试运行器、fake 仓储、测试数据库",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
"zod": "^4.1.5"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@yss123/cage-kernel": "0.
|
|
33
|
+
"@yss123/cage-kernel": "0.4.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/pg": "^8.15.5",
|
|
37
37
|
"vitest": "^4.1.12",
|
|
38
|
-
"@yss123/cage-ai": "0.
|
|
39
|
-
"@yss123/cage-
|
|
40
|
-
"@yss123/cage-admin": "0.
|
|
41
|
-
"@yss123/cage-
|
|
42
|
-
"@yss123/cage-connectors": "0.
|
|
43
|
-
"@yss123/cage-
|
|
38
|
+
"@yss123/cage-ai": "0.4.0",
|
|
39
|
+
"@yss123/cage-kernel": "0.4.0",
|
|
40
|
+
"@yss123/cage-admin": "0.4.0",
|
|
41
|
+
"@yss123/cage-approval": "0.4.0",
|
|
42
|
+
"@yss123/cage-connectors": "0.4.0",
|
|
43
|
+
"@yss123/cage-http": "0.4.0"
|
|
44
44
|
},
|
|
45
45
|
"license": "MIT",
|
|
46
46
|
"repository": {
|