@povio/openapi-codegen-cli 2.0.8-rc.22 → 2.0.8-rc.23

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/acl.mjs CHANGED
@@ -65,8 +65,8 @@ const Can = ({ use, ...props }) => {
65
65
  function useAclCheck({ errorHandler } = {}) {
66
66
  const ability = AbilityContext.useAbility();
67
67
  return { checkAcl: useCallback((appAbility) => {
68
- const can = ability.can;
69
- if (!can(...appAbility)) (errorHandler ?? SharedErrorHandler).rethrowError(/* @__PURE__ */ new Error("ACL check failed"));
68
+ const [action, subject] = appAbility;
69
+ if (!ability.can(action, subject)) (errorHandler ?? SharedErrorHandler).rethrowError(/* @__PURE__ */ new Error("ACL check failed"));
70
70
  }, [ability, errorHandler]) };
71
71
  }
72
72
 
package/dist/sh.mjs CHANGED
@@ -39,7 +39,7 @@ function logBanner(message) {
39
39
  * Fetch the version from package.json
40
40
  */
41
41
  function getVersion() {
42
- return "2.0.8-rc.22";
42
+ return "2.0.8-rc.23";
43
43
  }
44
44
 
45
45
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@povio/openapi-codegen-cli",
3
- "version": "2.0.8-rc.22",
3
+ "version": "2.0.8-rc.23",
4
4
  "keywords": [
5
5
  "codegen",
6
6
  "openapi",