@posiwise/common-services 0.1.94 → 0.1.98

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.
@@ -17,6 +17,8 @@ export declare class PermissionService {
17
17
  grantedPermissionNames: string[];
18
18
  };
19
19
  evaluatePermissions(permission: string, productKey?: string, permission_key?: string, productSlug?: string): boolean;
20
+ /** Safe boolean expression parser - replaces eval() for CSP compliance. */
21
+ private evaluateBooleanExpression;
20
22
  handleNonBooleanPermissions(permission: any, expr: any, productKey: any, permission_key: any, productSlug: any): any;
21
23
  getPermissionByRole(roleId: number): import("rxjs").Observable<any>;
22
24
  saveUserPermission(payload: any): import("rxjs").Observable<any>;
@@ -3,6 +3,7 @@ export declare class ScriptLoaderService {
3
3
  private readonly document;
4
4
  private _scripts;
5
5
  constructor(document: Document);
6
+ private getCspNonce;
6
7
  load(tag: any, ...scripts: string[]): Promise<object[]>;
7
8
  loadScripts(tag: any, scripts: any, loadOnce?: boolean): Promise<object[]>;
8
9
  loadScript(tag: any, src: string, loadOnce?: boolean): Promise<unknown>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posiwise/common-services",
3
- "version": "0.1.94",
3
+ "version": "0.1.98",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.2.18",
6
6
  "@angular/core": "^19.2.18",