@iobroker/js-controller-common-db 6.0.5 → 6.0.6-alpha.0-20240624-92c3310c8

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.
@@ -1227,18 +1227,21 @@ async function installNodeModule(npmUrl, options = {}) {
1227
1227
  if (!options.debug) {
1228
1228
  pak.loglevel = "error";
1229
1229
  }
1230
+ const installOpts = {
1231
+ additionalArgs: []
1232
+ };
1230
1233
  if (options.debug) {
1231
1234
  const stdall = new import_node_stream.PassThrough();
1232
1235
  pak.stdall = stdall;
1233
1236
  pipeLinewise(stdall, process.stdout);
1237
+ installOpts.additionalArgs.push("--foreground-scripts");
1234
1238
  } else {
1235
1239
  const stdout = new import_node_stream.PassThrough();
1236
1240
  pak.stdout = stdout;
1237
1241
  pipeLinewise(stdout, process.stdout);
1238
1242
  }
1239
- const installOpts = {};
1240
1243
  if (options.unsafePerm) {
1241
- installOpts.additionalArgs = ["--unsafe-perm"];
1244
+ installOpts.additionalArgs.push("--unsafe-perm");
1242
1245
  }
1243
1246
  return pak.install([npmUrl], installOpts);
1244
1247
  }