@mutmutco/installer-launcher 1.4.0 → 1.4.1
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/launcher.js +4 -2
- package/dist/launcher.sea.cjs +4 -2
- package/package.json +1 -1
package/dist/launcher.js
CHANGED
|
@@ -1295,6 +1295,7 @@ function createInstallerRun(value, options = {}) {
|
|
|
1295
1295
|
};
|
|
1296
1296
|
let started = false;
|
|
1297
1297
|
let finished = false;
|
|
1298
|
+
let currentSurfaces = 0;
|
|
1298
1299
|
let operation = options.operation;
|
|
1299
1300
|
const start = () => {
|
|
1300
1301
|
if (started || finished) return;
|
|
@@ -1363,6 +1364,7 @@ function createInstallerRun(value, options = {}) {
|
|
|
1363
1364
|
if (!status) throw new Error("installer run: unknown surface state");
|
|
1364
1365
|
const separator = tty ? "\xB7" : "-";
|
|
1365
1366
|
const activation = facts.state === "updated" && surface.activation ? ` ${separator} ${surface.activation}` : "";
|
|
1367
|
+
if (facts.state === "current" && facts.id !== LAUNCHER_SURFACE) currentSurfaces++;
|
|
1366
1368
|
const completed = ["updated", "current", "kept", "skipped"].includes(facts.state);
|
|
1367
1369
|
durable(`${facts.id}${versions} ${separator} ${status}${activation}`, completed ? facts.seconds ?? null : null, facts.state === "failed" ? "fail" : facts.state === "updated" ? "ok" : "note");
|
|
1368
1370
|
if (facts.detail) run2.relay(facts.detail);
|
|
@@ -1465,7 +1467,7 @@ function createInstallerRun(value, options = {}) {
|
|
|
1465
1467
|
spinner.stop();
|
|
1466
1468
|
finished = true;
|
|
1467
1469
|
if (options.quiet && facts.updated === 0 && facts.failed === 0 && !facts.operationFailed) return;
|
|
1468
|
-
const changed = !facts.version ? "No release target is available." : facts.dryRun ? `Would update ${facts.updated} of ${facts.total} surfaces to ${facts.version}.` : facts.installed ? `Installed ${facts.version} across ${facts.total} surfaces.` : `Updated ${facts.updated} of ${facts.total} surfaces to ${facts.version}.`;
|
|
1470
|
+
const changed = !facts.version ? "No release target is available." : facts.dryRun ? `Would update ${facts.updated} of ${facts.total} surfaces to ${facts.version}.` : facts.installed ? `Installed ${facts.version} across ${facts.total} surfaces.` : facts.updated === 0 && currentSurfaces > 0 ? `${currentSurfaces >= facts.total ? "All" : `${currentSurfaces} of`} ${facts.total} surfaces already at ${facts.version}.` : `Updated ${facts.updated} of ${facts.total} surfaces to ${facts.version}.`;
|
|
1469
1471
|
const ready = facts.failed === 0 && !facts.dryRun && !facts.deferred && !facts.operationFailed && Boolean(facts.version);
|
|
1470
1472
|
const deferred = Boolean(facts.deferred) && facts.failed === 0 && !facts.operationFailed;
|
|
1471
1473
|
const body = [
|
|
@@ -2263,7 +2265,7 @@ async function refreshLauncher(target, options = {}) {
|
|
|
2263
2265
|
}
|
|
2264
2266
|
|
|
2265
2267
|
// src/index.ts
|
|
2266
|
-
var LAUNCHER_VERSION = true ? "1.4.
|
|
2268
|
+
var LAUNCHER_VERSION = true ? "1.4.1" : readVersionFromPackage();
|
|
2267
2269
|
function defaultPrint(message) {
|
|
2268
2270
|
process.stdout.write(`${message}
|
|
2269
2271
|
`);
|
package/dist/launcher.sea.cjs
CHANGED
|
@@ -1328,6 +1328,7 @@ function createInstallerRun(value, options = {}) {
|
|
|
1328
1328
|
};
|
|
1329
1329
|
let started = false;
|
|
1330
1330
|
let finished = false;
|
|
1331
|
+
let currentSurfaces = 0;
|
|
1331
1332
|
let operation = options.operation;
|
|
1332
1333
|
const start = () => {
|
|
1333
1334
|
if (started || finished) return;
|
|
@@ -1396,6 +1397,7 @@ function createInstallerRun(value, options = {}) {
|
|
|
1396
1397
|
if (!status) throw new Error("installer run: unknown surface state");
|
|
1397
1398
|
const separator = tty ? "\xB7" : "-";
|
|
1398
1399
|
const activation = facts.state === "updated" && surface.activation ? ` ${separator} ${surface.activation}` : "";
|
|
1400
|
+
if (facts.state === "current" && facts.id !== LAUNCHER_SURFACE) currentSurfaces++;
|
|
1399
1401
|
const completed = ["updated", "current", "kept", "skipped"].includes(facts.state);
|
|
1400
1402
|
durable(`${facts.id}${versions} ${separator} ${status}${activation}`, completed ? facts.seconds ?? null : null, facts.state === "failed" ? "fail" : facts.state === "updated" ? "ok" : "note");
|
|
1401
1403
|
if (facts.detail) run2.relay(facts.detail);
|
|
@@ -1498,7 +1500,7 @@ function createInstallerRun(value, options = {}) {
|
|
|
1498
1500
|
spinner.stop();
|
|
1499
1501
|
finished = true;
|
|
1500
1502
|
if (options.quiet && facts.updated === 0 && facts.failed === 0 && !facts.operationFailed) return;
|
|
1501
|
-
const changed = !facts.version ? "No release target is available." : facts.dryRun ? `Would update ${facts.updated} of ${facts.total} surfaces to ${facts.version}.` : facts.installed ? `Installed ${facts.version} across ${facts.total} surfaces.` : `Updated ${facts.updated} of ${facts.total} surfaces to ${facts.version}.`;
|
|
1503
|
+
const changed = !facts.version ? "No release target is available." : facts.dryRun ? `Would update ${facts.updated} of ${facts.total} surfaces to ${facts.version}.` : facts.installed ? `Installed ${facts.version} across ${facts.total} surfaces.` : facts.updated === 0 && currentSurfaces > 0 ? `${currentSurfaces >= facts.total ? "All" : `${currentSurfaces} of`} ${facts.total} surfaces already at ${facts.version}.` : `Updated ${facts.updated} of ${facts.total} surfaces to ${facts.version}.`;
|
|
1502
1504
|
const ready = facts.failed === 0 && !facts.dryRun && !facts.deferred && !facts.operationFailed && Boolean(facts.version);
|
|
1503
1505
|
const deferred = Boolean(facts.deferred) && facts.failed === 0 && !facts.operationFailed;
|
|
1504
1506
|
const body = [
|
|
@@ -2296,7 +2298,7 @@ async function refreshLauncher(target, options = {}) {
|
|
|
2296
2298
|
}
|
|
2297
2299
|
|
|
2298
2300
|
// src/index.ts
|
|
2299
|
-
var LAUNCHER_VERSION = true ? "1.4.
|
|
2301
|
+
var LAUNCHER_VERSION = true ? "1.4.1" : readVersionFromPackage();
|
|
2300
2302
|
function defaultPrint(message) {
|
|
2301
2303
|
process.stdout.write(`${message}
|
|
2302
2304
|
`);
|
package/package.json
CHANGED