@forklaunch/core 0.18.1 → 0.18.3
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.js +2 -3
- package/lib/http/index.js.map +1 -1
- package/lib/http/index.mjs +2 -3
- package/lib/http/index.mjs.map +1 -1
- package/lib/services/index.js +4 -3
- package/lib/services/index.js.map +1 -1
- package/lib/services/index.mjs +4 -3
- package/lib/services/index.mjs.map +1 -1
- package/package.json +30 -30
package/lib/http/index.js
CHANGED
|
@@ -421,7 +421,7 @@ async function discriminateAuthMethod(auth, openTelemetryCollector) {
|
|
|
421
421
|
verificationFunction = async (token) => {
|
|
422
422
|
const { payload } = await (0, import_jose.jwtVerify)(
|
|
423
423
|
token,
|
|
424
|
-
Buffer.from(jwt.signatureKey)
|
|
424
|
+
new Uint8Array(Buffer.from(jwt.signatureKey))
|
|
425
425
|
);
|
|
426
426
|
return payload;
|
|
427
427
|
};
|
|
@@ -1601,7 +1601,6 @@ var ForklaunchExpressLikeRouter = class _ForklaunchExpressLikeRouter {
|
|
|
1601
1601
|
originalPath: route,
|
|
1602
1602
|
method: "GET",
|
|
1603
1603
|
version,
|
|
1604
|
-
// Properties needed by middlewares
|
|
1605
1604
|
schemaValidator: this.schemaValidator,
|
|
1606
1605
|
contractDetails,
|
|
1607
1606
|
requestSchema,
|
|
@@ -3490,7 +3489,7 @@ function generateMcpServer(schemaValidator, protocol, host, port, version, appli
|
|
|
3490
3489
|
)) {
|
|
3491
3490
|
formData.append(
|
|
3492
3491
|
key,
|
|
3493
|
-
new Blob([Buffer.from(body[key])])
|
|
3492
|
+
new Blob([new Uint8Array(Buffer.from(body[key]))])
|
|
3494
3493
|
);
|
|
3495
3494
|
} else {
|
|
3496
3495
|
formData.append(key, body[key]);
|