plugin-updater 1.0.29 → 1.0.30
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/index.js +10 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -442,12 +442,19 @@ export async function earlyLaunch(configDir, plugins) {
|
|
|
442
442
|
return;
|
|
443
443
|
}
|
|
444
444
|
for (const plugin of plugins) {
|
|
445
|
-
|
|
445
|
+
// absence of the enabled key means enabled, matching the loader TUI
|
|
446
|
+
if (plugin.enabled === false) {
|
|
447
|
+
writeLog(`Skipping disabled plugin ${plugin.name}`);
|
|
446
448
|
continue;
|
|
447
|
-
|
|
449
|
+
}
|
|
450
|
+
if (plugin.autoUpdate === false) {
|
|
451
|
+
writeLog(`Skipping auto-update for ${plugin.name} (autoUpdate off)`);
|
|
448
452
|
continue;
|
|
449
|
-
|
|
453
|
+
}
|
|
454
|
+
if (!plugin.url) {
|
|
455
|
+
writeLog(`Skipping ${plugin.name}: no url in plugins.json`, true);
|
|
450
456
|
continue;
|
|
457
|
+
}
|
|
451
458
|
writeLog(`Processing earlyLaunch for ${plugin.name}`);
|
|
452
459
|
try {
|
|
453
460
|
const updateResult = updatePlugin(plugin.name, plugin.url, plugin.branch, null, plugin.updateInterval ?? 1);
|