@ai-sdk/provider-utils 5.0.43 → 5.0.44
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 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/safe-node-fetch.ts +9 -6
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -518,7 +518,7 @@ function handleFetchError({
|
|
|
518
518
|
}
|
|
519
519
|
|
|
520
520
|
// src/version.ts
|
|
521
|
-
var VERSION = true ? "5.0.
|
|
521
|
+
var VERSION = true ? "5.0.44" : "0.0.0-test";
|
|
522
522
|
|
|
523
523
|
// src/normalize-headers.ts
|
|
524
524
|
function normalizeHeaders(headers) {
|
|
@@ -1179,11 +1179,10 @@ async function getDefaultDownloadFetch() {
|
|
|
1179
1179
|
return safeNodeFetchPromise != null ? safeNodeFetchPromise : safeNodeFetchPromise = Promise.resolve().then(createSafeNodeFetch);
|
|
1180
1180
|
}
|
|
1181
1181
|
function createSafeNodeFetch() {
|
|
1182
|
-
const
|
|
1182
|
+
const module = loadBuiltinModule("node:module");
|
|
1183
1183
|
const { lookup } = loadBuiltinModule("node:dns");
|
|
1184
|
-
const
|
|
1185
|
-
|
|
1186
|
-
);
|
|
1184
|
+
const nodeRequire = module.createRequire(getCurrentModulePath());
|
|
1185
|
+
const { Agent, fetch } = nodeRequire("undici");
|
|
1187
1186
|
const dispatcher = new Agent({
|
|
1188
1187
|
connect: {
|
|
1189
1188
|
lookup: createSafeLookup(lookup)
|