@bahmni/services 0.0.1-dev.189 → 0.0.1-dev.190

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/index.js CHANGED
@@ -12099,6 +12099,8 @@ const wn = /* @__PURE__ */ new Map(), zg = async (e) => {
12099
12099
  }, kw = (e, t) => {
12100
12100
  if (!e || e.length === 0)
12101
12101
  return !1;
12102
+ if (!t || t.length === 0)
12103
+ return !0;
12102
12104
  const r = Array.isArray(t) ? t : [t];
12103
12105
  return e.some(
12104
12106
  (n) => r.includes(n.name)
@@ -11,5 +11,5 @@ export declare const getCurrentUserPrivileges: () => Promise<UserPrivilege[] | n
11
11
  * @param requiredPrivilege - Name of the privilege or array of privilege names to check
12
12
  * @returns true if user has any of the required privileges, false otherwise
13
13
  */
14
- export declare const hasPrivilege: (userPrivileges: UserPrivilege[] | null, requiredPrivilege: string | string[]) => boolean;
14
+ export declare const hasPrivilege: (userPrivileges: UserPrivilege[] | null, requiredPrivilege: string | string[] | undefined) => boolean;
15
15
  //# sourceMappingURL=privilegeService.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"privilegeService.d.ts","sourceRoot":"","sources":["../../src/privilegeService/privilegeService.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAmB,MAAM,UAAU,CAAC;AAE1D;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,QAAa,OAAO,CACvD,aAAa,EAAE,GAAG,IAAI,CAUvB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GACvB,gBAAgB,aAAa,EAAE,GAAG,IAAI,EACtC,mBAAmB,MAAM,GAAG,MAAM,EAAE,KACnC,OAYF,CAAC"}
1
+ {"version":3,"file":"privilegeService.d.ts","sourceRoot":"","sources":["../../src/privilegeService/privilegeService.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAmB,MAAM,UAAU,CAAC;AAE1D;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,QAAa,OAAO,CACvD,aAAa,EAAE,GAAG,IAAI,CAUvB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GACvB,gBAAgB,aAAa,EAAE,GAAG,IAAI,EACtC,mBAAmB,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,KAC/C,OAgBF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/services",
3
- "version": "0.0.1-dev.189",
3
+ "version": "0.0.1-dev.190",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",