@strapi/permissions 0.0.0-next.fb3a0b82484ce466b1efb1b28f16fc8ef73aba4a → 0.0.0-next.fd9757603c653ca239c45d6e28ab536d2dae0b39

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.
@@ -0,0 +1,19 @@
1
+ /**
2
+ * These were imported from `@strapi/types` but if we do that
3
+ * it becomes a circular dependency. This is the source of truth,
4
+ * they're re-exported from `@strapi/types` for convenience.
5
+ */
6
+ import type { Subject } from '@casl/ability';
7
+ export interface ParametrizedAction {
8
+ name: string;
9
+ params: Record<string, unknown>;
10
+ }
11
+ export interface PermissionRule {
12
+ action: string | ParametrizedAction;
13
+ subject?: Subject | null;
14
+ properties?: {
15
+ fields?: string[];
16
+ };
17
+ condition?: Record<string, unknown>;
18
+ }
19
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjC;AACD,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,GAAG,kBAAkB,CAAC;IACpC,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACzB,UAAU,CAAC,EAAE;QACX,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;KACnB,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACrC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/permissions",
3
- "version": "0.0.0-next.fb3a0b82484ce466b1efb1b28f16fc8ef73aba4a",
3
+ "version": "0.0.0-next.fd9757603c653ca239c45d6e28ab536d2dae0b39",
4
4
  "description": "Strapi's permission layer.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,7 +30,6 @@
30
30
  "build": "pack-up build",
31
31
  "clean": "run -T rimraf ./dist",
32
32
  "lint": "run -T eslint .",
33
- "prepublishOnly": "yarn clean && yarn build",
34
33
  "test:ts": "run -T tsc --noEmit",
35
34
  "test:unit": "run -T jest",
36
35
  "test:unit:watch": "run -T jest --watch",
@@ -38,19 +37,19 @@
38
37
  },
39
38
  "dependencies": {
40
39
  "@casl/ability": "6.5.0",
41
- "@strapi/utils": "0.0.0-next.fb3a0b82484ce466b1efb1b28f16fc8ef73aba4a",
40
+ "@strapi/utils": "0.0.0-next.fd9757603c653ca239c45d6e28ab536d2dae0b39",
42
41
  "lodash": "4.17.21",
43
42
  "qs": "6.11.1",
44
43
  "sift": "16.0.1"
45
44
  },
46
45
  "devDependencies": {
47
- "@strapi/pack-up": "0.0.0-next.fb3a0b82484ce466b1efb1b28f16fc8ef73aba4a",
48
- "eslint-config-custom": "0.0.0-next.fb3a0b82484ce466b1efb1b28f16fc8ef73aba4a",
49
- "tsconfig": "0.0.0-next.fb3a0b82484ce466b1efb1b28f16fc8ef73aba4a"
46
+ "@strapi/pack-up": "4.23.0",
47
+ "eslint-config-custom": "0.0.0-next.fd9757603c653ca239c45d6e28ab536d2dae0b39",
48
+ "tsconfig": "0.0.0-next.fd9757603c653ca239c45d6e28ab536d2dae0b39"
50
49
  },
51
50
  "engines": {
52
- "node": ">=16.0.0 <=20.x.x",
51
+ "node": ">=18.0.0 <=20.x.x",
53
52
  "npm": ">=6.0.0"
54
53
  },
55
- "gitHead": "fb3a0b82484ce466b1efb1b28f16fc8ef73aba4a"
54
+ "gitHead": "fd9757603c653ca239c45d6e28ab536d2dae0b39"
56
55
  }