dicebear 9.2.0 → 9.2.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/lib/utils/getStyleCommandSchema.js +27 -31
- package/package.json +19 -21
|
@@ -1,36 +1,32 @@
|
|
|
1
1
|
import { schema as coreSchema } from '@dicebear/core';
|
|
2
|
-
import mergeAllOf from 'json-schema-merge-allof';
|
|
3
2
|
export function getStyleCommandSchema(style) {
|
|
4
3
|
var _a;
|
|
5
|
-
return
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
},
|
|
14
|
-
format: {
|
|
15
|
-
type: 'string',
|
|
16
|
-
enum: ['svg', 'png', 'jpg', 'jpeg', 'webp', 'avif', 'json'],
|
|
17
|
-
default: 'svg',
|
|
18
|
-
},
|
|
19
|
-
exif: {
|
|
20
|
-
description: 'Include Exif Metadata',
|
|
21
|
-
type: 'boolean',
|
|
22
|
-
default: false,
|
|
23
|
-
},
|
|
24
|
-
json: {
|
|
25
|
-
description: 'Save JSON file in addition to image file',
|
|
26
|
-
type: 'boolean',
|
|
27
|
-
default: false,
|
|
28
|
-
},
|
|
29
|
-
},
|
|
4
|
+
return {
|
|
5
|
+
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
6
|
+
type: 'object',
|
|
7
|
+
properties: {
|
|
8
|
+
count: {
|
|
9
|
+
description: 'Defines how many avatars to create.',
|
|
10
|
+
type: 'number',
|
|
11
|
+
default: 1,
|
|
30
12
|
},
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
13
|
+
format: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
enum: ['svg', 'png', 'jpg', 'jpeg', 'webp', 'avif', 'json'],
|
|
16
|
+
default: 'svg',
|
|
17
|
+
},
|
|
18
|
+
exif: {
|
|
19
|
+
description: 'Include Exif Metadata',
|
|
20
|
+
type: 'boolean',
|
|
21
|
+
default: false,
|
|
22
|
+
},
|
|
23
|
+
json: {
|
|
24
|
+
description: 'Save JSON file in addition to image file',
|
|
25
|
+
type: 'boolean',
|
|
26
|
+
default: false,
|
|
27
|
+
},
|
|
28
|
+
...coreSchema.properties,
|
|
29
|
+
...(_a = style.schema) === null || _a === void 0 ? void 0 : _a.properties,
|
|
30
|
+
},
|
|
31
|
+
};
|
|
36
32
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dicebear",
|
|
3
|
-
"version": "9.2.
|
|
3
|
+
"version": "9.2.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "CLI for DiceBear - An avatar library for designers and developers",
|
|
6
6
|
"homepage": "https://github.com/dicebear/dicebear",
|
|
@@ -25,31 +25,29 @@
|
|
|
25
25
|
"prepublishOnly": "npm run build"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@dicebear/collection": "9.2.
|
|
29
|
-
"@dicebear/converter": "9.2.
|
|
30
|
-
"@dicebear/core": "9.2.
|
|
31
|
-
"ajv": "^8.
|
|
32
|
-
"chalk": "^5.
|
|
33
|
-
"chalk-template": "^1.
|
|
28
|
+
"@dicebear/collection": "9.2.2",
|
|
29
|
+
"@dicebear/converter": "9.2.2",
|
|
30
|
+
"@dicebear/core": "9.2.2",
|
|
31
|
+
"ajv": "^8.17.1",
|
|
32
|
+
"chalk": "^5.3.0",
|
|
33
|
+
"chalk-template": "^1.1.0",
|
|
34
34
|
"cli-progress": "^3.12.0",
|
|
35
|
-
"fs-extra": "^11.
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"yargs": "^17.7.1"
|
|
35
|
+
"fs-extra": "^11.2.0",
|
|
36
|
+
"p-queue": "^8.0.1",
|
|
37
|
+
"update-notifier": "^7.3.1",
|
|
38
|
+
"yargs": "^17.7.2"
|
|
40
39
|
},
|
|
41
40
|
"devDependencies": {
|
|
42
|
-
"@tsconfig/recommended": "^1.0.
|
|
43
|
-
"@types/cli-progress": "^3.11.
|
|
44
|
-
"@types/fs-extra": "^11.0.
|
|
45
|
-
"@types/
|
|
46
|
-
"@types/
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"typescript": "^5.1.6"
|
|
41
|
+
"@tsconfig/recommended": "^1.0.7",
|
|
42
|
+
"@types/cli-progress": "^3.11.6",
|
|
43
|
+
"@types/fs-extra": "^11.0.4",
|
|
44
|
+
"@types/update-notifier": "^6.0.8",
|
|
45
|
+
"@types/yargs": "^17.0.33",
|
|
46
|
+
"del-cli": "^5.1.0",
|
|
47
|
+
"typescript": "^5.6.2"
|
|
50
48
|
},
|
|
51
49
|
"engines": {
|
|
52
50
|
"node": ">=18.0.0"
|
|
53
51
|
},
|
|
54
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "bf5b31d047f707f50299142660bc89ef020d9b24"
|
|
55
53
|
}
|