@nocobase/acl 1.2.34-alpha → 1.2.36-alpha

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.
Files changed (2) hide show
  1. package/lib/acl.js +3 -3
  2. package/package.json +4 -4
package/lib/acl.js CHANGED
@@ -253,7 +253,7 @@ const _ACL = class _ACL extends import_events.default {
253
253
  state
254
254
  },
255
255
  $user: getUser(ctx),
256
- $nRole: () => state.currentRole
256
+ $nRole: /* @__PURE__ */ __name(() => state.currentRole, "$nRole")
257
257
  }
258
258
  });
259
259
  json.filter = filter;
@@ -361,7 +361,7 @@ const _ACL = class _ACL extends import_events.default {
361
361
  ((_d = ctx.log) == null ? void 0 : _d.debug) && ctx.log.debug("acl parsedParams", parsedParams);
362
362
  ctx.permission.rawParams = import_lodash.default.cloneDeep(resourcerAction.params);
363
363
  resourcerAction.mergeParams(parsedParams, {
364
- appends: (x, y) => {
364
+ appends: /* @__PURE__ */ __name((x, y) => {
365
365
  if (!x) {
366
366
  return [];
367
367
  }
@@ -369,7 +369,7 @@ const _ACL = class _ACL extends import_events.default {
369
369
  return x;
370
370
  }
371
371
  return x.filter((i) => y.includes(i.split(".").shift()));
372
- }
372
+ }, "appends")
373
373
  });
374
374
  ctx.permission.mergedParams = import_lodash.default.cloneDeep(resourcerAction.params);
375
375
  }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@nocobase/acl",
3
- "version": "1.2.34-alpha",
3
+ "version": "1.2.36-alpha",
4
4
  "description": "",
5
5
  "license": "AGPL-3.0",
6
6
  "main": "./lib/index.js",
7
7
  "types": "./lib/index.d.ts",
8
8
  "dependencies": {
9
- "@nocobase/resourcer": "1.2.34-alpha",
10
- "@nocobase/utils": "1.2.34-alpha",
9
+ "@nocobase/resourcer": "1.2.36-alpha",
10
+ "@nocobase/utils": "1.2.36-alpha",
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": "c62835e64106fcfb0b6554e75dac6c368276bcc2"
18
+ "gitHead": "850d812db1d8e7c0b62b77c6a262ab9faf9e203f"
19
19
  }