single-file-cli 2.2.0 → 2.2.1

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/deno.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@single-file/single-file-cli",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "SingleFile CLI",
5
5
  "exports": {
6
6
  ".": "./single-file-cli-api.js"
package/lib/version.js CHANGED
@@ -1 +1 @@
1
- export const version = "2.2.0";
1
+ export const version = "2.2.1";
package/options.js CHANGED
@@ -24,6 +24,8 @@
24
24
  import { version } from "./lib/version.js";
25
25
  import { Deno } from "./lib/deno-polyfill.js";
26
26
 
27
+ const { args, build, exit } = Deno;
28
+
27
29
  const USAGE_TEXT = `single-file [url] [output]
28
30
 
29
31
  Positionals:
@@ -59,7 +61,7 @@ const OPTIONS_INFO = [{
59
61
  "browser-debug": { description: "Enable debug mode", type: "boolean" },
60
62
  "browser-arg": { description: "Argument passed to the browser", type: "string[]", alias: "browser-argument" },
61
63
  "browser-args": { description: "Arguments provided as a JSON array and passed to the browser", type: "string" },
62
- "browser-single-process": { description: "Run the browser as a single process", type: "boolean", defaultValue: true },
64
+ "browser-single-process": { description: "Run the browser as a single process (enabled by default on Windows only, current browsers on other platforms do not support this mode)", type: "boolean", defaultValue: build.os == "windows" },
63
65
  "browser-start-minimized": { description: "Minimize the browser", type: "boolean" },
64
66
  "browser-ignore-insecure-certs": { description: "Ignore HTTPs errors", type: "boolean" },
65
67
  "browser-remote-debugging-URL": { description: "Remote debugging URL", type: "string" }
@@ -206,8 +208,6 @@ const OPTIONS_INFO = [{
206
208
  "version": { description: "Print the version number and exit.", type: "boolean" },
207
209
  }];
208
210
 
209
- const { args, exit } = Deno;
210
-
211
211
  const CRAWL_LINKS_DEPENDENT_OPTIONS = {
212
212
  crawlInnerLinksOnly: "--crawl-inner-links-only",
213
213
  crawlNoParent: "--crawl-no-parent",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "single-file-cli",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "SingleFile CLI",
5
5
  "author": "Gildas Lormeau",
6
6
  "license": "AGPL-3.0-or-later",