single-file-cli 2.0.59 → 2.0.61
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 +65 -15
- package/lib/single-file-bundle.js +1 -1
- package/lib/version.js +1 -1
- package/options.js +3 -0
- package/package.json +1 -1
package/lib/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = "2.0.
|
|
1
|
+
export const version = "2.0.61";
|
package/options.js
CHANGED
|
@@ -133,6 +133,8 @@ const OPTIONS_INFO = {
|
|
|
133
133
|
"prevent-appended-data": { description: "Prevent appending data after the compressed data when creating self-extracting HTML files", type: "boolean" },
|
|
134
134
|
"embed-screenshot": { description: "Embed a screenshot of the page as a PNG file in the compressed file (self-extracting HTML or ZIP file). When enabled, the resulting file can be read as a ZIP file or a PNG image.", type: "boolean" },
|
|
135
135
|
"embedded-image": { description: "Path to a PNG image to embed in the compressed file.", type: "string" },
|
|
136
|
+
"embed-pdf": { description: "Embed a PDF file in the self-extracting HTML file. When enabled, the resulting file can be read as a HTML, a ZIP file or a PDF file.", type: "boolean" },
|
|
137
|
+
"embed-pdf-options": { description: "Options passed to the CDP method `Page.printToPDF()` given as a JSON string (e.g. { \"pageRanges\": \"1-1\", \"paperWidth\": 11, \"paperHeight\": 8.5 })", type: "string" },
|
|
136
138
|
"output-directory": { description: "Path to where to save files, this path must exist.", type: "string" },
|
|
137
139
|
"version": { description: "Print the version number and exit.", type: "boolean" },
|
|
138
140
|
"output-json": { description: "Output the result as a JSON string containing the page and network info", type: "boolean" },
|
|
@@ -140,6 +142,7 @@ const OPTIONS_INFO = {
|
|
|
140
142
|
"resolve-links": { description: "Resolve link URLs to absolute URLs", type: "boolean", defaultValue: true },
|
|
141
143
|
"settings-file": { description: "Path to a JSON file containing the settings exported from the web extension", type: "string" },
|
|
142
144
|
"settings-file-profile": { description: "Name of the profile to use when using --settings-file", type: "string", defaultValue: "default" },
|
|
145
|
+
"group-duplicate-stylesheets": { description: "Group duplicate inline stylesheets into a single stylesheet in order to reduce the size of the page", type: "boolean", defaultValue: true }
|
|
143
146
|
};
|
|
144
147
|
|
|
145
148
|
const { args, exit } = Deno;
|