align-mcp-remote 0.1.45 → 0.1.46
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.
|
@@ -15632,7 +15632,7 @@ var Client = class extends Protocol {
|
|
|
15632
15632
|
};
|
|
15633
15633
|
|
|
15634
15634
|
// package.json
|
|
15635
|
-
var version2 = "0.1.
|
|
15635
|
+
var version2 = "0.1.45";
|
|
15636
15636
|
|
|
15637
15637
|
// node_modules/pkce-challenge/dist/index.node.js
|
|
15638
15638
|
var crypto;
|
|
@@ -18194,8 +18194,8 @@ async function connectToRemoteServer(client, serverUrl, authProvider, headers, a
|
|
|
18194
18194
|
const sseTransport = transportStrategy === "sse-only" || transportStrategy === "sse-first";
|
|
18195
18195
|
const fetchWithDownstreamHeader = async (input, init) => {
|
|
18196
18196
|
const downstreamHeader = await resolveDownstreamHeader();
|
|
18197
|
-
const
|
|
18198
|
-
|
|
18197
|
+
const h = init?.headers;
|
|
18198
|
+
const existingHeaders = h && typeof h.entries === "function" ? Object.fromEntries(h.entries()) : h && typeof h === "object" ? h : {};
|
|
18199
18199
|
return fetch2(input, {
|
|
18200
18200
|
...init,
|
|
18201
18201
|
headers: { ...existingHeaders, ...downstreamHeader }
|
package/dist/client.js
CHANGED
package/dist/proxy.js
CHANGED