@axe-core/watcher 4.3.0-next.f3217aad → 4.3.0-next.f5a8f8da

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.
@@ -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()})();
@@ -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.f3217aad",
3
+ "version": "4.3.0-next.f5a8f8da",
4
4
  "description": "",
5
5
  "license": "UNLICENSED",
6
6
  "exports": {
@@ -143,15 +143,14 @@
143
143
  "@types/express": "^5.0.6",
144
144
  "@types/mocha": "^10.0.0",
145
145
  "@types/morgan": "^1.9.3",
146
- "@types/node": "22.19.18",
147
- "@types/proxyquire": "^1.3.28",
146
+ "@types/node": "22.19.19",
148
147
  "@types/react": "19",
149
148
  "@types/react-dom": "19",
150
149
  "@types/selenium-webdriver": "^4.1.15",
151
150
  "@types/semver": "^7.5.8",
152
151
  "@types/sinon": "^21.0.0",
153
152
  "@wdio/types": "^9.0.4",
154
- "axe-core": "^4.11.4",
153
+ "axe-core": "^4.11.4-canary.7d9d696",
155
154
  "axe-test-fixtures": "github:dequelabs/axe-test-fixtures#v1",
156
155
  "body-parser": "^2.2.0",
157
156
  "cors": "^2.8.5",
@@ -163,11 +162,9 @@
163
162
  "morgan": "^1.10.0",
164
163
  "nyc": "^18.0.0",
165
164
  "playwright-core": "^1.45.0",
166
- "proxyquire": "^2.1.3",
167
165
  "puppeteer": "^24.2.0",
168
166
  "react": "^19.1.0",
169
167
  "react-dom": "^19.1.0",
170
- "rimraf": "^6.1.2",
171
168
  "selenium-webdriver": "^4.11.1",
172
169
  "sinon": "^22.0.0",
173
170
  "ts-loader": "^9.5.2",