grimoire-wizard 0.5.1 → 0.5.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/dist/cli.js +8 -4
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1199,10 +1199,14 @@ function renderBanner(name, theme, options) {
|
|
|
1199
1199
|
font: "Small",
|
|
1200
1200
|
horizontalLayout: "default"
|
|
1201
1201
|
});
|
|
1202
|
-
const
|
|
1203
|
-
const
|
|
1204
|
-
|
|
1205
|
-
${
|
|
1202
|
+
const artLines = art.split("\n");
|
|
1203
|
+
const lines = artLines.map((line, i) => {
|
|
1204
|
+
if (icon && i === Math.floor(artLines.length / 2)) {
|
|
1205
|
+
return ` ${icon} ${line}`;
|
|
1206
|
+
}
|
|
1207
|
+
return icon ? ` ${line}` : ` ${line}`;
|
|
1208
|
+
}).join("\n");
|
|
1209
|
+
return GRIMOIRE_GRADIENT(lines);
|
|
1206
1210
|
} catch {
|
|
1207
1211
|
return ` ${prefix}${theme.bold(name)}`;
|
|
1208
1212
|
}
|