@forklaunch/core 1.0.12 → 1.1.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.
- package/lib/{apiDefinition.types-Br0fDuBQ.d.mts → apiDefinition.types-DUkE1FHm.d.mts} +3 -50
- package/lib/{apiDefinition.types-Br0fDuBQ.d.ts → apiDefinition.types-DdQ3d8il.d.ts} +3 -50
- package/lib/http/index.d.mts +4 -2
- package/lib/http/index.d.ts +4 -2
- package/lib/http/index.js +6 -1
- package/lib/http/index.js.map +1 -1
- package/lib/http/index.mjs +6 -1
- package/lib/http/index.mjs.map +1 -1
- package/lib/openTelemetryCollector-DXGXRvQP.d.mts +51 -0
- package/lib/openTelemetryCollector-DXGXRvQP.d.ts +51 -0
- package/lib/persistence/index.d.mts +40 -19
- package/lib/persistence/index.d.ts +40 -19
- package/lib/persistence/index.js +64 -1
- package/lib/persistence/index.js.map +1 -1
- package/lib/persistence/index.mjs +59 -1
- package/lib/persistence/index.mjs.map +1 -1
- package/lib/services/index.d.mts +34 -2
- package/lib/services/index.d.ts +34 -2
- package/lib/services/index.js +173 -0
- package/lib/services/index.js.map +1 -1
- package/lib/services/index.mjs +172 -0
- package/lib/services/index.mjs.map +1 -1
- package/lib/ws/index.d.mts +2 -1
- package/lib/ws/index.d.ts +2 -1
- package/package.json +4 -4
package/lib/http/index.mjs
CHANGED
|
@@ -244,7 +244,12 @@ import { isRecord as isRecord2 } from "@forklaunch/common";
|
|
|
244
244
|
|
|
245
245
|
// src/http/guards/hasPermissionChecks.ts
|
|
246
246
|
function hasPermissionChecks(maybePermissionedAuth) {
|
|
247
|
-
|
|
247
|
+
if (typeof maybePermissionedAuth !== "object" || maybePermissionedAuth === null) {
|
|
248
|
+
return false;
|
|
249
|
+
}
|
|
250
|
+
const hasAllowedPermissions = "allowedPermissions" in maybePermissionedAuth && maybePermissionedAuth.allowedPermissions instanceof Set && maybePermissionedAuth.allowedPermissions.size > 0;
|
|
251
|
+
const hasForbiddenPermissions = "forbiddenPermissions" in maybePermissionedAuth && maybePermissionedAuth.forbiddenPermissions instanceof Set && maybePermissionedAuth.forbiddenPermissions.size > 0;
|
|
252
|
+
return hasAllowedPermissions || hasForbiddenPermissions;
|
|
248
253
|
}
|
|
249
254
|
|
|
250
255
|
// src/http/guards/hasRoleChecks.ts
|