@ai-sdk/provider-utils 5.0.25 → 5.0.26
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/CHANGELOG.md +6 -0
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/safe-node-fetch.ts +5 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -922,6 +922,9 @@ async function getDefaultDownloadFetch() {
|
|
|
922
922
|
return safeNodeFetchPromise != null ? safeNodeFetchPromise : safeNodeFetchPromise = Promise.resolve().then(createSafeNodeFetch);
|
|
923
923
|
}
|
|
924
924
|
function isNodeDefaultFetch(fetch) {
|
|
925
|
+
if (typeof fetch !== "function") {
|
|
926
|
+
return false;
|
|
927
|
+
}
|
|
925
928
|
const source = Function.prototype.toString.call(fetch);
|
|
926
929
|
return source.includes("internal/deps/undici") || source.includes("lazy loading of undici");
|
|
927
930
|
}
|
|
@@ -1325,7 +1328,7 @@ function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
|
|
|
1325
1328
|
}
|
|
1326
1329
|
|
|
1327
1330
|
// src/version.ts
|
|
1328
|
-
var VERSION = true ? "5.0.
|
|
1331
|
+
var VERSION = true ? "5.0.26" : "0.0.0-test";
|
|
1329
1332
|
|
|
1330
1333
|
// src/get-from-api.ts
|
|
1331
1334
|
var getOriginalFetch = () => globalThis.fetch;
|