single-file-cli 2.0.52 → 2.0.53
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/single-file-bundle.js +1 -1
- package/lib/version.js +1 -1
- package/package.json +2 -2
- package/single-file-cli-api.js +6 -1
package/lib/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = "2.0.
|
|
1
|
+
export const version = "2.0.53";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "single-file-cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.53",
|
|
4
4
|
"description": "SingleFile CLI",
|
|
5
5
|
"author": "Gildas Lormeau",
|
|
6
6
|
"engines": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
"type": "module",
|
|
12
12
|
"bin": {
|
|
13
|
-
"single-file": "
|
|
13
|
+
"single-file": "single-file-node.js"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"simple-cdp": "^1.8.5",
|
package/single-file-cli-api.js
CHANGED
|
@@ -290,7 +290,12 @@ async function capturePage(options) {
|
|
|
290
290
|
}
|
|
291
291
|
return pageData;
|
|
292
292
|
} catch (error) {
|
|
293
|
-
const
|
|
293
|
+
const date = new Date();
|
|
294
|
+
let message = `[${date.toISOString()}] URL: ${options.url}`;
|
|
295
|
+
if (!options.errorTracesDisabled) {
|
|
296
|
+
message += "\nStack: " + error.stack;
|
|
297
|
+
}
|
|
298
|
+
message += "\n";
|
|
294
299
|
if (options.errorFile) {
|
|
295
300
|
await writeTextFile(options.errorFile, message, { append: true });
|
|
296
301
|
} else {
|