ai 4.2.10 → 4.2.11
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 +3 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/rsc/dist/rsc-server.mjs +2 -5
- package/rsc/dist/rsc-server.mjs.map +1 -1
package/package.json
CHANGED
package/rsc/dist/rsc-server.mjs
CHANGED
@@ -240,14 +240,11 @@ var DownloadError = class extends AISDKError {
|
|
240
240
|
_a = symbol;
|
241
241
|
|
242
242
|
// util/download.ts
|
243
|
-
async function download({
|
244
|
-
url,
|
245
|
-
fetchImplementation = fetch
|
246
|
-
}) {
|
243
|
+
async function download({ url }) {
|
247
244
|
var _a9;
|
248
245
|
const urlText = url.toString();
|
249
246
|
try {
|
250
|
-
const response = await
|
247
|
+
const response = await fetch(urlText);
|
251
248
|
if (!response.ok) {
|
252
249
|
throw new DownloadError({
|
253
250
|
url: urlText,
|