@forklaunch/core 0.18.0 → 0.18.2
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/package.json +28 -28
package/lib/http/index.mjs
CHANGED
|
@@ -347,7 +347,7 @@ async function discriminateAuthMethod(auth, openTelemetryCollector) {
|
|
|
347
347
|
verificationFunction = async (token) => {
|
|
348
348
|
const { payload } = await jwtVerify(
|
|
349
349
|
token,
|
|
350
|
-
Buffer.from(jwt.signatureKey)
|
|
350
|
+
new Uint8Array(Buffer.from(jwt.signatureKey))
|
|
351
351
|
);
|
|
352
352
|
return payload;
|
|
353
353
|
};
|
|
@@ -1533,7 +1533,6 @@ var ForklaunchExpressLikeRouter = class _ForklaunchExpressLikeRouter {
|
|
|
1533
1533
|
originalPath: route,
|
|
1534
1534
|
method: "GET",
|
|
1535
1535
|
version,
|
|
1536
|
-
// Properties needed by middlewares
|
|
1537
1536
|
schemaValidator: this.schemaValidator,
|
|
1538
1537
|
contractDetails,
|
|
1539
1538
|
requestSchema,
|
|
@@ -3422,7 +3421,7 @@ function generateMcpServer(schemaValidator, protocol, host, port, version, appli
|
|
|
3422
3421
|
)) {
|
|
3423
3422
|
formData.append(
|
|
3424
3423
|
key,
|
|
3425
|
-
new Blob([Buffer.from(body[key])])
|
|
3424
|
+
new Blob([new Uint8Array(Buffer.from(body[key]))])
|
|
3426
3425
|
);
|
|
3427
3426
|
} else {
|
|
3428
3427
|
formData.append(key, body[key]);
|