single-file-cli 2.0.73 → 2.0.74
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/deno.lock +15 -10
- package/eslint.config.mjs +31 -0
- package/lib/browser.js +2 -0
- package/lib/cdp-client.js +10 -3
- package/lib/deno-polyfill.js +1 -1
- package/lib/single-file-bundle.js +1 -1
- package/options.js +9 -2
- package/package.json +5 -2
- package/.eslintrc.json +0 -42
package/options.js
CHANGED
|
@@ -105,6 +105,11 @@ const OPTIONS_INFO = {
|
|
|
105
105
|
"include-infobar": { description: "Include the infobar", type: "boolean" },
|
|
106
106
|
"infobar-template": { description: "Template used to generate the infobar content (see help page of the extension for more info)", type: "string" },
|
|
107
107
|
"open-infobar": { description: "Keep the infobar open when using --include-infobar", type: "boolean" },
|
|
108
|
+
"infobar-position-absolute": { description: "Position the infobar absolutely (fixed otherwise)", type: "boolean" },
|
|
109
|
+
"infobar-position-top": { description: "Position the infobar at the top of the page", type: "string", defaultValue: "16px" },
|
|
110
|
+
"infobar-position-bottom": { description: "Position the infobar at the bottom of the page", type: "string", defaultValue: "" },
|
|
111
|
+
"infobar-position-right": { description: "Position the infobar at the right of the page", type: "string", defaultValue: "16px" },
|
|
112
|
+
"infobar-position-left": { description: "Position the infobar at the left of the page", type: "string", defaultValue: "" },
|
|
108
113
|
"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 },
|
|
109
114
|
"load-deferred-images": { description: "Load deferred (a.k.a. lazy-loaded) images", type: "boolean", defaultValue: true },
|
|
110
115
|
"load-deferred-images-dispatch-scroll-event": { description: "Dispatch 'scroll' event when loading deferred images", type: "boolean" },
|
|
@@ -333,14 +338,16 @@ function parseArgs(args, setDefaultValues = true) {
|
|
|
333
338
|
let [replacedCharacter, replacementCharacter] = replacement.split(" ");
|
|
334
339
|
try {
|
|
335
340
|
replacedCharacter = JSON.parse(replacedCharacter);
|
|
336
|
-
|
|
341
|
+
// eslint-disable-next-line no-unused-vars
|
|
342
|
+
} catch (_error) {
|
|
337
343
|
// ignored
|
|
338
344
|
}
|
|
339
345
|
result.options.filenameReplacedCharacters.push(replacedCharacter);
|
|
340
346
|
if (replacementCharacter !== undefined) {
|
|
341
347
|
try {
|
|
342
348
|
replacementCharacter = JSON.parse(replacementCharacter);
|
|
343
|
-
|
|
349
|
+
// eslint-disable-next-line no-unused-vars
|
|
350
|
+
} catch (_error) {
|
|
344
351
|
// ignored
|
|
345
352
|
}
|
|
346
353
|
result.options.filenameReplacementCharacters.push(replacementCharacter);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "single-file-cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.74",
|
|
4
4
|
"description": "SingleFile CLI",
|
|
5
5
|
"author": "Gildas Lormeau",
|
|
6
6
|
"engines": {
|
|
@@ -14,6 +14,9 @@
|
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"simple-cdp": "^1.8.5",
|
|
17
|
-
"ws": "^8.
|
|
17
|
+
"ws": "^8.18.0"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@eslint/js": "^9.20.0"
|
|
18
21
|
}
|
|
19
22
|
}
|
package/.eslintrc.json
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": {
|
|
3
|
-
"es6": true,
|
|
4
|
-
"node": false,
|
|
5
|
-
"browser": false
|
|
6
|
-
},
|
|
7
|
-
"globals": {
|
|
8
|
-
"console": true
|
|
9
|
-
},
|
|
10
|
-
"extends": "eslint:recommended",
|
|
11
|
-
"parserOptions": {
|
|
12
|
-
"ecmaVersion": 2022,
|
|
13
|
-
"sourceType": "module"
|
|
14
|
-
},
|
|
15
|
-
"ignorePatterns": [
|
|
16
|
-
"/lib/"
|
|
17
|
-
],
|
|
18
|
-
"rules": {
|
|
19
|
-
"indent": [
|
|
20
|
-
"error",
|
|
21
|
-
"tab",
|
|
22
|
-
{
|
|
23
|
-
"SwitchCase": 1
|
|
24
|
-
}
|
|
25
|
-
],
|
|
26
|
-
"linebreak-style": [
|
|
27
|
-
"error",
|
|
28
|
-
"unix"
|
|
29
|
-
],
|
|
30
|
-
"quotes": [
|
|
31
|
-
"error",
|
|
32
|
-
"double"
|
|
33
|
-
],
|
|
34
|
-
"semi": [
|
|
35
|
-
"error",
|
|
36
|
-
"always"
|
|
37
|
-
],
|
|
38
|
-
"no-console": [
|
|
39
|
-
"warn"
|
|
40
|
-
]
|
|
41
|
-
}
|
|
42
|
-
}
|