@boxes-dev/dvb 1.0.141 → 1.0.142

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.
@@ -3165,7 +3165,10 @@ var isProcessAlive = (pid) => {
3165
3165
  var createStageDir = async (version, homeDir = import_node_os2.default.homedir()) => {
3166
3166
  const releasesDir = await ensureReleasesDir(homeDir);
3167
3167
  return await import_promises2.default.mkdtemp(
3168
- import_node_path11.default.join(releasesDir, `.tmp-${version.replace(/[^a-zA-Z0-9._-]+/g, "-")}-`)
3168
+ import_node_path11.default.join(
3169
+ releasesDir,
3170
+ `.tmp-${version.replace(/[^a-zA-Z0-9._-]+/g, "-")}-`
3171
+ )
3169
3172
  );
3170
3173
  };
3171
3174
  var copyBundledRuntimeToStage = async (bundled, stageDir) => {
@@ -3173,9 +3176,13 @@ var copyBundledRuntimeToStage = async (bundled, stageDir) => {
3173
3176
  import_node_path11.default.join(bundled.runtimeDir, "package.json"),
3174
3177
  import_node_path11.default.join(stageDir, "package.json")
3175
3178
  );
3176
- await import_promises2.default.cp(import_node_path11.default.join(bundled.runtimeDir, "dist"), import_node_path11.default.join(stageDir, "dist"), {
3177
- recursive: true
3178
- });
3179
+ await import_promises2.default.cp(
3180
+ import_node_path11.default.join(bundled.runtimeDir, "dist"),
3181
+ import_node_path11.default.join(stageDir, "dist"),
3182
+ {
3183
+ recursive: true
3184
+ }
3185
+ );
3179
3186
  };
3180
3187
  var fetchLatestRuntimeManifest = async () => {
3181
3188
  const response = await fetch(RUNTIME_MANIFEST_URL, {
@@ -3242,9 +3249,7 @@ var requestUnixJson = async (socketPath, requestPath, timeoutMs) => await new Pr
3242
3249
  const payload = Buffer.concat(chunks).toString("utf8");
3243
3250
  resolve(JSON.parse(payload));
3244
3251
  } catch (error) {
3245
- reject(
3246
- error instanceof Error ? error : new Error(String(error))
3247
- );
3252
+ reject(error instanceof Error ? error : new Error(String(error)));
3248
3253
  }
3249
3254
  });
3250
3255
  }
@@ -3301,7 +3306,9 @@ var waitForHealthyRuntime = async (socketPath, child, readStdout, readStderr) =>
3301
3306
  }
3302
3307
  await new Promise((resolve) => setTimeout(resolve, 150));
3303
3308
  }
3304
- throw new Error(`Runtime validation timed out. ${readStderr() || readStdout()}`.trim());
3309
+ throw new Error(
3310
+ `Runtime validation timed out. ${readStderr() || readStdout()}`.trim()
3311
+ );
3305
3312
  };
3306
3313
  var terminateChild = async (child) => {
3307
3314
  if (child.exitCode !== null) return;
@@ -3391,14 +3398,10 @@ var claimUpdaterDaemon = async (homeDir = import_node_os2.default.homedir()) =>
3391
3398
  };
3392
3399
  for (let attempt = 0; attempt < 2; attempt += 1) {
3393
3400
  try {
3394
- await import_promises2.default.writeFile(
3395
- daemonPath,
3396
- JSON.stringify(record, null, 2),
3397
- {
3398
- encoding: "utf8",
3399
- flag: "wx"
3400
- }
3401
- );
3401
+ await import_promises2.default.writeFile(daemonPath, JSON.stringify(record, null, 2), {
3402
+ encoding: "utf8",
3403
+ flag: "wx"
3404
+ });
3402
3405
  return true;
3403
3406
  } catch (error) {
3404
3407
  const code = error?.code;