Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ai

Package Overview
Dependencies
Maintainers
11
Versions
305
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ai - npm Package Compare versions

Comparing version 4.0.0-canary.12 to 4.0.0-canary.13

13

CHANGELOG.md
# ai
## 4.0.0-canary.13
### Major Changes
- 064257d: chore (ai/core): rename simulateReadableStream values parameter to chunks
### Patch Changes
- Updated dependencies [79c6dd9]
- Updated dependencies [04d3747]
- @ai-sdk/react@1.0.0-canary.9
- @ai-sdk/ui-utils@1.0.0-canary.9
## 4.0.0-canary.12

@@ -4,0 +17,0 @@

8

package.json
{
"name": "ai",
"version": "4.0.0-canary.12",
"version": "4.0.0-canary.13",
"description": "AI SDK by Vercel - The AI Toolkit for TypeScript and JavaScript",

@@ -45,4 +45,4 @@ "license": "Apache-2.0",

"@ai-sdk/provider-utils": "2.0.0-canary.3",
"@ai-sdk/react": "1.0.0-canary.8",
"@ai-sdk/ui-utils": "1.0.0-canary.8",
"@ai-sdk/react": "1.0.0-canary.9",
"@ai-sdk/ui-utils": "1.0.0-canary.9",
"@opentelemetry/api": "1.9.0",

@@ -53,3 +53,3 @@ "jsondiffpatch": "0.6.0",

"devDependencies": {
"@edge-runtime/vm": "^3.2.0",
"@edge-runtime/vm": "^4.0.4",
"@types/node": "^18",

@@ -56,0 +56,0 @@ "@types/react": "^18",

@@ -48,3 +48,3 @@ export { convertArrayToReadableStream } from '@ai-sdk/provider-utils/test';

* @param options - The configuration options
* @param options.values - Array of values to be emitted by the stream
* @param options.chunks - Array of values to be emitted by the stream
* @param options.initialDelayInMs - Optional initial delay in milliseconds before emitting the first value (default: 0)

@@ -54,4 +54,4 @@ * @param options.chunkDelayInMs - Optional delay in milliseconds between emitting each value (default: 0)

*/
declare function simulateReadableStream<T>({ values, initialDelayInMs, chunkDelayInMs, _internal, }: {
values: T[];
declare function simulateReadableStream<T>({ chunks, initialDelayInMs, chunkDelayInMs, _internal, }: {
chunks: T[];
initialDelayInMs?: number;

@@ -58,0 +58,0 @@ chunkDelayInMs?: number;

@@ -101,3 +101,3 @@ "use strict";

function simulateReadableStream({
values,
chunks,
initialDelayInMs = 0,

@@ -112,5 +112,5 @@ chunkDelayInMs = 0,

async pull(controller) {
if (index < values.length) {
if (index < chunks.length) {
await delay2(index === 0 ? initialDelayInMs : chunkDelayInMs);
controller.enqueue(values[index++]);
controller.enqueue(chunks[index++]);
} else {

@@ -117,0 +117,0 @@ controller.close();

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc