@axe-core/watcher 4.3.0-next.d5e92e7a → 4.3.0-next.e2032420
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/EXTENSION-LICENSES-3RD-PARTY.md +3 -425
- package/dist/cypress/cypress.js +4 -1
- package/dist/cypress/cypress.js.map +1 -1
- package/dist/utils/saveScreenshotsLocally.js +5 -1
- package/dist/utils/saveScreenshotsLocally.js.map +1 -1
- package/dist/utils/screenshotFilename.d.ts +8 -0
- package/dist/utils/screenshotFilename.js +18 -0
- package/dist/utils/screenshotFilename.js.map +1 -0
- package/dist/utils/sync-fetch-worker.mjs +65 -1
- package/dist/utils/sync-fetch.d.ts +32 -0
- package/dist/utils/sync-fetch.js +29 -11
- package/dist/utils/sync-fetch.js.map +1 -1
- package/dist/utils/writeVariables.d.ts +4 -1
- package/dist/utils/writeVariables.js +2 -1
- package/dist/utils/writeVariables.js.map +1 -1
- package/extension/axe.js +1 -1
- package/extension/background.js +1 -0
- package/extension/background.js.LICENSE.txt +1 -0
- package/extension/content.js +1 -1
- package/extension/gather-internals.js +1 -0
- package/extension/manifest.json +5 -1
- package/package.json +77 -19
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{var e,t,n=(e=(e,t)=>{b(),t.exports=g},()=>(t||e(t={exports:{}},t),t.exports)),o=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"],r=/^(?:[A-Za-z][^\0\t\n\f\r\u0020/>]*|[:_\u0080-\u{10FFFF}][A-Za-z0-9-.:_\u0080-\u{10FFFF}]*)$/u,i=/[a-z]/,s=/[A-Z]/;function a(e){return!o.includes(e)&&r.test(e)&&i.test(e[0])&&!s.test(e)&&e.includes("-")}var c=["_internals","internals","internals_"],l=["internals","privateInternals"];function f(e){if(!a(e.nodeName.toLowerCase()))return;const t=globalThis._elementInternals?.get(e);if(t)return t;if(!("ElementInternals"in window))return;for(const t of c)if(!Object.getOwnPropertyDescriptor(e,t)?.get&&e[t]instanceof window.ElementInternals)return e[t];const n=Object.getOwnPropertySymbols(e);if(n.length)for(const t of l){const o=n.find(e=>e.description===t);if(o){if(Object.getOwnPropertyDescriptor(e,o)?.get)continue;if(e[o]instanceof window.ElementInternals)return e[o]}}}var d=function(e){const t=String(e),n=t.length;let o,r=-1,i="";const s=t.charCodeAt(0);for(;++r<n;)o=t.charCodeAt(r),i+=0!=o?o>=1&&o<=31||127==o||0==r&&o>=48&&o<=57||1==r&&o>=48&&o<=57&&45==s?"\\"+o.toString(16)+" ":0==r&&1==n&&45==o||!(o>=128||45==o||95==o||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122)?"\\"+t.charAt(r):t.charAt(r):"�";return i};function u(e){const t=d(e.nodeName.toLowerCase()),n=e.parentElement,o=e.parentNode;let r="";return"head"!==t&&"body"!==t&&o?.children.length>1&&(r=`:nth-child(${Array.prototype.indexOf.call(o.children,e)+1})`),n?u(n)+" > "+t+r:t+r}function h(e,t){return function(e,t,n={}){if(!t)return"";let o=t.getRootNode&&t.getRootNode()||document;if(11!==o.nodeType)return e(t,n,o);const r=[];for(;11===o.nodeType;){if(!o.host)return"";r.unshift({elm:t,doc:o}),o=(t=o.host).getRootNode()}return r.unshift({elm:t,doc:o}),r.map(t=>e(t.elm,n,t.doc))}(u,e,t)}var m=["article","aside","blockquote","body","div","footer","h1","h2","h3","h4","h5","h6","header","main","nav","p","section","span"],p=function(e){if(e.shadowRoot){const t=e.nodeName.toLowerCase();if(m.includes(t)||a(t))return!0}return!1},g=[],y=/^aria[A-Z]/,w=["role","labels","form"];function b(e=document.body){const t=document.createTreeWalker(e,globalThis.NodeFilter.SHOW_ELEMENT,null,!1);let n=t.currentNode;for(;n;){const e=f(n);if(e){const t=h(n),o={};for(const t in e)if(y.test(t)||w.includes(t))try{const n=e[t];if(null===n)continue;if(n instanceof globalThis.HTMLElement)o[t]=n.isConnected?{type:"HTMLElement",value:h(n)}:void 0;else if(Array.isArray(n)||n instanceof globalThis.NodeList){const e=Array.from(n).filter(e=>e.isConnected);o[t]=e.length?{type:"NodeList",value:e.map(e=>h(e))}:void 0}else"string"==typeof n&&(o[t]=n)}catch{}g.push({ancestry:t,internals:o})}p(n)&&b(n.shadowRoot),n=t.nextNode()}}n()})();
|
package/extension/manifest.json
CHANGED
|
@@ -4,7 +4,11 @@
|
|
|
4
4
|
"description": "Codeless accessibility testing",
|
|
5
5
|
"manifest_version": 3,
|
|
6
6
|
"homepage_url": "https://deque.com",
|
|
7
|
-
"permissions": ["storage", "unlimitedStorage"],
|
|
7
|
+
"permissions": ["storage", "unlimitedStorage", "scripting"],
|
|
8
|
+
"host_permissions": ["<all_urls>"],
|
|
9
|
+
"background": {
|
|
10
|
+
"service_worker": "background.js"
|
|
11
|
+
},
|
|
8
12
|
"content_scripts": [
|
|
9
13
|
{
|
|
10
14
|
"matches": ["<all_urls>"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axe-core/watcher",
|
|
3
|
-
"version": "4.3.0-next.
|
|
3
|
+
"version": "4.3.0-next.e2032420",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"exports": {
|
|
@@ -54,16 +54,78 @@
|
|
|
54
54
|
"node": "^20.18.1 || ^22.11.0 || ^24.11.0"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
|
-
"build": "
|
|
58
|
-
"test": "
|
|
59
|
-
"
|
|
60
|
-
"test:
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"copy-extension
|
|
65
|
-
"
|
|
66
|
-
|
|
57
|
+
"build": "wireit",
|
|
58
|
+
"test": "wireit",
|
|
59
|
+
"test:e2e": "wireit",
|
|
60
|
+
"test:proxy": "wireit",
|
|
61
|
+
"serve:e2e": "wireit",
|
|
62
|
+
"coverage": "wireit",
|
|
63
|
+
"copy-extension-license-file": "wireit",
|
|
64
|
+
"copy-extension": "wireit",
|
|
65
|
+
"dev": "pnpm run build --watch"
|
|
66
|
+
},
|
|
67
|
+
"wireit": {
|
|
68
|
+
"build": {
|
|
69
|
+
"command": "tsc --removeComments && tsc --declaration --emitDeclarationOnly && cp src/utils/sync-fetch-worker.mjs dist/utils/",
|
|
70
|
+
"files": [
|
|
71
|
+
"src/**",
|
|
72
|
+
"tsconfig.json",
|
|
73
|
+
"../../tsconfig.json",
|
|
74
|
+
"package.json"
|
|
75
|
+
],
|
|
76
|
+
"output": [
|
|
77
|
+
"dist/**"
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
"test": {
|
|
81
|
+
"command": "mocha 'src/**/*.test.ts' --exit",
|
|
82
|
+
"output": []
|
|
83
|
+
},
|
|
84
|
+
"test:e2e": {
|
|
85
|
+
"command": "mocha 'e2e/*.test.ts'",
|
|
86
|
+
"dependencies": [
|
|
87
|
+
"copy-extension"
|
|
88
|
+
],
|
|
89
|
+
"output": []
|
|
90
|
+
},
|
|
91
|
+
"test:proxy": {
|
|
92
|
+
"command": "mocha proxy-tests/proxy.test.ts --timeout 30000 --exit",
|
|
93
|
+
"output": []
|
|
94
|
+
},
|
|
95
|
+
"serve:e2e": {
|
|
96
|
+
"command": "ts-node e2e/Server.ts",
|
|
97
|
+
"service": true
|
|
98
|
+
},
|
|
99
|
+
"coverage": {
|
|
100
|
+
"command": "nyc pnpm test",
|
|
101
|
+
"output": [
|
|
102
|
+
"coverage/**",
|
|
103
|
+
".nyc_output/**"
|
|
104
|
+
],
|
|
105
|
+
"clean": true
|
|
106
|
+
},
|
|
107
|
+
"copy-extension-license-file": {
|
|
108
|
+
"command": "cp ../../extension/EXTENSION-LICENSES-3RD-PARTY.md .",
|
|
109
|
+
"dependencies": [
|
|
110
|
+
"../../extension:build"
|
|
111
|
+
],
|
|
112
|
+
"files": [],
|
|
113
|
+
"output": [
|
|
114
|
+
"EXTENSION-LICENSES-3RD-PARTY.md"
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
"copy-extension": {
|
|
118
|
+
"command": "mkdir -p extension && cp -R ../../extension/dist/. extension",
|
|
119
|
+
"dependencies": [
|
|
120
|
+
"../../extension:build",
|
|
121
|
+
"copy-extension-license-file"
|
|
122
|
+
],
|
|
123
|
+
"files": [],
|
|
124
|
+
"output": [
|
|
125
|
+
"extension/**"
|
|
126
|
+
],
|
|
127
|
+
"clean": true
|
|
128
|
+
}
|
|
67
129
|
},
|
|
68
130
|
"dependencies": {
|
|
69
131
|
"debug": "^4.3.5",
|
|
@@ -76,24 +138,21 @@
|
|
|
76
138
|
"@deque/advanced-rule-recorder": "1.31.0-next.eeeb3b7f",
|
|
77
139
|
"@playwright/test": "^1.45.0",
|
|
78
140
|
"@types/body-parser": "^1.19.2",
|
|
79
|
-
"@types/chai": "^4.3.3",
|
|
80
141
|
"@types/cors": "^2.8.12",
|
|
81
142
|
"@types/debug": "^4.1.12",
|
|
82
143
|
"@types/express": "^5.0.6",
|
|
83
144
|
"@types/mocha": "^10.0.0",
|
|
84
145
|
"@types/morgan": "^1.9.3",
|
|
85
|
-
"@types/node": "22.19.
|
|
86
|
-
"@types/proxyquire": "^1.3.28",
|
|
146
|
+
"@types/node": "22.19.19",
|
|
87
147
|
"@types/react": "19",
|
|
88
148
|
"@types/react-dom": "19",
|
|
89
149
|
"@types/selenium-webdriver": "^4.1.15",
|
|
90
150
|
"@types/semver": "^7.5.8",
|
|
91
151
|
"@types/sinon": "^21.0.0",
|
|
92
152
|
"@wdio/types": "^9.0.4",
|
|
93
|
-
"axe-core": "^4.11.4",
|
|
153
|
+
"axe-core": "^4.11.4-canary.7d9d696",
|
|
94
154
|
"axe-test-fixtures": "github:dequelabs/axe-test-fixtures#v1",
|
|
95
155
|
"body-parser": "^2.2.0",
|
|
96
|
-
"chai": "^4.3.6",
|
|
97
156
|
"cors": "^2.8.5",
|
|
98
157
|
"cypress": "^15.8.1",
|
|
99
158
|
"execa": "5",
|
|
@@ -103,17 +162,16 @@
|
|
|
103
162
|
"morgan": "^1.10.0",
|
|
104
163
|
"nyc": "^18.0.0",
|
|
105
164
|
"playwright-core": "^1.45.0",
|
|
106
|
-
"proxyquire": "^2.1.3",
|
|
107
165
|
"puppeteer": "^24.2.0",
|
|
108
166
|
"react": "^19.1.0",
|
|
109
167
|
"react-dom": "^19.1.0",
|
|
110
|
-
"rimraf": "^6.1.2",
|
|
111
168
|
"selenium-webdriver": "^4.11.1",
|
|
112
|
-
"sinon": "^
|
|
169
|
+
"sinon": "^22.0.0",
|
|
113
170
|
"ts-loader": "^9.5.2",
|
|
114
171
|
"ts-node": "^10.9.2",
|
|
115
172
|
"typescript": "^5.1.6",
|
|
116
173
|
"webdriverio": "^9.0.5",
|
|
174
|
+
"wireit": "^0.14.12",
|
|
117
175
|
"yaml": "^2.8.1"
|
|
118
176
|
},
|
|
119
177
|
"peerDependencies": {
|