@unchainedshop/roles 2.11.3 → 2.12.0

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.
@@ -2,3 +2,4 @@ export { Roles, Role } from './roles.js';
2
2
  export { has } from './utils/has.js';
3
3
  export { isFunction } from './utils/isFunction.js';
4
4
  export { permissions } from './utils/permissions.js';
5
+ //# sourceMappingURL=roles-index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"roles-index.d.ts","sourceRoot":"","sources":["../src/roles-index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAEzC,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC"}
package/lib/roles.d.ts CHANGED
@@ -21,3 +21,4 @@ export declare class Role implements RoleInterface {
21
21
  */
22
22
  allow(action: any, allow: any): void;
23
23
  }
24
+ //# sourceMappingURL=roles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../src/roles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAInF,eAAO,MAAM,KAAK,EAAE,cA6EnB,CAAC;AAEF;;GAEG;AACH,qBAAa,IAAK,YAAW,aAAa;IAKrB,IAAI,EAAE,MAAM;IAJ/B,UAAU,EAAE;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAEpC,OAAO,EAAE;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;gBAEd,IAAI,EAAE,MAAM;IAS/B;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG;IAqBhC;;OAEG;IACH,KAAK,CAAC,MAAM,KAAA,EAAE,KAAK,KAAA;CAiBpB"}
@@ -1,3 +1,4 @@
1
1
  export declare const has: (obj: {
2
2
  [key: string]: any;
3
3
  }, key: string) => boolean;
4
+ //# sourceMappingURL=has.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"has.d.ts","sourceRoot":"","sources":["../../src/utils/has.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,GAAG,QAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,OAAO,MAAM,KAAG,OAS9D,CAAC"}
@@ -1 +1,2 @@
1
1
  export declare const isFunction: (func: () => any) => boolean;
2
+ //# sourceMappingURL=isFunction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isFunction.d.ts","sourceRoot":"","sources":["../../src/utils/isFunction.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,SAAU,MAAM,GAAG,KAAG,OAE5C,CAAC"}
@@ -1 +1,2 @@
1
1
  export declare const permissions: (userRoles: any, allRoles: any) => Promise<any[]>;
2
+ //# sourceMappingURL=permissions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../src/utils/permissions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,cAAqB,GAAG,YAAY,GAAG,mBAoB9D,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unchainedshop/roles",
3
- "version": "2.11.3",
3
+ "version": "2.12.0",
4
4
  "description": "Roles package for unchained engine",
5
5
  "main": "lib/roles-index.js",
6
6
  "exports": {
@@ -35,8 +35,8 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/node": "^20.14.9",
38
- "@unchainedshop/types": "^2.11.3",
38
+ "@unchainedshop/types": "^2.12.0",
39
39
  "jest": "^29.7.0",
40
- "typescript": "^5.4.5"
40
+ "typescript": "^5.5.3"
41
41
  }
42
42
  }