single-file-cli 2.0.41 → 2.0.43

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/deno.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@single-file/single-file-cli",
3
- "version": "2.0.41",
3
+ "version": "2.0.43",
4
4
  "description": "SingleFile CLI",
5
5
  "nodeModulesDir": true,
6
6
  "exports": {
package/lib/browser.js CHANGED
@@ -59,6 +59,7 @@ async function launchBrowser(options = {}, indexPath = 0) {
59
59
  args.push("--proxy-server=" + options.httpProxyServer);
60
60
  }
61
61
  args.push("--user-data-dir=" + profilePath);
62
+ args.push("--single-process");
62
63
  if (options.args) {
63
64
  const argNames = options.args.map(arg => arg.split("=")[0]);
64
65
  args = args.filter(arg => !argNames.includes(arg.split("=")[0]));
@@ -121,7 +122,7 @@ async function closeBrowser() {
121
122
  await remove(profilePath, { recursive: true });
122
123
  profilePath = undefined;
123
124
  } catch (error) {
124
- console.log("Warning: failed to remove profile directory: " + error.message); // eslint-disable-line no-console
125
+ console.log("Warning: failed to remove profile directory: " + profilePath); // eslint-disable-line no-console
125
126
  }
126
127
  }
127
128
  }
package/lib/version.js CHANGED
@@ -1 +1 @@
1
- export const version = "2.0.41";
1
+ export const version = "2.0.43";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "single-file-cli",
3
- "version": "2.0.41",
3
+ "version": "2.0.43",
4
4
  "description": "SingleFile CLI",
5
5
  "author": "Gildas Lormeau",
6
6
  "engines": {