@nocobase/plugin-acl 0.9.2-alpha.1 → 0.9.2-alpha.3

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.
@@ -24,7 +24,7 @@ const map2obj = map => {
24
24
  _step;
25
25
  try {
26
26
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
27
- let _step$value = _slicedToArray(_step.value, 2),
27
+ const _step$value = _slicedToArray(_step.value, 2),
28
28
  key = _step$value[0],
29
29
  value = _step$value[1];
30
30
  obj[key] = value;
@@ -1,6 +1,6 @@
1
1
  declare const _default: {
2
2
  collectionOptions: import("@nocobase/database").CollectionOptions;
3
- mergeOptions: import("@nocobase/database").MergeOptions;
3
+ mergeOptions: import("deepmerge").Options;
4
4
  extend: boolean;
5
5
  };
6
6
  export default _default;
package/lib/server.js CHANGED
@@ -678,7 +678,7 @@ class PluginACL extends _server().Plugin {
678
678
  }
679
679
  } else {
680
680
  var _action$params;
681
- const filter = parseJsonTemplate((action === null || action === void 0 ? void 0 : (_action$params = action.params) === null || _action$params === void 0 ? void 0 : _action$params.filter) || {}, ctx);
681
+ const filter = yield parseJsonTemplate((action === null || action === void 0 ? void 0 : (_action$params = action.params) === null || _action$params === void 0 ? void 0 : _action$params.filter) || {}, ctx);
682
682
  const sourceInstance = yield ctx.db.getRepository(collectionName).findOne({
683
683
  filterByTk: resourceOf,
684
684
  filter
package/package.json CHANGED
@@ -4,20 +4,20 @@
4
4
  "displayName.zh-CN": "权限控制",
5
5
  "description": "A simple access control based on roles, resources and actions",
6
6
  "description.zh-CN": "基于角色、资源和操作的权限控制插件",
7
- "version": "0.9.2-alpha.1",
7
+ "version": "0.9.2-alpha.3",
8
8
  "license": "AGPL-3.0",
9
9
  "main": "./lib/index.js",
10
10
  "types": "./lib/index.d.ts",
11
11
  "dependencies": {
12
- "@nocobase/acl": "0.9.2-alpha.1",
13
- "@nocobase/database": "0.9.2-alpha.1",
14
- "@nocobase/plugin-users": "0.9.2-alpha.1",
15
- "@nocobase/server": "0.9.2-alpha.1"
12
+ "@nocobase/acl": "0.9.2-alpha.3",
13
+ "@nocobase/database": "0.9.2-alpha.3",
14
+ "@nocobase/plugin-users": "0.9.2-alpha.3",
15
+ "@nocobase/server": "0.9.2-alpha.3"
16
16
  },
17
17
  "repository": {
18
18
  "type": "git",
19
19
  "url": "git+https://github.com/nocobase/nocobase.git",
20
20
  "directory": "packages/plugins/acl"
21
21
  },
22
- "gitHead": "a4f103eb0144f07205aff7b2a6be8ea6aa1330df"
22
+ "gitHead": "b6b5f9372202d942c97d2d90a4197e060db05124"
23
23
  }