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/build.sh +1 -1
- package/deno.json +1 -1
- package/lib/cdp-client.js +34 -4
- package/lib/single-file-bundle.js +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/single-file-launcher.js +3 -3
package/lib/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = "2.0.
|
|
1
|
+
export const version = "2.0.35";
|
package/package.json
CHANGED
package/single-file-launcher.js
CHANGED
|
@@ -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
|
-
|
|
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
|
}
|