@ijuantm/simpl-addon 2.4.5 → 2.4.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.
- package/install.js +11 -8
- package/package.json +1 -1
package/install.js
CHANGED
|
@@ -404,11 +404,13 @@ const main = async () => {
|
|
|
404
404
|
process.exit(1);
|
|
405
405
|
}
|
|
406
406
|
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
407
|
+
if (!directName) {
|
|
408
|
+
console.log();
|
|
409
|
+
log(` ╭${'─'.repeat(62)}╮`);
|
|
410
|
+
log(` │ ${COLORS.bold}Simpl Add-on Installer${COLORS.reset} ${COLORS.dim}(v${version})${COLORS.reset}${' '.repeat(34 - version.length)}│`);
|
|
411
|
+
log(` ╰${'─'.repeat(62)}╯`);
|
|
412
|
+
console.log();
|
|
413
|
+
}
|
|
412
414
|
|
|
413
415
|
let versionsData;
|
|
414
416
|
|
|
@@ -452,7 +454,7 @@ const main = async () => {
|
|
|
452
454
|
process.exit(1);
|
|
453
455
|
}
|
|
454
456
|
|
|
455
|
-
log(' 🧰 Fetching available add-ons...', 'bold');
|
|
457
|
+
if (!directName) log(' 🧰 Fetching available add-ons...', 'bold');
|
|
456
458
|
|
|
457
459
|
let addons;
|
|
458
460
|
|
|
@@ -466,9 +468,8 @@ const main = async () => {
|
|
|
466
468
|
process.exit(1);
|
|
467
469
|
}
|
|
468
470
|
|
|
469
|
-
console.log();
|
|
470
|
-
|
|
471
471
|
if (addons.length === 0) {
|
|
472
|
+
console.log();
|
|
472
473
|
log(` ${COLORS.yellow}⚠${COLORS.reset} No add-ons available for this version`);
|
|
473
474
|
console.log();
|
|
474
475
|
process.exit(0);
|
|
@@ -478,6 +479,7 @@ const main = async () => {
|
|
|
478
479
|
|
|
479
480
|
if (directName) {
|
|
480
481
|
if (!addons.includes(directName)) {
|
|
482
|
+
console.log();
|
|
481
483
|
log(` ${COLORS.red}✗${COLORS.reset} Add-on ${COLORS.bold}${directName}${COLORS.reset} not found`, 'red');
|
|
482
484
|
console.log();
|
|
483
485
|
log(` ${COLORS.bold}Available add-ons:${COLORS.reset}`, 'blue');
|
|
@@ -487,6 +489,7 @@ const main = async () => {
|
|
|
487
489
|
}
|
|
488
490
|
addonName = directName;
|
|
489
491
|
} else {
|
|
492
|
+
console.log();
|
|
490
493
|
log(` ${COLORS.bold}Available add-ons:${COLORS.reset}`, 'blue');
|
|
491
494
|
addons.forEach((name, index) => log(` ${COLORS.cyan}${index + 1}.${COLORS.reset} ${name}`));
|
|
492
495
|
console.log();
|