yuppi 1.3.9 → 1.3.10

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/README.md CHANGED
@@ -24,7 +24,7 @@
24
24
 
25
25
  <div align="center">
26
26
  <br/>
27
- <img src="https://i.ibb.co/B5bQXHSM/unknown.png" width="350px"/>
27
+ <img src="./assets/logo.png" width="350px"/>
28
28
  <br/>
29
29
  <br/>
30
30
  <img src="https://img.shields.io/npm/v/yuppi?label=version&color=%23633BFF"/>
package/dist/main.js CHANGED
@@ -254,10 +254,11 @@ var Yuppi = class {
254
254
  * _DO NOT MODIFY IT BY HAND_. Instead, modify your Yuppi schema.
255
255
  * Use \`Yuppi.declare()\` to regenerate this type.
256
256
  */`;
257
- (0, import_json_schema_to_typescript.compile)(this.convertToJSONSchema(schema), name, { bannerComment: banner_comment }).then((type) => {
257
+ void (async () => {
258
+ const type = await (0, import_json_schema_to_typescript.compile)(this.convertToJSONSchema(schema), name, { bannerComment: banner_comment });
258
259
  import_fs.default.mkdirSync(types_dir, { recursive: true });
259
260
  import_fs.default.writeFileSync(import_path.default.join(types_dir, `${name}.d.ts`), type);
260
- });
261
+ })();
261
262
  }
262
263
  convertToYup(schema) {
263
264
  return convertToYup(schema, this.options.error_messages);
package/dist/main.mjs CHANGED
@@ -223,10 +223,11 @@ var Yuppi = class {
223
223
  * _DO NOT MODIFY IT BY HAND_. Instead, modify your Yuppi schema.
224
224
  * Use \`Yuppi.declare()\` to regenerate this type.
225
225
  */`;
226
- compile(this.convertToJSONSchema(schema), name, { bannerComment: banner_comment }).then((type) => {
226
+ void (async () => {
227
+ const type = await compile(this.convertToJSONSchema(schema), name, { bannerComment: banner_comment });
227
228
  fs.mkdirSync(types_dir, { recursive: true });
228
229
  fs.writeFileSync(path.join(types_dir, `${name}.d.ts`), type);
229
- });
230
+ })();
230
231
  }
231
232
  convertToYup(schema) {
232
233
  return convertToYup(schema, this.options.error_messages);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yuppi",
3
- "version": "1.3.9",
3
+ "version": "1.3.10",
4
4
  "description": "Schemas that can be converted to Yup and JSON Schema.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/keift/yuppi",
@@ -23,9 +23,9 @@
23
23
  "yup": "^1.7.1"
24
24
  },
25
25
  "devDependencies": {
26
- "neatlint": "^1.1.26",
27
- "prettier": "^3.6.2",
28
- "tsup": "^8.5.0"
26
+ "neatlint": "^1.2.0",
27
+ "prettier": "^3.7.4",
28
+ "tsup": "^8.5.1"
29
29
  },
30
30
  "repository": {
31
31
  "type": "git",