single-file-cli 1.1.53 → 2.0.2
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/{.eslintrc.js → .eslintrc.json} +5 -6
- package/Dockerfile +2 -1
- package/README.MD +56 -60
- package/args.js +252 -334
- package/back-ends/chromium-back-end.js +223 -0
- package/back-ends/chromium-browser.js +89 -0
- package/back-ends/chromium-constants.js +157 -0
- package/back-ends/{common/scripts.js → single-file-script.js} +21 -49
- package/build-lib-dev.sh +84 -0
- package/build-lib.sh +80 -3
- package/compile.sh +13 -0
- package/deno-polyfill.js +223 -0
- package/deno.json +13 -0
- package/deno.lock +49 -0
- package/lib/single-file-bundle.js +1 -0
- package/package.json +9 -33
- package/single-file +39 -14
- package/single-file-cli-api.js +32 -44
- package/back-ends/extensions/bypass-csp/index.js +0 -36
- package/back-ends/extensions/bypass-csp/manifest.json +0 -20
- package/back-ends/extensions/disable-web-security/index.js +0 -54
- package/back-ends/extensions/disable-web-security/manifest.json +0 -20
- package/back-ends/extensions/network-idle/bg.js +0 -61
- package/back-ends/extensions/network-idle/content.js +0 -29
- package/back-ends/extensions/network-idle/manifest.json +0 -31
- package/back-ends/extensions/signed/bypass_csp-0.0.3-an+fx.xpi +0 -0
- package/back-ends/extensions/signed/disable_web_security-0.0.3-an+fx.xpi +0 -0
- package/back-ends/extensions/signed/network_idle-0.0.2-an+fx.xpi +0 -0
- package/back-ends/jsdom.js +0 -159
- package/back-ends/playwright-chromium.js +0 -126
- package/back-ends/playwright-firefox.js +0 -115
- package/back-ends/playwright-webkit.js +0 -126
- package/back-ends/puppeteer-firefox.js +0 -172
- package/back-ends/puppeteer.js +0 -201
- package/back-ends/webdriver-chromium.js +0 -172
- package/back-ends/webdriver-gecko.js +0 -190
- package/lib/single-file-bootstrap.js +0 -1
- package/lib/single-file-frames.js +0 -1
- package/lib/single-file-hooks-frames.js +0 -1
- package/lib/single-file-zip.min.js +0 -1
- package/lib/single-file.js +0 -1
- package/rollup.config.dev.js +0 -57
- package/rollup.config.js +0 -58
package/rollup.config.dev.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/* global require */
|
|
2
|
-
|
|
3
|
-
const resolve = require("@rollup/plugin-node-resolve");
|
|
4
|
-
|
|
5
|
-
const PLUGINS = [resolve({ moduleDirectories: [".."] })];
|
|
6
|
-
const EXTERNAL = ["single-file-core"];
|
|
7
|
-
|
|
8
|
-
export default [{
|
|
9
|
-
input: ["single-file-core/single-file.js"],
|
|
10
|
-
output: [{
|
|
11
|
-
file: "lib/single-file.js",
|
|
12
|
-
format: "umd",
|
|
13
|
-
name: "singlefile",
|
|
14
|
-
plugins: []
|
|
15
|
-
}],
|
|
16
|
-
plugins: PLUGINS,
|
|
17
|
-
external: EXTERNAL
|
|
18
|
-
}, {
|
|
19
|
-
input: ["single-file-core/single-file-frames.js"],
|
|
20
|
-
output: [{
|
|
21
|
-
file: "lib/single-file-frames.js",
|
|
22
|
-
format: "umd",
|
|
23
|
-
name: "singlefile",
|
|
24
|
-
plugins: []
|
|
25
|
-
}],
|
|
26
|
-
plugins: PLUGINS,
|
|
27
|
-
external: EXTERNAL
|
|
28
|
-
}, {
|
|
29
|
-
input: ["single-file-core/single-file-bootstrap.js"],
|
|
30
|
-
output: [{
|
|
31
|
-
file: "lib/single-file-bootstrap.js",
|
|
32
|
-
format: "umd",
|
|
33
|
-
name: "singlefileBootstrap",
|
|
34
|
-
plugins: []
|
|
35
|
-
}],
|
|
36
|
-
plugins: PLUGINS,
|
|
37
|
-
external: EXTERNAL
|
|
38
|
-
}, {
|
|
39
|
-
input: ["single-file-core/single-file-hooks-frames.js"],
|
|
40
|
-
output: [{
|
|
41
|
-
file: "lib/single-file-hooks-frames.js",
|
|
42
|
-
format: "iife",
|
|
43
|
-
plugins: []
|
|
44
|
-
}],
|
|
45
|
-
plugins: PLUGINS,
|
|
46
|
-
external: EXTERNAL
|
|
47
|
-
}, {
|
|
48
|
-
input: ["single-file-core/vendor/zip/zip.min.js"],
|
|
49
|
-
output: [{
|
|
50
|
-
file: "lib/single-file-zip.min.js",
|
|
51
|
-
format: "es",
|
|
52
|
-
plugins: []
|
|
53
|
-
}],
|
|
54
|
-
context: "this",
|
|
55
|
-
plugins: PLUGINS,
|
|
56
|
-
external: EXTERNAL
|
|
57
|
-
}];
|
package/rollup.config.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/* global require */
|
|
2
|
-
|
|
3
|
-
const resolve = require("@rollup/plugin-node-resolve");
|
|
4
|
-
const { terser } = require("rollup-plugin-terser");
|
|
5
|
-
|
|
6
|
-
const PLUGINS = [resolve({ moduleDirectories: ["node_modules"] })];
|
|
7
|
-
const EXTERNAL = ["single-file-core"];
|
|
8
|
-
|
|
9
|
-
export default [{
|
|
10
|
-
input: ["single-file-core/single-file.js"],
|
|
11
|
-
output: [{
|
|
12
|
-
file: "lib/single-file.js",
|
|
13
|
-
format: "umd",
|
|
14
|
-
name: "singlefile",
|
|
15
|
-
plugins: [terser()]
|
|
16
|
-
}],
|
|
17
|
-
plugins: PLUGINS,
|
|
18
|
-
external: EXTERNAL
|
|
19
|
-
}, {
|
|
20
|
-
input: ["single-file-core/single-file-frames.js"],
|
|
21
|
-
output: [{
|
|
22
|
-
file: "lib/single-file-frames.js",
|
|
23
|
-
format: "umd",
|
|
24
|
-
name: "singlefile",
|
|
25
|
-
plugins: [terser()]
|
|
26
|
-
}],
|
|
27
|
-
plugins: PLUGINS,
|
|
28
|
-
external: EXTERNAL
|
|
29
|
-
}, {
|
|
30
|
-
input: ["single-file-core/single-file-bootstrap.js"],
|
|
31
|
-
output: [{
|
|
32
|
-
file: "lib/single-file-bootstrap.js",
|
|
33
|
-
format: "umd",
|
|
34
|
-
name: "singlefileBootstrap",
|
|
35
|
-
plugins: [terser()]
|
|
36
|
-
}],
|
|
37
|
-
plugins: PLUGINS,
|
|
38
|
-
external: EXTERNAL
|
|
39
|
-
}, {
|
|
40
|
-
input: ["single-file-core/single-file-hooks-frames.js"],
|
|
41
|
-
output: [{
|
|
42
|
-
file: "lib/single-file-hooks-frames.js",
|
|
43
|
-
format: "iife",
|
|
44
|
-
plugins: [terser()]
|
|
45
|
-
}],
|
|
46
|
-
plugins: PLUGINS,
|
|
47
|
-
external: EXTERNAL
|
|
48
|
-
}, {
|
|
49
|
-
input: ["single-file-core/vendor/zip/zip.min.js"],
|
|
50
|
-
output: [{
|
|
51
|
-
file: "lib/single-file-zip.min.js",
|
|
52
|
-
format: "es",
|
|
53
|
-
plugins: [terser()]
|
|
54
|
-
}],
|
|
55
|
-
context: "this",
|
|
56
|
-
plugins: PLUGINS,
|
|
57
|
-
external: EXTERNAL
|
|
58
|
-
}];
|