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/build.sh +1 -1
- package/deno.json +2 -2
- package/deno.lock +27 -32
- package/lib/cdp-client.js +30 -16
- package/lib/single-file-bundle.js +1 -1
- package/lib/version.js +1 -1
- package/options.js +2 -1
- package/package.json +1 -1
- package/single-file-cli-api.js +1 -0
package/lib/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = "2.0.
|
|
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
|
|
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
package/single-file-cli-api.js
CHANGED
|
@@ -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)) {
|