@ijuantm/simpl-addon 2.4.7 → 2.4.9
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 +5 -9
- package/package.json +1 -1
package/install.js
CHANGED
|
@@ -408,7 +408,6 @@ const main = async () => {
|
|
|
408
408
|
log(` ╭${'─'.repeat(62)}╮`);
|
|
409
409
|
log(` │ ${COLORS.bold}Simpl Add-on Installer${COLORS.reset} ${COLORS.dim}(v${version})${COLORS.reset}${' '.repeat(34 - version.length)}│`);
|
|
410
410
|
log(` ╰${'─'.repeat(62)}╯`);
|
|
411
|
-
console.log();
|
|
412
411
|
|
|
413
412
|
let versionsData;
|
|
414
413
|
|
|
@@ -440,19 +439,16 @@ const main = async () => {
|
|
|
440
439
|
log(` ${COLORS.bold}Available add-ons for this version:${COLORS.reset}`, 'blue');
|
|
441
440
|
|
|
442
441
|
const addons = versionMeta['add-ons'] || [];
|
|
443
|
-
if (addons.length === 0) {
|
|
444
|
-
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
log(` ${COLORS.cyan}•${COLORS.reset} ${name}: ${COLORS.dim}${CDN_BASE}/${version}/add-ons/${name}.zip${COLORS.reset}`);
|
|
448
|
-
});
|
|
449
|
-
}
|
|
442
|
+
if (addons.length === 0) log(` ${COLORS.dim}No add-ons available${COLORS.reset}`);
|
|
443
|
+
else addons.forEach(name => {
|
|
444
|
+
log(` ${COLORS.cyan}•${COLORS.reset} ${name}: ${COLORS.dim}${CDN_BASE}/${version}/add-ons/${name}.zip${COLORS.reset}`);
|
|
445
|
+
});
|
|
450
446
|
|
|
451
447
|
console.log();
|
|
452
448
|
process.exit(1);
|
|
453
449
|
}
|
|
454
450
|
|
|
455
|
-
if (!directName) log('
|
|
451
|
+
if (!directName) log(' 🗄️ Fetching available add-ons...', 'bold');
|
|
456
452
|
|
|
457
453
|
let addons;
|
|
458
454
|
|