single-file-cli 2.0.70 → 2.0.71

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.70";
1
+ export const version = "2.0.71";
package/options.js CHANGED
@@ -48,7 +48,8 @@ const OPTIONS_INFO = {
48
48
  "browser-executable-path": { description: "Path to chrome/chromium executable", type: "string" },
49
49
  "browser-width": { description: "Width of the browser viewport in pixels", type: "number", defaultValue: 1280 },
50
50
  "browser-height": { description: "Height of the browser viewport in pixels", type: "number", defaultValue: 720 },
51
- "browser-load-max-time": { description: "Maximum delay of time to wait for page loading in ms", type: "number", defaultValue: 60000 },
51
+ "browser-load-max-time": { description: "Maximum delay of time to wait for loading the page in ms", type: "number", defaultValue: 60000 },
52
+ "browser-capture-max-time": { description: "Maximum delay of time to wait for capturing the page in ms", type: "number", defaultValue: 60000 },
52
53
  "browser-wait-delay": { description: "Time to wait before capturing the page in ms", type: "number" },
53
54
  "browser-wait-until": { description: "When to consider the page is loaded (InteractiveTime, networkIdle, networkAlmostIdle, load, domContentLoaded)", type: "string", defaultValue: "networkIdle" },
54
55
  "browser-wait-until-delay": { description: "Delay of time in ms to wait before considering the page is loaded when the value of --browser-wait-until is reached", type: "number", defaultValue: 1000 },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "single-file-cli",
3
- "version": "2.0.70",
3
+ "version": "2.0.71",
4
4
  "description": "SingleFile CLI",
5
5
  "author": "Gildas Lormeau",
6
6
  "engines": {
@@ -195,6 +195,7 @@ function testMaxDepth(task) {
195
195
  }
196
196
 
197
197
  async function createTask(url, options, parentTask, rootTaskURL) {
198
+ options.originalUrl = url;
198
199
  url = parentTask ? rewriteURL(url, options.crawlRemoveURLFragment, options.crawlRewriteRules) : url;
199
200
  if (url) {
200
201
  if (!VALID_URL_TEST.test(url)) {