@boxes-dev/dvb 1.0.141 → 1.0.143

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/bin/dvbd.cjs CHANGED
@@ -3166,7 +3166,10 @@ var isProcessAlive = (pid) => {
3166
3166
  var createStageDir = async (version, homeDir = import_node_os2.default.homedir()) => {
3167
3167
  const releasesDir = await ensureReleasesDir(homeDir);
3168
3168
  return await import_promises2.default.mkdtemp(
3169
- import_node_path11.default.join(releasesDir, `.tmp-${version.replace(/[^a-zA-Z0-9._-]+/g, "-")}-`)
3169
+ import_node_path11.default.join(
3170
+ releasesDir,
3171
+ `.tmp-${version.replace(/[^a-zA-Z0-9._-]+/g, "-")}-`
3172
+ )
3170
3173
  );
3171
3174
  };
3172
3175
  var copyBundledRuntimeToStage = async (bundled, stageDir) => {
@@ -3174,9 +3177,13 @@ var copyBundledRuntimeToStage = async (bundled, stageDir) => {
3174
3177
  import_node_path11.default.join(bundled.runtimeDir, "package.json"),
3175
3178
  import_node_path11.default.join(stageDir, "package.json")
3176
3179
  );
3177
- await import_promises2.default.cp(import_node_path11.default.join(bundled.runtimeDir, "dist"), import_node_path11.default.join(stageDir, "dist"), {
3178
- recursive: true
3179
- });
3180
+ await import_promises2.default.cp(
3181
+ import_node_path11.default.join(bundled.runtimeDir, "dist"),
3182
+ import_node_path11.default.join(stageDir, "dist"),
3183
+ {
3184
+ recursive: true
3185
+ }
3186
+ );
3180
3187
  };
3181
3188
  var fetchLatestRuntimeManifest = async () => {
3182
3189
  const response = await fetch(RUNTIME_MANIFEST_URL, {
@@ -3243,9 +3250,7 @@ var requestUnixJson = async (socketPath, requestPath, timeoutMs) => await new Pr
3243
3250
  const payload = Buffer.concat(chunks).toString("utf8");
3244
3251
  resolve(JSON.parse(payload));
3245
3252
  } catch (error) {
3246
- reject(
3247
- error instanceof Error ? error : new Error(String(error))
3248
- );
3253
+ reject(error instanceof Error ? error : new Error(String(error)));
3249
3254
  }
3250
3255
  });
3251
3256
  }
@@ -3302,7 +3307,9 @@ var waitForHealthyRuntime = async (socketPath, child, readStdout, readStderr) =>
3302
3307
  }
3303
3308
  await new Promise((resolve) => setTimeout(resolve, 150));
3304
3309
  }
3305
- throw new Error(`Runtime validation timed out. ${readStderr() || readStdout()}`.trim());
3310
+ throw new Error(
3311
+ `Runtime validation timed out. ${readStderr() || readStdout()}`.trim()
3312
+ );
3306
3313
  };
3307
3314
  var terminateChild = async (child) => {
3308
3315
  if (child.exitCode !== null) return;
@@ -3478,13 +3485,11 @@ var runRuntimeChild = async (binPath, args, signalPath) => {
3478
3485
  for (const [signal, handler] of signalHandlers) {
3479
3486
  process.once(signal, handler);
3480
3487
  }
3481
- const result = await new Promise(
3482
- (resolve) => {
3483
- child.once("exit", (code, signal) => {
3484
- resolve({ code, signal });
3485
- });
3486
- }
3487
- );
3488
+ const result = await new Promise((resolve) => {
3489
+ child.once("exit", (code, signal) => {
3490
+ resolve({ code, signal });
3491
+ });
3492
+ });
3488
3493
  for (const [signal, handler] of signalHandlers) {
3489
3494
  process.removeListener(signal, handler);
3490
3495
  }