@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/dist/index.mjs
CHANGED
|
@@ -475,10 +475,10 @@ async function loadNodeModule(id) {
|
|
|
475
475
|
var _a2;
|
|
476
476
|
const processWithBuiltins = globalThis.process;
|
|
477
477
|
const builtinModule = (_a2 = processWithBuiltins == null ? void 0 : processWithBuiltins.getBuiltinModule) == null ? void 0 : _a2.call(processWithBuiltins, id);
|
|
478
|
-
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
return
|
|
478
|
+
if (builtinModule == null) {
|
|
479
|
+
throw new Error(`Node.js built-in module ${id} is unavailable`);
|
|
480
|
+
}
|
|
481
|
+
return builtinModule;
|
|
482
482
|
}
|
|
483
483
|
function getCurrentModulePath() {
|
|
484
484
|
const originalPrepareStackTrace = Error.prepareStackTrace;
|
|
@@ -789,7 +789,7 @@ function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
|
|
|
789
789
|
}
|
|
790
790
|
|
|
791
791
|
// src/version.ts
|
|
792
|
-
var VERSION = true ? "4.0.
|
|
792
|
+
var VERSION = true ? "4.0.43" : "0.0.0-test";
|
|
793
793
|
|
|
794
794
|
// src/get-from-api.ts
|
|
795
795
|
var getOriginalFetch = () => globalThis.fetch;
|