yuppi 1.3.9 → 1.3.11
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 +4 -4
- package/dist/main.js +3 -2
- package/dist/main.mjs +3 -2
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
<div align="center">
|
|
26
26
|
<br/>
|
|
27
|
-
<img src="
|
|
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"/>
|
|
@@ -73,10 +73,10 @@ You can install it as follows.
|
|
|
73
73
|
|
|
74
74
|
```shell
|
|
75
75
|
// NPM
|
|
76
|
-
npm
|
|
76
|
+
npm add yuppi
|
|
77
77
|
|
|
78
78
|
// PNPM
|
|
79
|
-
pnpm
|
|
79
|
+
pnpm add yuppi
|
|
80
80
|
|
|
81
81
|
// Yarn
|
|
82
82
|
yarn add yuppi
|
|
@@ -85,7 +85,7 @@ yarn add yuppi
|
|
|
85
85
|
bun add yuppi
|
|
86
86
|
|
|
87
87
|
// Deno
|
|
88
|
-
deno
|
|
88
|
+
deno add yuppi
|
|
89
89
|
```
|
|
90
90
|
|
|
91
91
|
## Documentation
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
3
|
+
"version": "1.3.11",
|
|
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": "
|
|
27
|
-
"prettier": "
|
|
28
|
-
"tsup": "
|
|
26
|
+
"neatlint": "latest",
|
|
27
|
+
"prettier": "latest",
|
|
28
|
+
"tsup": "latest"
|
|
29
29
|
},
|
|
30
30
|
"repository": {
|
|
31
31
|
"type": "git",
|