@workglow/util 0.0.118 → 0.0.120
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/dist/browser.js +4 -2
- package/dist/browser.js.map +4 -4
- package/dist/bun.js +4 -2
- package/dist/bun.js.map +4 -4
- package/dist/json-schema/JsonSchema.d.ts +1 -0
- package/dist/json-schema/JsonSchema.d.ts.map +1 -1
- package/dist/mcp/McpAuthProvider.d.ts +3 -0
- package/dist/mcp/McpAuthProvider.d.ts.map +1 -1
- package/dist/mcp/McpClientUtil.browser.d.ts +2 -0
- package/dist/mcp/McpClientUtil.browser.d.ts.map +1 -1
- package/dist/mcp/McpClientUtil.node.d.ts +2 -0
- package/dist/mcp/McpClientUtil.node.d.ts.map +1 -1
- package/dist/node.js +4 -2
- package/dist/node.js.map +4 -4
- package/package.json +1 -1
package/dist/bun.js
CHANGED
|
@@ -2802,6 +2802,7 @@ import {
|
|
|
2802
2802
|
StaticPrivateKeyJwtProvider,
|
|
2803
2803
|
createPrivateKeyJwtAuth
|
|
2804
2804
|
} from "@modelcontextprotocol/sdk/client/auth-extensions.js";
|
|
2805
|
+
import { UnauthorizedError } from "@modelcontextprotocol/sdk/client/auth.js";
|
|
2805
2806
|
function normalizeServerUrl(serverUrl) {
|
|
2806
2807
|
try {
|
|
2807
2808
|
const u = new URL(serverUrl);
|
|
@@ -3300,7 +3301,7 @@ async function createMcpClient(config, signal) {
|
|
|
3300
3301
|
if (auth && auth.type !== "none") {
|
|
3301
3302
|
auth = await resolveAuthSecrets(auth, getGlobalCredentialStore());
|
|
3302
3303
|
}
|
|
3303
|
-
const authProvider = auth && auth.type !== "none" && auth.type !== "bearer" ? createAuthProvider(auth, config.server_url ?? "", getGlobalCredentialStore()) : undefined;
|
|
3304
|
+
const authProvider = config.authProvider ?? (auth && auth.type !== "none" && auth.type !== "bearer" ? createAuthProvider(auth, config.server_url ?? "", getGlobalCredentialStore()) : undefined);
|
|
3304
3305
|
const headers = {
|
|
3305
3306
|
...auth?.type === "bearer" ? { Authorization: `Bearer ${auth.token}` } : {}
|
|
3306
3307
|
};
|
|
@@ -3454,6 +3455,7 @@ export {
|
|
|
3454
3455
|
Worker,
|
|
3455
3456
|
WORKER_SERVER,
|
|
3456
3457
|
WORKER_MANAGER,
|
|
3458
|
+
UnauthorizedError,
|
|
3457
3459
|
TypedArraySchema,
|
|
3458
3460
|
TensorType,
|
|
3459
3461
|
TensorSchema,
|
|
@@ -3484,4 +3486,4 @@ export {
|
|
|
3484
3486
|
BaseError
|
|
3485
3487
|
};
|
|
3486
3488
|
|
|
3487
|
-
//# debugId=
|
|
3489
|
+
//# debugId=0CE726CD0D1049FD64756E2164756E21
|