@tachybase/plugin-sub-accounts 0.23.41 → 0.23.47
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/externalVersion.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
"@tachybase/client": "0.23.
|
|
3
|
-
"@tachybase/server": "0.23.
|
|
4
|
-
"@tachybase/acl": "0.23.
|
|
5
|
-
"@tachybase/utils": "0.23.
|
|
6
|
-
"@tachybase/database": "0.23.
|
|
7
|
-
"@tachybase/actions": "0.23.
|
|
8
|
-
"@tachybase/module-acl": "0.23.
|
|
2
|
+
"@tachybase/client": "0.23.47",
|
|
3
|
+
"@tachybase/server": "0.23.47",
|
|
4
|
+
"@tachybase/acl": "0.23.47",
|
|
5
|
+
"@tachybase/utils": "0.23.47",
|
|
6
|
+
"@tachybase/database": "0.23.47",
|
|
7
|
+
"@tachybase/actions": "0.23.47",
|
|
8
|
+
"@tachybase/module-acl": "0.23.47"
|
|
9
9
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"author":"Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me)","name":"minimatch","description":"a glob matcher in javascript","publishConfig":{"tag":"legacy-v5"},"version":"5.1.6","repository":{"type":"git","url":"git://github.com/isaacs/minimatch.git"},"main":"minimatch.js","scripts":{"test":"tap","snap":"tap","preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags"},"engines":{"node":">=10"},"dependencies":{"brace-expansion":"^2.0.1"},"devDependencies":{"tap":"^16.3.2"},"license":"ISC","files":["minimatch.js","lib"],"_lastModified":"2025-02-
|
|
1
|
+
{"author":"Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me)","name":"minimatch","description":"a glob matcher in javascript","publishConfig":{"tag":"legacy-v5"},"version":"5.1.6","repository":{"type":"git","url":"git://github.com/isaacs/minimatch.git"},"main":"minimatch.js","scripts":{"test":"tap","snap":"tap","preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags"},"engines":{"node":">=10"},"dependencies":{"brace-expansion":"^2.0.1"},"devDependencies":{"tap":"^16.3.2"},"license":"ISC","files":["minimatch.js","lib"],"_lastModified":"2025-02-21T02:31:12.373Z"}
|
|
@@ -32,10 +32,8 @@ __export(RoleSnippets_exports, {
|
|
|
32
32
|
module.exports = __toCommonJS(RoleSnippets_exports);
|
|
33
33
|
var import_minimatch = __toESM(require("minimatch"));
|
|
34
34
|
class RoleSnippetItem {
|
|
35
|
-
// 类似 pm pm.mobile-client.interface ui 的写法
|
|
36
|
-
name;
|
|
37
|
-
allow = true;
|
|
38
35
|
constructor(str) {
|
|
36
|
+
this.allow = true;
|
|
39
37
|
this.allow = !str.startsWith("!");
|
|
40
38
|
if (this.allow) {
|
|
41
39
|
this.name = str;
|
|
@@ -45,9 +43,9 @@ class RoleSnippetItem {
|
|
|
45
43
|
}
|
|
46
44
|
}
|
|
47
45
|
class RoleSnippets {
|
|
48
|
-
allowList = [];
|
|
49
|
-
blockList = [];
|
|
50
46
|
constructor(snippets) {
|
|
47
|
+
this.allowList = [];
|
|
48
|
+
this.blockList = [];
|
|
51
49
|
snippets.forEach((snippet) => {
|
|
52
50
|
const roleSnippet = new RoleSnippetItem(snippet);
|
|
53
51
|
if (roleSnippet.allow) {
|
|
@@ -21,8 +21,8 @@ __export(RoleStrategy_exports, {
|
|
|
21
21
|
});
|
|
22
22
|
module.exports = __toCommonJS(RoleStrategy_exports);
|
|
23
23
|
class RoleStrategy {
|
|
24
|
-
strategyList = [];
|
|
25
24
|
constructor(list) {
|
|
25
|
+
this.strategyList = [];
|
|
26
26
|
for (const str of list) {
|
|
27
27
|
this.strategyList.push(RoleStrategy.stringToItem(str));
|
|
28
28
|
}
|
|
@@ -26,7 +26,6 @@ var import_RoleActionParamsMerge = require("../acl/RoleActionParamsMerge");
|
|
|
26
26
|
var import_RoleSnippets = require("../acl/RoleSnippets");
|
|
27
27
|
var import_RoleStrategy = require("../acl/RoleStrategy");
|
|
28
28
|
class MergeRoleModel extends import_module_acl.RoleModel {
|
|
29
|
-
rootResource;
|
|
30
29
|
/**
|
|
31
30
|
* 获取源头角色
|
|
32
31
|
* @param transaction
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tachybase/plugin-sub-accounts",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.47",
|
|
4
4
|
"description": "Generates synthetic roles, each user can create their own sub-accounts (unfinished)",
|
|
5
5
|
"main": "dist/server/index.js",
|
|
6
6
|
"dependencies": {},
|
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
"minimatch": "^5.1.6"
|
|
9
9
|
},
|
|
10
10
|
"peerDependencies": {
|
|
11
|
-
"@tachybase/
|
|
12
|
-
"@tachybase/
|
|
13
|
-
"@tachybase/
|
|
14
|
-
"@tachybase/
|
|
15
|
-
"@tachybase/
|
|
16
|
-
"@tachybase/
|
|
17
|
-
"@tachybase/test": "0.23.
|
|
18
|
-
"@tachybase/
|
|
11
|
+
"@tachybase/acl": "0.23.47",
|
|
12
|
+
"@tachybase/actions": "0.23.47",
|
|
13
|
+
"@tachybase/client": "0.23.47",
|
|
14
|
+
"@tachybase/database": "0.23.47",
|
|
15
|
+
"@tachybase/module-acl": "0.23.47",
|
|
16
|
+
"@tachybase/server": "0.23.47",
|
|
17
|
+
"@tachybase/test": "0.23.47",
|
|
18
|
+
"@tachybase/utils": "0.23.47"
|
|
19
19
|
},
|
|
20
20
|
"description.zh-CN": "生成合成角色,每个用户可以生成自己的子账户(未完成)",
|
|
21
21
|
"displayName.zh-CN": "子账户和合成角色",
|