mm_power 1.0.1 → 1.0.2
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 +1 -1
- package/index.js +19 -1949
- package/package.json +55 -50
package/package.json
CHANGED
|
@@ -1,52 +1,57 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
2
|
+
"name": "mm_power",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "功能完整的JavaScript鉴权模块,支持RBAC模型和字段权限控制,完全满足gm、vip、mc等用户账户字段鉴权需求",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "node test.js",
|
|
8
|
+
"lint": "eslint index.js test.js",
|
|
9
|
+
"format": "prettier --write index.js test.js",
|
|
10
|
+
"example": "node complete_rbac_example.js",
|
|
11
|
+
"example-rbac": "node rbac_field_example.js",
|
|
12
|
+
"example-async": "node example_async.js"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [
|
|
15
|
+
"mm_mod",
|
|
16
|
+
"mm_crosscut",
|
|
17
|
+
"mm_authz_policy",
|
|
18
|
+
"鉴权",
|
|
19
|
+
"权限管理",
|
|
20
|
+
"权限控制",
|
|
21
|
+
"用户权限",
|
|
22
|
+
"路由权限",
|
|
23
|
+
"字段权限",
|
|
24
|
+
"角色控制",
|
|
25
|
+
"访问控制",
|
|
26
|
+
"权限验证",
|
|
27
|
+
"auth",
|
|
28
|
+
"authorization",
|
|
29
|
+
"rbac",
|
|
30
|
+
"access-control"
|
|
31
|
+
],
|
|
32
|
+
"layer": "port",
|
|
33
|
+
"group": "authz_policy",
|
|
34
|
+
"author": "MM Modules",
|
|
35
|
+
"license": "MIT",
|
|
36
|
+
"repository": {
|
|
37
|
+
"type": "git",
|
|
38
|
+
"url": "https://gitee.com/qiuwenwu91/mm_power.git"
|
|
39
|
+
},
|
|
40
|
+
"engines": {
|
|
41
|
+
"node": ">=12.0.0"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"eslint": "^10.8.1",
|
|
45
|
+
"prettier": "^3.9.6"
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"eslint-plugin-jsdoc": "^64.0.1",
|
|
49
|
+
"mm_corejs": "^1.1.6",
|
|
50
|
+
"mm_helper": "^1.0.0"
|
|
51
|
+
},
|
|
52
|
+
"files": [
|
|
53
|
+
"index.js",
|
|
54
|
+
"README.md",
|
|
55
|
+
"LICENSE"
|
|
56
|
+
]
|
|
52
57
|
}
|