darkreader 4.9.57 → 4.9.66
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/LICENSE +1 -1
- package/README.md +36 -7
- package/darkreader.js +7872 -5466
- package/package.json +53 -48
package/package.json
CHANGED
|
@@ -1,32 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "darkreader",
|
|
3
|
-
"version": "4.9.
|
|
3
|
+
"version": "4.9.66",
|
|
4
4
|
"description": "Dark mode for every website",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"api": "node tasks/
|
|
7
|
-
"build": "node tasks/
|
|
8
|
-
"build:all": "node tasks/
|
|
6
|
+
"api": "node --max-old-space-size=3072 tasks/cli.js build --api",
|
|
7
|
+
"build": "node --max-old-space-size=3072 tasks/cli.js build --release",
|
|
8
|
+
"build:all": "node --max-old-space-size=3072 tasks/cli.js build --debug --release --api",
|
|
9
9
|
"code-style": "eslint --ignore-pattern '!.eslintplugin.js' --cache --fix -- 'src/**/*.ts' 'src/**/*.tsx' 'tasks/**/*.js' 'tests/[!coverage]**/*.js' 'tests/**/*.ts' '.eslintrc.js' 'index.d.ts' '.eslintplugin.js'",
|
|
10
|
-
"debug": "node tasks/
|
|
11
|
-
"debug:watch": "node tasks/
|
|
10
|
+
"debug": "node --max-old-space-size=3072 tasks/cli.js build --debug",
|
|
11
|
+
"debug:watch": "node --max-old-space-size=3072 tasks/cli.js build --debug --watch",
|
|
12
|
+
"dependencies:upgrade": "node tasks/dependencies.js",
|
|
12
13
|
"lint": "eslint --ignore-pattern '!.eslintplugin.js' -- 'src/**/*.ts' 'src/**/*.tsx' 'tasks/**/*.js' 'tests/**/*.ts' 'tests/[!coverage]**/*.js' 'index.d.ts' '.eslintplugin.js'",
|
|
13
|
-
"lint:bundle": "(node ./tasks/check-exists.js ./build/debug/chrome || node tasks/build.js --debug --api) && eslint -- 'build/debug/chrome/**/*.js' 'darkreader.js'",
|
|
14
|
+
"lint:bundle": "(node ./tasks/check-exists.js ./build/debug/chrome || node tasks/build.js --debug --api --chrome) && eslint -- 'build/debug/chrome/**/*.js' 'darkreader.js'",
|
|
14
15
|
"prepublishOnly": "npm test && npm run api",
|
|
15
|
-
"release": "npm test && npm run lint && node tasks/
|
|
16
|
+
"release": "npm test && npm run lint && node tasks/cli.js build --release",
|
|
16
17
|
"test": "npm run test:unit",
|
|
17
18
|
"test:all": "npm run test:unit; npm run test:browser; npm run test:inject; npm run test:project",
|
|
18
|
-
"test:browser": "npm run
|
|
19
|
-
"test:chrome": "
|
|
19
|
+
"test:browser": "npm run test:chrome && npm run test:chrome-mv3 && npm run test:firefox",
|
|
20
|
+
"test:chrome": "node tasks/cli.js build --debug --test --chrome-mv2 && jest --config=tests/browser/jest.config.mjs --runInBand",
|
|
21
|
+
"test:chrome-mv3": "node tasks/cli.js build --debug --test --chrome-mv3 && jest --config=tests/browser/jest.config.chrome-mv3.mjs --runInBand",
|
|
20
22
|
"test:ci": "npm run test:unit",
|
|
21
23
|
"test:coverage": "jest --config=tests/unit/jest.config.mjs --coverage",
|
|
22
|
-
"test:firefox": "
|
|
24
|
+
"test:firefox": "node tasks/cli.js build --debug --test --firefox-mv2 && jest --config=tests/browser/jest.config.firefox.mjs --runInBand",
|
|
23
25
|
"test:inject": "node --max-old-space-size=3072 node_modules/.bin/karma start ./tests/inject/karma.conf.cjs",
|
|
24
26
|
"test:inject:debug": "node --max-old-space-size=3072 node_modules/.bin/karma start ./tests/inject/karma.conf.cjs --debug",
|
|
25
|
-
"test:project": "jest --config=tests/project/jest.config.
|
|
27
|
+
"test:project": "jest --config=tests/project/jest.config.mjs",
|
|
26
28
|
"test:unit": "jest --config=tests/unit/jest.config.mjs",
|
|
27
29
|
"test:unit:debug": "node --inspect-brk ./node_modules/jest/bin/jest --config=tests/unit/jest.config.mjs --runInBand --no-cache --watch",
|
|
28
30
|
"test:update-snapshots": "npm run test -- --updateSnapshot && npm run test:project -- --updateSnapshot",
|
|
29
|
-
"translate-
|
|
31
|
+
"translate-en-message": "node ./tasks/translate.js --message",
|
|
32
|
+
"translate-new-en-messages": "node ./tasks/translate.js --new-messages",
|
|
33
|
+
"deno:bootstrap": "deno run --allow-read=./ --allow-sys=uid --allow-write=deno.json tasks/deno.js"
|
|
30
34
|
},
|
|
31
35
|
"main": "darkreader.js",
|
|
32
36
|
"repository": {
|
|
@@ -53,49 +57,50 @@
|
|
|
53
57
|
"url": "https://opencollective.com/darkreader/donate"
|
|
54
58
|
},
|
|
55
59
|
"devDependencies": {
|
|
56
|
-
"@rollup/plugin-node-resolve": "
|
|
57
|
-
"@rollup/plugin-replace": "
|
|
58
|
-
"@rollup/plugin-typescript": "
|
|
59
|
-
"@rollup/pluginutils": "
|
|
60
|
-
"@types/chrome": "0.0.
|
|
61
|
-
"@types/eslint": "8.
|
|
62
|
-
"@types/jasmine": "4.
|
|
63
|
-
"@types/jest": "
|
|
64
|
-
"@types/karma": "6.3.
|
|
60
|
+
"@rollup/plugin-node-resolve": "15.2.1",
|
|
61
|
+
"@rollup/plugin-replace": "5.0.2",
|
|
62
|
+
"@rollup/plugin-typescript": "11.1.3",
|
|
63
|
+
"@rollup/pluginutils": "5.0.4",
|
|
64
|
+
"@types/chrome": "0.0.246",
|
|
65
|
+
"@types/eslint": "8.44.2",
|
|
66
|
+
"@types/jasmine": "4.3.6",
|
|
67
|
+
"@types/jest": "29.5.5",
|
|
68
|
+
"@types/karma": "6.3.5",
|
|
65
69
|
"@types/karma-coverage": "2.0.1",
|
|
66
|
-
"@types/node": "
|
|
67
|
-
"@types/offscreencanvas": "2019.7.
|
|
68
|
-
"@
|
|
69
|
-
"@typescript-eslint/
|
|
70
|
+
"@types/node": "20.6.3",
|
|
71
|
+
"@types/offscreencanvas": "2019.7.1",
|
|
72
|
+
"@types/ws": "8.5.5",
|
|
73
|
+
"@typescript-eslint/eslint-plugin": "6.7.2",
|
|
74
|
+
"@typescript-eslint/parser": "6.7.2",
|
|
70
75
|
"chokidar": "3.5.3",
|
|
71
|
-
"eslint": "8.
|
|
72
|
-
"eslint-plugin-compat": "4.0
|
|
73
|
-
"eslint-plugin-import": "2.
|
|
76
|
+
"eslint": "8.50.0",
|
|
77
|
+
"eslint-plugin-compat": "4.2.0",
|
|
78
|
+
"eslint-plugin-import": "2.28.1",
|
|
74
79
|
"eslint-plugin-local": "1.0.0",
|
|
75
|
-
"get-stream": "
|
|
76
|
-
"globby": "13.
|
|
77
|
-
"jasmine-core": "
|
|
78
|
-
"jest": "
|
|
79
|
-
"jest-extended": "
|
|
80
|
-
"karma": "6.4.
|
|
81
|
-
"karma-chrome-launcher": "3.
|
|
82
|
-
"karma-coverage": "2.2.
|
|
80
|
+
"get-stream": "7.0.1",
|
|
81
|
+
"globby": "13.2.2",
|
|
82
|
+
"jasmine-core": "5.1.1",
|
|
83
|
+
"jest": "29.7.0",
|
|
84
|
+
"jest-extended": "4.0.1",
|
|
85
|
+
"karma": "6.4.2",
|
|
86
|
+
"karma-chrome-launcher": "3.2.0",
|
|
87
|
+
"karma-coverage": "2.2.1",
|
|
83
88
|
"karma-firefox-launcher": "2.1.2",
|
|
84
89
|
"karma-jasmine": "5.1.0",
|
|
85
90
|
"karma-rollup-preprocessor": "7.0.8",
|
|
86
91
|
"karma-safari-launcher": "1.0.0",
|
|
87
|
-
"karma-spec-reporter": "0.0.
|
|
88
|
-
"less": "4.
|
|
92
|
+
"karma-spec-reporter": "0.0.36",
|
|
93
|
+
"less": "4.2.0",
|
|
89
94
|
"malevic": "0.19.1",
|
|
90
|
-
"prettier": "
|
|
91
|
-
"puppeteer-core": "
|
|
92
|
-
"rollup": "
|
|
93
|
-
"rollup-plugin-
|
|
94
|
-
"ts-jest": "
|
|
95
|
-
"tslib": "2.
|
|
96
|
-
"typescript": "
|
|
97
|
-
"web-ext": "7.
|
|
98
|
-
"ws": "8.
|
|
95
|
+
"prettier": "3.0.3",
|
|
96
|
+
"puppeteer-core": "21.3.4",
|
|
97
|
+
"rollup": "3.29.2",
|
|
98
|
+
"rollup-plugin-istanbul": "4.0.0",
|
|
99
|
+
"ts-jest": "29.1.1",
|
|
100
|
+
"tslib": "2.6.2",
|
|
101
|
+
"typescript": "5.2.2",
|
|
102
|
+
"web-ext": "7.7.0",
|
|
103
|
+
"ws": "8.14.2",
|
|
99
104
|
"yazl": "2.5.1"
|
|
100
105
|
}
|
|
101
106
|
}
|