@workit-dev/pi 2.15.0 → 2.16.0
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/workit.js +10 -1
- package/package.json +1 -1
package/dist/workit.js
CHANGED
|
@@ -24189,6 +24189,10 @@ function findExecutable(bin, env) {
|
|
|
24189
24189
|
var TIMEOUT_MS = 60000;
|
|
24190
24190
|
var YTRACK_EXIT = { ok: 0, failed: 1, cancelled: 2, auth: 4 };
|
|
24191
24191
|
var findYtrack = (env) => env.WORKIT_NO_YTRACK === "1" ? null : findExecutable("ytrack", env);
|
|
24192
|
+
var YTRACK_QUIET_ENV = {
|
|
24193
|
+
YTRACK_NO_UPDATE_NOTIFIER: "1",
|
|
24194
|
+
YTRACK_NO_AUTO_UPGRADE: "1"
|
|
24195
|
+
};
|
|
24192
24196
|
function ytrackRunner(env, host, timeoutMs = TIMEOUT_MS) {
|
|
24193
24197
|
return (args, input) => {
|
|
24194
24198
|
const exe = findYtrack(env);
|
|
@@ -24196,7 +24200,12 @@ function ytrackRunner(env, host, timeoutMs = TIMEOUT_MS) {
|
|
|
24196
24200
|
return { status: null, stdout: "", stderr: "", missing: true };
|
|
24197
24201
|
const result = spawnSync21(exe, args, {
|
|
24198
24202
|
encoding: "utf8",
|
|
24199
|
-
env: {
|
|
24203
|
+
env: {
|
|
24204
|
+
...env,
|
|
24205
|
+
NO_COLOR: "1",
|
|
24206
|
+
...YTRACK_QUIET_ENV,
|
|
24207
|
+
...host ? { YTRACK_HOST: host } : {}
|
|
24208
|
+
},
|
|
24200
24209
|
timeout: timeoutMs,
|
|
24201
24210
|
killSignal: "SIGKILL",
|
|
24202
24211
|
windowsHide: true,
|