single-file-cli 2.0.37 → 2.0.40
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 +42 -4
- package/lib/single-file-bundle.js +1 -1
- package/lib/version.js +1 -1
- package/options.js +7 -1
- package/package.json +1 -1
- package/single-file-cli-api.js +1 -1
package/lib/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = "2.0.
|
|
1
|
+
export const version = "2.0.40";
|
package/options.js
CHANGED
|
@@ -61,6 +61,10 @@ const OPTIONS_INFO = {
|
|
|
61
61
|
"browser-cookies-file": { description: "Path of the cookies file formatted as a JSON file or a Netscape text file", type: "string" },
|
|
62
62
|
"browser-ignore-insecure-certs": { description: "Ignore HTTPs errors", type: "boolean" },
|
|
63
63
|
"browser-remote-debugging-URL": { description: "Remote debugging URL", type: "string" },
|
|
64
|
+
"browser-mobile-emulation": { description: "Emulate a mobile device", type: "boolean" },
|
|
65
|
+
"browser-device-width": { description: "Width of the device viewport in pixels (default value is 360 when using --browser-mobile-emulation)", type: "number" },
|
|
66
|
+
"browser-device-height": { description: "Height of the device viewport in pixels (default value is 800 when using --browser-mobile-emulation)", type: "number" },
|
|
67
|
+
"browser-device-scale-factor": { description: "Scale factor of the device viewport (default value is 2 when using --browser-mobile-emulation)", type: "number" },
|
|
64
68
|
"compress-CSS": { description: "Compress CSS stylesheets", type: "boolean" },
|
|
65
69
|
"compress-HTML": { description: "Compress HTML content", type: "boolean", defaultValue: true },
|
|
66
70
|
"crawl-links": { description: "Crawl and save pages found via inner links", type: "boolean" },
|
|
@@ -115,6 +119,8 @@ const OPTIONS_INFO = {
|
|
|
115
119
|
"save-raw-page": { description: "Save the original page without interpreting it into the browser", type: "boolean" },
|
|
116
120
|
"urls-file": { description: "Path to a text file containing a list of URLs (separated by a newline) to save", type: "string" },
|
|
117
121
|
"user-agent": { description: "User-agent of the browser", type: "string" },
|
|
122
|
+
"accept-language": { description: "Accept language of the browser", type: "string" },
|
|
123
|
+
"platform": { description: "Platform of the browser (default value is \"Android\" when using --browser-mobile-emulation)", type: "string" },
|
|
118
124
|
"user-script-enabled": { description: "Enable the event API allowing to execute scripts before the page is saved", type: "boolean", defaultValue: true },
|
|
119
125
|
"compress-content": { description: "Create a ZIP file instead of an HTML file", type: "boolean" },
|
|
120
126
|
"self-extracting-archive": { description: "Create a self-extracting (ZIP) HTML file", type: "boolean", defaultValue: true },
|
|
@@ -199,7 +205,7 @@ function parseArgs(args) {
|
|
|
199
205
|
}
|
|
200
206
|
let nextArgName;
|
|
201
207
|
if (argValue === undefined) {
|
|
202
|
-
|
|
208
|
+
if (
|
|
203
209
|
argIndex + 1 < args.length &&
|
|
204
210
|
({ argName: nextArgName } = parseArg(args[argIndex + 1])) &&
|
|
205
211
|
(nextArgName === undefined || !getOptionInfo(nextArgName)) &&
|
package/package.json
CHANGED
package/single-file-cli-api.js
CHANGED