single-file-cli 2.0.34 → 2.0.35

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/lib/version.js CHANGED
@@ -1 +1 @@
1
- export const version = "2.0.34";
1
+ export const version = "2.0.35";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "single-file-cli",
3
- "version": "2.0.34",
3
+ "version": "2.0.35",
4
4
  "description": "SingleFile CLI",
5
5
  "author": "Gildas Lormeau",
6
6
  "engines": {
@@ -89,7 +89,7 @@ async function run() {
89
89
  await singlefile.finish();
90
90
  } catch (error) {
91
91
  console.error(error.message || error); // eslint-disable-line no-console
92
- exit(-1);
92
+ await closeBrowserAndExit(-1);
93
93
  }
94
94
  }
95
95
 
@@ -118,7 +118,7 @@ function parseCookies(textValue) {
118
118
  .filter(cookieData => cookieData);
119
119
  }
120
120
 
121
- async function closeBrowserAndExit() {
121
+ async function closeBrowserAndExit(code) {
122
122
  await closeBrowser();
123
- exit();
123
+ exit(code);
124
124
  }