dicebear 5.0.0-beta.4 → 5.0.0-beta.6
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { schema as coreSchema } from '@dicebear/core';
|
|
2
2
|
import mergeAllOf from 'json-schema-merge-allof';
|
|
3
3
|
export function getStyleCommandSchema(style) {
|
|
4
|
+
var _a;
|
|
4
5
|
return mergeAllOf({
|
|
5
6
|
allOf: [
|
|
6
7
|
{
|
|
@@ -23,7 +24,7 @@ export function getStyleCommandSchema(style) {
|
|
|
23
24
|
},
|
|
24
25
|
},
|
|
25
26
|
coreSchema,
|
|
26
|
-
style.schema,
|
|
27
|
+
(_a = style.schema) !== null && _a !== void 0 ? _a : {},
|
|
27
28
|
],
|
|
28
29
|
additionalItems: true,
|
|
29
30
|
}, { ignoreAdditionalProperties: true });
|
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
import chalk from 'chalk';
|
|
2
2
|
import chalkTemplate from 'chalk-template';
|
|
3
3
|
export function outputStyleLicenseBanner(name, style) {
|
|
4
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
4
5
|
let banner = ['-'.repeat(64)];
|
|
5
|
-
let creator = Array.isArray(style.meta.creator)
|
|
6
|
-
? style.meta.creator.join(', ')
|
|
7
|
-
: style.meta.creator;
|
|
8
|
-
if (style.meta.title && creator) {
|
|
6
|
+
let creator = Array.isArray((_a = style.meta) === null || _a === void 0 ? void 0 : _a.creator)
|
|
7
|
+
? (_b = style.meta) === null || _b === void 0 ? void 0 : _b.creator.join(', ')
|
|
8
|
+
: (_c = style.meta) === null || _c === void 0 ? void 0 : _c.creator;
|
|
9
|
+
if (((_d = style.meta) === null || _d === void 0 ? void 0 : _d.title) && creator) {
|
|
9
10
|
banner.push(chalkTemplate `{bold ${style.meta.title}} by {bold ${creator}}`);
|
|
10
11
|
}
|
|
11
|
-
else if (style.meta.title) {
|
|
12
|
+
else if ((_e = style.meta) === null || _e === void 0 ? void 0 : _e.title) {
|
|
12
13
|
banner.push(chalkTemplate `{bold ${style.meta.title}}`);
|
|
13
14
|
}
|
|
14
15
|
else if (creator) {
|
|
15
16
|
banner.push(chalkTemplate `{bold ${name}} by {bold ${creator}}`);
|
|
16
17
|
}
|
|
17
18
|
banner.push('');
|
|
18
|
-
if (style.meta.homepage) {
|
|
19
|
+
if ((_f = style.meta) === null || _f === void 0 ? void 0 : _f.homepage) {
|
|
19
20
|
banner.push(`Homepage: ${style.meta.homepage}`);
|
|
20
21
|
}
|
|
21
|
-
if (style.meta.source) {
|
|
22
|
+
if ((_g = style.meta) === null || _g === void 0 ? void 0 : _g.source) {
|
|
22
23
|
banner.push(`Source: ${style.meta.source}`);
|
|
23
24
|
}
|
|
24
|
-
if (style.meta.license) {
|
|
25
|
+
if ((_h = style.meta) === null || _h === void 0 ? void 0 : _h.license) {
|
|
25
26
|
banner.push(`License: ${style.meta.license.name} - ${style.meta.license.url}`);
|
|
26
27
|
}
|
|
27
28
|
banner.push('-'.repeat(64));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dicebear",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.6",
|
|
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,8 +25,8 @@
|
|
|
25
25
|
"prepublishOnly": "npm run build"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@dicebear/collection": "^5.0.0-beta.
|
|
29
|
-
"@dicebear/core": "^5.0.0-beta.
|
|
28
|
+
"@dicebear/collection": "^5.0.0-beta.6",
|
|
29
|
+
"@dicebear/core": "^5.0.0-beta.6",
|
|
30
30
|
"@resvg/resvg-js": "^2.0.0",
|
|
31
31
|
"ajv": "^8.11.0",
|
|
32
32
|
"chalk": "^5.0.1",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"json-schema-merge-allof": "^0.8.1",
|
|
38
38
|
"p-queue": "^7.2.0",
|
|
39
39
|
"sharp": "^0.30.4",
|
|
40
|
-
"update-notifier": "^
|
|
40
|
+
"update-notifier": "^6.0.2",
|
|
41
41
|
"yargs": "^17.4.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"engines": {
|
|
54
54
|
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "1a81759251d30336383497f31843b48809d0f56b"
|
|
57
57
|
}
|