@mutmutco/installer-launcher 1.5.0 → 1.5.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 +11 -2
- package/dist/launcher.sea.cjs +11 -2
- package/package.json +1 -1
package/dist/launcher.js
CHANGED
|
@@ -976,6 +976,15 @@ parentPort.on('message', (next) => {
|
|
|
976
976
|
});
|
|
977
977
|
setInterval(draw, workerData.intervalMs);
|
|
978
978
|
`;
|
|
979
|
+
function awaitWorkerIdle(control, timeoutMs = 250) {
|
|
980
|
+
const deadline = Date.now() + timeoutMs;
|
|
981
|
+
while (Atomics.load(control, 1)) {
|
|
982
|
+
const left = deadline - Date.now();
|
|
983
|
+
if (left <= 0) return false;
|
|
984
|
+
Atomics.wait(control, 1, 1, left);
|
|
985
|
+
}
|
|
986
|
+
return true;
|
|
987
|
+
}
|
|
979
988
|
function createSpinner(face, { animate, stream, intervalMs = 90, transcriptPath, env = process.env, platform = process.platform }) {
|
|
980
989
|
animate = animate && !face.nested && !face.emitsProgress;
|
|
981
990
|
const glyphs = spinnerFramesFor(env, platform);
|
|
@@ -1008,7 +1017,7 @@ function createSpinner(face, { animate, stream, intervalMs = 90, transcriptPath,
|
|
|
1008
1017
|
const pause = () => {
|
|
1009
1018
|
if (!control) return;
|
|
1010
1019
|
Atomics.store(control, 0, 1);
|
|
1011
|
-
|
|
1020
|
+
awaitWorkerIdle(control);
|
|
1012
1021
|
};
|
|
1013
1022
|
const halt = () => {
|
|
1014
1023
|
if (timer) clearInterval(timer);
|
|
@@ -2304,7 +2313,7 @@ async function refreshLauncher(target, options = {}) {
|
|
|
2304
2313
|
}
|
|
2305
2314
|
|
|
2306
2315
|
// src/index.ts
|
|
2307
|
-
var LAUNCHER_VERSION = true ? "1.5.
|
|
2316
|
+
var LAUNCHER_VERSION = true ? "1.5.1" : readVersionFromPackage();
|
|
2308
2317
|
function defaultPrint(message) {
|
|
2309
2318
|
process.stdout.write(`${message}
|
|
2310
2319
|
`);
|
package/dist/launcher.sea.cjs
CHANGED
|
@@ -1009,6 +1009,15 @@ parentPort.on('message', (next) => {
|
|
|
1009
1009
|
});
|
|
1010
1010
|
setInterval(draw, workerData.intervalMs);
|
|
1011
1011
|
`;
|
|
1012
|
+
function awaitWorkerIdle(control, timeoutMs = 250) {
|
|
1013
|
+
const deadline = Date.now() + timeoutMs;
|
|
1014
|
+
while (Atomics.load(control, 1)) {
|
|
1015
|
+
const left = deadline - Date.now();
|
|
1016
|
+
if (left <= 0) return false;
|
|
1017
|
+
Atomics.wait(control, 1, 1, left);
|
|
1018
|
+
}
|
|
1019
|
+
return true;
|
|
1020
|
+
}
|
|
1012
1021
|
function createSpinner(face, { animate, stream, intervalMs = 90, transcriptPath, env = process.env, platform = process.platform }) {
|
|
1013
1022
|
animate = animate && !face.nested && !face.emitsProgress;
|
|
1014
1023
|
const glyphs = spinnerFramesFor(env, platform);
|
|
@@ -1041,7 +1050,7 @@ function createSpinner(face, { animate, stream, intervalMs = 90, transcriptPath,
|
|
|
1041
1050
|
const pause = () => {
|
|
1042
1051
|
if (!control) return;
|
|
1043
1052
|
Atomics.store(control, 0, 1);
|
|
1044
|
-
|
|
1053
|
+
awaitWorkerIdle(control);
|
|
1045
1054
|
};
|
|
1046
1055
|
const halt = () => {
|
|
1047
1056
|
if (timer) clearInterval(timer);
|
|
@@ -2337,7 +2346,7 @@ async function refreshLauncher(target, options = {}) {
|
|
|
2337
2346
|
}
|
|
2338
2347
|
|
|
2339
2348
|
// src/index.ts
|
|
2340
|
-
var LAUNCHER_VERSION = true ? "1.5.
|
|
2349
|
+
var LAUNCHER_VERSION = true ? "1.5.1" : readVersionFromPackage();
|
|
2341
2350
|
function defaultPrint(message) {
|
|
2342
2351
|
process.stdout.write(`${message}
|
|
2343
2352
|
`);
|
package/package.json
CHANGED