-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
package.json
147 lines (147 loc) · 4.29 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
{
"name": "webext-dynamic-content-scripts",
"version": "10.0.4",
"description": "WebExtension module: Automatically registers your `content_scripts` on domains added via `permission.request` or on `activeTab`",
"keywords": [
"contentscript",
"register",
"injection",
"permissions",
"request",
"optional_permissions",
"manifest",
"new hosts",
"chrome",
"firefox",
"browser",
"activetab",
"extension"
],
"repository": "fregante/webext-dynamic-content-scripts",
"funding": "https://github.com/sponsors/fregante",
"license": "MIT",
"author": "Federico Brigante <me@fregante.com> (https://fregante.com)",
"type": "module",
"exports": {
".": {
"types": "./distribution/index.d.ts",
"default": "./distribution/index.js"
},
"./including-active-tab.js": {
"types": "./distribution/including-active-tab.d.ts",
"default": "./distribution/including-active-tab.js"
},
"./utils.js": {
"types": "./distribution/utils.d.ts",
"default": "./distribution/utils.js"
}
},
"scripts": {
"build": "tsc",
"demo:build": "parcel build --no-cache",
"demo:watch": "parcel watch --no-cache --no-hmr",
"prejest": "npm run demo:build",
"jest": "TARGET=2 npm run jest:core && TARGET=3 npm run jest:core",
"vitest": "vitest",
"jest:core": "NODE_OPTIONS=--experimental-vm-modules JEST_PUPPETEER_CONFIG=jest-puppeteer.config.cjs jest",
"prepack": "tsc --sourceMap false && npm pkg delete alias #parcel#8920",
"lint": "xo",
"fix": "xo --fix",
"test": "run-p lint vitest jest",
"watch": "tsc --watch"
},
"xo": {
"envs": [
"browser",
"webextensions"
],
"rules": {
"no-implicit-globals": "off",
"@typescript-eslint/prefer-nullish-coalescing": "off",
"@typescript-eslint/no-implicit-any-catch": "off",
"@typescript-eslint/naming-convention": "off",
"import/extensions": "off",
"import/no-unassigned-import": "off",
"unicorn/prefer-top-level-await": "off",
"unicorn/prefer-node-protocol": "off",
"n/file-extension-in-import": "off"
}
},
"jest": {
"preset": "jest-puppeteer",
"testMatch": [
"**/test/*.js"
]
},
"dependencies": {
"content-scripts-register-polyfill": "^4.0.2",
"webext-content-scripts": "^2.7.0",
"webext-detect": "^5.0.2",
"webext-events": "^3.0.1",
"webext-patterns": "^1.5.0",
"webext-permissions": "^3.1.3",
"webext-polyfill-kinda": "^1.0.2"
},
"devDependencies": {
"@parcel/config-webextension": "^2.12.0",
"@sindresorhus/tsconfig": "^6.0.0",
"@types/chrome": "^0.0.268",
"@types/firefox-webext-browser": "^120.0.4",
"@types/jest": "^29.5.12",
"expect-puppeteer": "^10.0.0",
"jest": "^29.7.0",
"jest-chrome": "^0.8.0",
"jest-puppeteer": "^10.0.1",
"npm-run-all": "^4.1.5",
"parcel": "^2.12.0",
"puppeteer": "^21.3.6",
"typescript": "^5.5.2",
"vitest": "^1.6.0",
"xo": "^0.58.0"
},
"@parcel/resolver-default": {
"packageExports": true
},
"alias": {
"these-are-just-mocks-for-parcel-tests": "yolo",
"webext-permissions": "./test/demo-extension/webext-permissions.js",
"webext-dynamic-content-scripts": "./source/"
},
"targets": {
"main": false,
"module": false,
"mv2": {
"source": "./test/demo-extension/mv2/manifest.json",
"distDir": "./test/dist/mv2",
"sourceMap": {
"inline": true
},
"optimize": false
},
"mv3": {
"source": "./test/demo-extension/mv3/manifest.json",
"distDir": "./test/dist/mv3",
"sourceMap": {
"inline": true
},
"optimize": false
}
},
"webExt": {
"sourceDir": "test/dist/mv2",
"run": {
"startUrl": [
"https://static-ephiframe.vercel.app/Static",
"https://static-ephiframe.vercel.app/Static?iframe=./Inner",
"https://dynamic-ephiframe.vercel.app/Dynamic",
"https://dynamic-ephiframe.vercel.app/Dynamic?iframe=./Inner",
"https://dynamic-ephiframe.vercel.app/Dynamic?iframe=https://static-ephiframe.vercel.app/Static-inner",
"https://static-ephiframe.vercel.app/Static?iframe=https://dynamic-ephiframe.vercel.app/Dynamic-inner",
"https://extra-ephiframe.vercel.app/Inject-via-context-menu-please",
"https://extra-ephiframe.vercel.app/Inject-via-context-menu-please?iframe=https://static-ephiframe.vercel.app/Static-inner",
"https://extra-ephiframe.vercel.app/Inject-via-context-menu-please?iframe=https://dynamic-ephiframe.vercel.app/Dynamic-inner",
"chrome://extensions/"
]
}
}
}