@ai-sdk/provider-utils 4.0.41 → 4.0.43
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 +12 -0
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/safe-node-fetch.ts +11 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @ai-sdk/provider-utils
|
|
2
2
|
|
|
3
|
+
## 4.0.43
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- dab0a08: fix(provider-utils): drop Function-constructor dynamic import shim rejected by Next.js Edge Runtime builds
|
|
8
|
+
|
|
9
|
+
## 4.0.42
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- ee2bf30: fix(provider-utils): prevent Metro from parsing the Node 18 dynamic import fallback
|
|
14
|
+
|
|
3
15
|
## 4.0.41
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -577,10 +577,10 @@ async function loadNodeModule(id) {
|
|
|
577
577
|
var _a2;
|
|
578
578
|
const processWithBuiltins = globalThis.process;
|
|
579
579
|
const builtinModule = (_a2 = processWithBuiltins == null ? void 0 : processWithBuiltins.getBuiltinModule) == null ? void 0 : _a2.call(processWithBuiltins, id);
|
|
580
|
-
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
return
|
|
580
|
+
if (builtinModule == null) {
|
|
581
|
+
throw new Error(`Node.js built-in module ${id} is unavailable`);
|
|
582
|
+
}
|
|
583
|
+
return builtinModule;
|
|
584
584
|
}
|
|
585
585
|
function getCurrentModulePath() {
|
|
586
586
|
const originalPrepareStackTrace = Error.prepareStackTrace;
|
|
@@ -891,7 +891,7 @@ function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
|
|
|
891
891
|
}
|
|
892
892
|
|
|
893
893
|
// src/version.ts
|
|
894
|
-
var VERSION = true ? "4.0.
|
|
894
|
+
var VERSION = true ? "4.0.43" : "0.0.0-test";
|
|
895
895
|
|
|
896
896
|
// src/get-from-api.ts
|
|
897
897
|
var getOriginalFetch = () => globalThis.fetch;
|