@forklaunch/core 0.14.12 → 0.14.14
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/http/index.d.mts +1 -1
- package/lib/http/index.d.ts +1 -1
- package/lib/http/index.js +2 -1
- package/lib/http/index.js.map +1 -1
- package/lib/http/index.mjs +2 -1
- package/lib/http/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/http/index.mjs
CHANGED
@@ -118,7 +118,7 @@ function isBasicAuthMethod(maybeBasicAuthMethod) {
|
|
118
118
|
|
119
119
|
// src/http/guards/isHmacMethod.ts
|
120
120
|
function isHmacMethod(maybeHmacMethod) {
|
121
|
-
return typeof maybeHmacMethod === "object" && maybeHmacMethod !== null && "
|
121
|
+
return typeof maybeHmacMethod === "object" && maybeHmacMethod !== null && "hmac" in maybeHmacMethod && maybeHmacMethod.hmac != null;
|
122
122
|
}
|
123
123
|
|
124
124
|
// src/http/guards/isJwtAuthMethod.ts
|
@@ -464,6 +464,7 @@ async function parseRequestAuth(req, res, next) {
|
|
464
464
|
req._globalOptions?.()?.auth
|
465
465
|
) ?? [];
|
466
466
|
if (error != null) {
|
467
|
+
req.openTelemetryCollector.error(error, message);
|
467
468
|
res.type("text/plain");
|
468
469
|
res.status(error).send(message);
|
469
470
|
return;
|