@nocobase/acl 0.19.0-alpha.9 → 0.20.0-alpha.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.
@@ -63,11 +63,10 @@ const _ACLAvailableStrategy = class _ACLAvailableStrategy {
63
63
  }
64
64
  }
65
65
  matchAction(actionName) {
66
- var _a;
67
66
  if (this.options.actions == "*") {
68
67
  return true;
69
68
  }
70
- if ((_a = this.actionsAsObject) == null ? void 0 : _a.hasOwnProperty(actionName)) {
69
+ if (Object.prototype.hasOwnProperty.call(this.actionsAsObject || {}, actionName)) {
71
70
  const predicateName = this.actionsAsObject[actionName];
72
71
  if (predicateName) {
73
72
  return import_lodash.default.cloneDeep(predicate[predicateName]);
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@nocobase/acl",
3
- "version": "0.19.0-alpha.9",
3
+ "version": "0.20.0-alpha.2",
4
4
  "description": "",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./lib/index.js",
7
7
  "types": "./lib/index.d.ts",
8
8
  "dependencies": {
9
- "@nocobase/resourcer": "0.19.0-alpha.9",
10
- "@nocobase/utils": "0.19.0-alpha.9",
9
+ "@nocobase/resourcer": "0.20.0-alpha.2",
10
+ "@nocobase/utils": "0.20.0-alpha.2",
11
11
  "minimatch": "^5.1.1"
12
12
  },
13
13
  "repository": {
@@ -15,5 +15,5 @@
15
15
  "url": "git+https://github.com/nocobase/nocobase.git",
16
16
  "directory": "packages/acl"
17
17
  },
18
- "gitHead": "975f9c58a1995df6a8d7a4d191a0dc4a9769ebc5"
18
+ "gitHead": "6fb885dfc3554e4b0f29e9a7a1eecbbe85d0eebb"
19
19
  }