@xsai/stream-object 0.0.31 → 0.1.0-beta.2
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/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Schema, Infer } from '@typeschema/main';
|
|
2
1
|
import { StreamTextOptions, StreamTextResult } from '@xsai/stream-text';
|
|
2
|
+
import { Schema, Infer } from 'xsschema';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
Matches any [primitive value](https://developer.mozilla.org/en-US/docs/Glossary/Primitive).
|
|
@@ -174,4 +174,4 @@ interface StreamObjectResult<T extends Schema> extends StreamTextResult {
|
|
|
174
174
|
/** @experimental WIP */
|
|
175
175
|
declare const streamObject: <T extends Schema>(options: StreamObjectOptions<T>) => Promise<StreamObjectResult<T>>;
|
|
176
176
|
|
|
177
|
-
export { type StreamObjectOptions, type StreamObjectResult, streamObject
|
|
177
|
+
export { type StreamObjectOptions, type StreamObjectResult, streamObject };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { toJSONSchema } from '@typeschema/main';
|
|
2
1
|
import { streamText } from '@xsai/stream-text';
|
|
2
|
+
import { toJSONSchema } from 'xsschema';
|
|
3
3
|
|
|
4
4
|
var parse = {};
|
|
5
5
|
|
|
@@ -273,4 +273,4 @@ const streamObject = async (options) => streamText({
|
|
|
273
273
|
};
|
|
274
274
|
});
|
|
275
275
|
|
|
276
|
-
export { streamObject
|
|
276
|
+
export { streamObject };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xsai/stream-object",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.1.0-beta.2",
|
|
5
5
|
"description": "extra-small AI SDK for Browser, Node.js, Deno, Bun or Edge Runtime.",
|
|
6
6
|
"author": "Moeru AI",
|
|
7
7
|
"license": "MIT",
|
|
@@ -30,15 +30,15 @@
|
|
|
30
30
|
"dist"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@
|
|
34
|
-
"
|
|
33
|
+
"@xsai/stream-text": "",
|
|
34
|
+
"xsschema": ""
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@
|
|
37
|
+
"@valibot/to-json-schema": "^1.0.0-beta.5",
|
|
38
38
|
"@xsai/providers": "",
|
|
39
39
|
"best-effort-json-parser": "^1.1.2",
|
|
40
40
|
"type-fest": "^4.33.0",
|
|
41
|
-
"valibot": "^0.
|
|
41
|
+
"valibot": "^1.0.0-beta.14"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "pkgroll",
|