ai 5.0.278 → 5.0.279
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 +12 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -1
- package/dist/index.mjs.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.mjs +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -727,7 +727,7 @@ import {
|
|
|
727
727
|
} from "@ai-sdk/provider-utils";
|
|
728
728
|
|
|
729
729
|
// src/version.ts
|
|
730
|
-
var VERSION = true ? "5.0.
|
|
730
|
+
var VERSION = true ? "5.0.279" : "0.0.0-test";
|
|
731
731
|
|
|
732
732
|
// src/util/download/download.ts
|
|
733
733
|
var download = async ({
|
|
@@ -5349,12 +5349,23 @@ var DefaultStreamTextResult = class {
|
|
|
5349
5349
|
return stitchableStream.stream.cancel(reason);
|
|
5350
5350
|
}
|
|
5351
5351
|
});
|
|
5352
|
+
let isRunning = true;
|
|
5353
|
+
stream = stream.pipeThrough(
|
|
5354
|
+
new TransformStream({
|
|
5355
|
+
async transform(chunk, controller) {
|
|
5356
|
+
if (isRunning) {
|
|
5357
|
+
controller.enqueue(chunk);
|
|
5358
|
+
}
|
|
5359
|
+
}
|
|
5360
|
+
})
|
|
5361
|
+
);
|
|
5352
5362
|
for (const transform of transforms) {
|
|
5353
5363
|
stream = stream.pipeThrough(
|
|
5354
5364
|
transform({
|
|
5355
5365
|
tools,
|
|
5356
5366
|
stopStream() {
|
|
5357
5367
|
stitchableStream.terminate();
|
|
5368
|
+
isRunning = false;
|
|
5358
5369
|
}
|
|
5359
5370
|
})
|
|
5360
5371
|
);
|