@ai-sdk/provider-utils 4.0.20 → 4.0.22

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/index.mjs CHANGED
@@ -299,10 +299,13 @@ function validateDownloadUrl(url) {
299
299
  message: `Invalid URL: ${url}`
300
300
  });
301
301
  }
302
+ if (parsed.protocol === "data:") {
303
+ return;
304
+ }
302
305
  if (parsed.protocol !== "http:" && parsed.protocol !== "https:") {
303
306
  throw new DownloadError({
304
307
  url,
305
- message: `URL scheme must be http or https, got ${parsed.protocol}`
308
+ message: `URL scheme must be http, https, or data, got ${parsed.protocol}`
306
309
  });
307
310
  }
308
311
  const hostname = parsed.hostname;
@@ -579,7 +582,7 @@ function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
579
582
  }
580
583
 
581
584
  // src/version.ts
582
- var VERSION = true ? "4.0.20" : "0.0.0-test";
585
+ var VERSION = true ? "4.0.22" : "0.0.0-test";
583
586
 
584
587
  // src/get-from-api.ts
585
588
  var getOriginalFetch = () => globalThis.fetch;
@@ -909,7 +912,7 @@ function visit(def) {
909
912
  }
910
913
 
911
914
  // src/to-json-schema/zod3-to-json-schema/options.ts
912
- var ignoreOverride = Symbol(
915
+ var ignoreOverride = /* @__PURE__ */ Symbol(
913
916
  "Let zodToJsonSchema decide on which parser to use"
914
917
  );
915
918
  var defaultOptions = {
@@ -2089,7 +2092,7 @@ var zod3ToJsonSchema = (schema, options) => {
2089
2092
  };
2090
2093
 
2091
2094
  // src/schema.ts
2092
- var schemaSymbol = Symbol.for("vercel.ai.schema");
2095
+ var schemaSymbol = /* @__PURE__ */ Symbol.for("vercel.ai.schema");
2093
2096
  function lazySchema(createSchema) {
2094
2097
  let schema;
2095
2098
  return () => {