@tachybase/acl 1.6.11 → 1.6.13-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.
package/lib/acl.d.ts CHANGED
@@ -100,7 +100,7 @@ export declare class ACL extends EventEmitter {
100
100
  use(fn: any, options?: ToposortOptions): void;
101
101
  allow(resourceName: string, actionNames: string[] | string, condition?: string | ConditionFunc): void;
102
102
  /**
103
- * @deprecated
103
+ * @deprecated Use `allow()` instead. This method will be removed in a future major version.
104
104
  */
105
105
  skip(resourceName: string, actionNames: string[] | string, condition?: string | ConditionFunc): void;
106
106
  /**
package/lib/acl.js CHANGED
@@ -236,12 +236,6 @@ const _ACL = class _ACL extends import_node_events.default {
236
236
  });
237
237
  }
238
238
  allow(resourceName, actionNames, condition) {
239
- return this.skip(resourceName, actionNames, condition);
240
- }
241
- /**
242
- * @deprecated
243
- */
244
- skip(resourceName, actionNames, condition) {
245
239
  if (!Array.isArray(actionNames)) {
246
240
  actionNames = [actionNames];
247
241
  }
@@ -249,6 +243,12 @@ const _ACL = class _ACL extends import_node_events.default {
249
243
  this.allowManager.allow(resourceName, actionName, condition);
250
244
  }
251
245
  }
246
+ /**
247
+ * @deprecated Use `allow()` instead. This method will be removed in a future major version.
248
+ */
249
+ skip(resourceName, actionNames, condition) {
250
+ return this.allow(resourceName, actionNames, condition);
251
+ }
252
252
  /**
253
253
  * @internal
254
254
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tachybase/acl",
3
- "version": "1.6.11",
3
+ "version": "1.6.13-alpha.2",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/tegojs/tego#readme",
6
6
  "bugs": {
@@ -18,9 +18,9 @@
18
18
  "koa-compose": "^4.1.0",
19
19
  "lodash": "4.17.21",
20
20
  "minimatch": "^5.1.6",
21
- "@tachybase/resourcer": "1.6.11",
22
- "@tachybase/actions": "1.6.11",
23
- "@tachybase/utils": "1.6.11"
21
+ "@tachybase/utils": "1.6.13-alpha.2",
22
+ "@tachybase/actions": "1.6.13-alpha.2",
23
+ "@tachybase/resourcer": "1.6.13-alpha.2"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/lodash": "4.17.20",