@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/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=9B459DAB6A69C21764756E2164756E21
3489
+ //# debugId=0CE726CD0D1049FD64756E2164756E21