single-file-cli 2.0.32 → 2.0.34

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.32";
1
+ export const version = "2.0.34";
package/options.js CHANGED
@@ -61,7 +61,6 @@ 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
- "compress-content": { description: "Compress the output file into a ZIP file", type: "boolean" },
65
64
  "compress-CSS": { description: "Compress CSS stylesheets", type: "boolean" },
66
65
  "compress-HTML": { description: "Compress HTML content", type: "boolean", defaultValue: true },
67
66
  "crawl-links": { description: "Crawl and save pages found via inner links", type: "boolean" },
@@ -117,11 +116,13 @@ const OPTIONS_INFO = {
117
116
  "urls-file": { description: "Path to a text file containing a list of URLs (separated by a newline) to save", type: "string" },
118
117
  "user-agent": { description: "User-agent of the browser", type: "string" },
119
118
  "user-script-enabled": { description: "Enable the event API allowing to execute scripts before the page is saved", type: "boolean", defaultValue: true },
120
- "self-extracting-archive": { description: "Create a self extracting HTML file", type: "boolean", defaultValue: true },
119
+ "compress-content": { description: "Create a ZIP file instead of an HTML file", type: "boolean" },
120
+ "self-extracting-archive": { description: "Create a self-extracting (ZIP) HTML file", type: "boolean", defaultValue: true },
121
121
  "insert-text-body": { description: "Insert the text of the page into the self-extracting HTML file", type: "boolean" },
122
122
  "create-root-directory": { description: "Create a root directory based on the timestamp", type: "boolean" },
123
123
  "extract-data-from-page": { description: "Extract compressed data from the page instead of fetching the page in order to create universal self-extracting HTML files", type: "boolean", defaultValue: true },
124
124
  "prevent-appended-data": { description: "Prevent appending data after the compressed data when creating self-extracting HTML files", type: "boolean" },
125
+ "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" },
125
126
  "output-directory": { description: "Path to where to save files, this path must exist.", type: "string" },
126
127
  "version": { description: "Print the version number and exit.", type: "boolean" }
127
128
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "single-file-cli",
3
- "version": "2.0.32",
3
+ "version": "2.0.34",
4
4
  "description": "SingleFile CLI",
5
5
  "author": "Gildas Lormeau",
6
6
  "engines": {
@@ -33,42 +33,23 @@ const DEFAULT_OPTIONS = {
33
33
  removeHiddenElements: true,
34
34
  removeUnusedStyles: true,
35
35
  removeUnusedFonts: true,
36
- removeSavedDate: false,
37
- removeFrames: false,
38
36
  compressHTML: true,
39
- compressCSS: false,
40
37
  loadDeferredImages: true,
41
38
  loadDeferredImagesMaxIdleTime: 1500,
42
- loadDeferredImagesBlockCookies: false,
43
- loadDeferredImagesBlockStorage: false,
44
- loadDeferredImagesKeepZoomLevel: false,
45
- loadDeferredImagesDispatchScrollEvent: false,
46
39
  filenameTemplate: "{page-title} ({date-locale} {time-locale}).html",
47
- infobarTemplate: "",
48
- includeInfobar: false,
49
40
  filenameMaxLength: 192,
50
41
  filenameMaxLengthUnit: "bytes",
51
42
  filenameReplacedCharacters: ["~", "+", "\\\\", "?", "%", "*", ":", "|", "\"", "<", ">", "\x00-\x1f", "\x7F"],
52
43
  filenameReplacementCharacter: "_",
53
- maxResourceSizeEnabled: false,
54
44
  maxResourceSize: 10,
55
45
  backgroundSave: true,
56
46
  removeAlternativeFonts: true,
57
47
  removeAlternativeMedias: true,
58
48
  removeAlternativeImages: true,
59
49
  groupDuplicateImages: true,
60
- saveRawPage: false,
61
- resolveFragmentIdentifierURLs: false,
62
- userScriptEnabled: false,
63
50
  saveFavicon: true,
64
- includeBOM: false,
65
51
  insertMetaCSP: true,
66
- insertMetaNoIndex: false,
67
- password: "",
68
52
  insertSingleFileComment: true,
69
- blockImages: false,
70
- blockStylesheets: false,
71
- blockFonts: false,
72
53
  blockScripts: true,
73
54
  blockVideos: true,
74
55
  blockAudios: true