@xsai/generate-object 0.1.2 → 0.2.0-beta.1

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // src/index.ts
2
2
  import { generateText } from "@xsai/generate-text";
3
- import { toJSONSchema, validate } from "xsschema";
3
+ import { toJsonSchema, validate } from "xsschema";
4
4
 
5
5
  // src/wrap.ts
6
6
  var wrap = ({ $schema, ...schema }) => ({
@@ -17,7 +17,7 @@ var wrap = ({ $schema, ...schema }) => ({
17
17
  // src/index.ts
18
18
  async function generateObject(options) {
19
19
  const { schema: schemaValidator } = options;
20
- let schema = await toJSONSchema(schemaValidator);
20
+ let schema = await toJsonSchema(schemaValidator);
21
21
  if (options.output === "array")
22
22
  schema = wrap(schema);
23
23
  return generateText({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xsai/generate-object",
3
3
  "type": "module",
4
- "version": "0.1.2",
4
+ "version": "0.2.0-beta.1",
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",
@@ -33,8 +33,8 @@
33
33
  "xsschema": ""
34
34
  },
35
35
  "devDependencies": {
36
- "@valibot/to-json-schema": "^1.0.0-rc.0",
37
- "valibot": "^1.0.0-rc.3"
36
+ "@valibot/to-json-schema": "^1.0.0",
37
+ "valibot": "^1.0.0"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "tsup",