@nocobase/acl 0.7.4-alpha.7 → 0.7.6-alpha.1

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/lib/acl.d.ts CHANGED
@@ -48,7 +48,7 @@ export declare class ACL extends EventEmitter {
48
48
  registerConfigResources(names: string[]): void;
49
49
  registerConfigResource(name: string): void;
50
50
  isConfigResource(name: string): boolean;
51
- setAvailableAction(name: string, options: AvailableActionOptions): void;
51
+ setAvailableAction(name: string, options?: AvailableActionOptions): void;
52
52
  getAvailableAction(name: string): AclAvailableAction;
53
53
  getAvailableActions(): Map<string, AclAvailableAction>;
54
54
  setAvailableStrategy(name: string, options: Omit<AvailableStrategyOptions, 'acl'>): void;
package/lib/acl.js CHANGED
@@ -157,7 +157,7 @@ class ACL extends _events().default {
157
157
  return this.configResources.includes(name);
158
158
  }
159
159
 
160
- setAvailableAction(name, options) {
160
+ setAvailableAction(name, options = {}) {
161
161
  this.availableActions.set(name, new _aclAvailableAction.AclAvailableAction(name, options));
162
162
 
163
163
  if (options.aliases) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/acl",
3
- "version": "0.7.4-alpha.7",
3
+ "version": "0.7.6-alpha.1",
4
4
  "description": "",
5
5
  "license": "Apache-2.0",
6
6
  "licenses": [
@@ -12,7 +12,7 @@
12
12
  "main": "./lib/index.js",
13
13
  "types": "./lib/index.d.ts",
14
14
  "dependencies": {
15
- "@nocobase/resourcer": "0.7.4-alpha.7",
15
+ "@nocobase/resourcer": "0.7.6-alpha.1",
16
16
  "json-templates": "^4.2.0"
17
17
  },
18
18
  "repository": {
@@ -20,5 +20,5 @@
20
20
  "url": "git+https://github.com/nocobase/nocobase.git",
21
21
  "directory": "packages/acl"
22
22
  },
23
- "gitHead": "77f22e6da464d19be111835316faf4b94cd80413"
23
+ "gitHead": "f20ce011a9ac516dc6aec110979f063a0e63f923"
24
24
  }