single-file-cli 2.0.49 → 2.0.51

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.49";
1
+ export const version = "2.0.51";
package/options.js CHANGED
@@ -97,6 +97,8 @@ const OPTIONS_INFO = {
97
97
  "http-proxy-password": { description: "HTTP password", type: "string" },
98
98
  "include-BOM": { description: "Include the UTF-8 BOM into the HTML page", type: "boolean" },
99
99
  "include-infobar": { description: "Include the infobar", type: "boolean" },
100
+ "infobar-template": { description: "Template used to generate the infobar content (see help page of the extension for more info)", type: "string" },
101
+ "open-infobar": { description: "Keep the infobar open when using --include-infobar", type: "boolean" },
100
102
  "insert-meta-CSP": { description: "Include a <meta> tag with a CSP to avoid potential requests to internet when viewing a page", type: "boolean", defaultValue: true },
101
103
  "load-deferred-images": { description: "Load deferred (a.k.a. lazy-loaded) images", type: "boolean", defaultValue: true },
102
104
  "load-deferred-images-dispatch-scroll-event": { description: "Dispatch 'scroll' event when loading deferred images", type: "boolean" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "single-file-cli",
3
- "version": "2.0.49",
3
+ "version": "2.0.51",
4
4
  "description": "SingleFile CLI",
5
5
  "author": "Gildas Lormeau",
6
6
  "engines": {
@@ -59,10 +59,10 @@ async function run() {
59
59
  url,
60
60
  domain,
61
61
  path,
62
- secure,
63
- httpOnly,
62
+ secure: secure === "true",
63
+ httpOnly: httpOnly === "true",
64
64
  sameSite,
65
- expires
65
+ expires: isNaN(Number(expires)) ? undefined : Number(expires)
66
66
  });
67
67
  }
68
68
  options.browserCookies = cookies;
@@ -121,4 +121,4 @@ function parseCookies(textValue) {
121
121
  async function closeBrowserAndExit(code) {
122
122
  await closeBrowser();
123
123
  exit(code);
124
- }
124
+ }