Socket
Socket
Sign inDemoInstall

shadow-dom-testing-library

Package Overview
Dependencies
72
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.7 to 1.1.8

2

dist/index.js

@@ -1,2 +0,2 @@

import{buildQueries as r,screen as M,queryAllByRole as T,queryAllByLabelText as p,queryAllByPlaceholderText as f,queryAllByText as E,queryAllByDisplayValue as B,queryAllByAltText as A,queryAllByTitle as x,queryAllByTestId as P}from"@testing-library/dom";function R(){typeof ShadowRoot>"u"||typeof ShadowRoot.prototype.matches<"u"||(ShadowRoot.prototype.matches=function(e){return e.trim()==="*"?!0:this.querySelector(e)!=null},Object.defineProperties(ShadowRoot.prototype,{outerHTML:{get(){return this.innerHTML}}}))}R();function $e(e,o,a={shallow:!1},t=[]){let n=l(e,o,a,t);return Array.isArray(n)&&n.length>0?n[0]:null}function l(e,o,a={shallow:!1},t=[]){return e instanceof Document&&(e=document.documentElement),e.shadowRoot!=null&&e.shadowRoot.mode!=="closed"&&t.push(e.shadowRoot),e instanceof ShadowRoot&&t.push(e),e.querySelectorAll(o).forEach(n=>{if(n.shadowRoot==null||n.shadowRoot.mode==="closed"){t.push(n);return}if(t.push(n.shadowRoot),a.shallow===!0){n.shadowRoot.querySelectorAll(o).forEach(c=>t.push(c));return}n.shadowRoot.querySelectorAll(o).forEach(c=>t.push(c)),l(n.shadowRoot,o,a,t)}),[...new Set(t)]}var d=":scope *";function h(...e){let[o,a,t]=e;return t==null&&(t={}),t.suggest=!1,l(o,d,t).map(n=>T(n,a,t)).flat(1/0)}var L=(e,o)=>`Found multiple elements with the role of: ${o}`,q=(e,o)=>`Unable to find an element with the role of: ${o}`,[H,O,b,I,g]=r(h,L,q);function m(...e){let[o,a,t]=e;return t==null&&(t={}),t.suggest=!1,l(o,d,t).map(n=>p(n,a,t)).flat(1/0)}var D=(e,o)=>`Found multiple elements with the label text of: ${o}`,_=(e,o)=>`Unable to find an element with the label text of: ${o}`,[$,F,V,U,Q]=r(m,D,_);function S(...e){let[o,a,t]=e;return t==null&&(t={}),t.suggest=!1,l(o,d,t).map(n=>f(n,a,t)).flat(1/0)}var C=(e,o)=>`Found multiple elements with the placeholder text of: ${o}`,v=(e,o)=>`Unable to find an element with the placeholder text of: ${o}`,[j,k,z,G,J]=r(S,C,v);function u(...e){let[o,a,t]=e;return t==null&&(t={}),t.suggest=!1,l(o,d,t).map(n=>E(n,a,t)).flat(1/0)}var K=(e,o)=>`Found multiple elements with the text of: ${o}`,N=(e,o)=>`Unable to find an element with the text of: ${o}`,[W,X,Y,Z,ee]=r(u,K,N);function i(...e){let[o,a,t]=e;return t==null&&(t={}),t.suggest=!1,l(o,d,t).map(n=>B(n,a,t)).flat(1/0)}var te=(e,o)=>`Found multiple elements with the display value of: ${o}`,oe=(e,o)=>`Unable to find an element with the display value of: ${o}`,[ne,ae,le,re,de]=r(i,te,oe);function s(...e){let[o,a,t]=e;return t==null&&(t={}),t.suggest=!1,l(o,d,t).map(n=>A(n,a,t)).flat(1/0)}var ce=(e,o)=>`Found multiple elements with the alt text of: ${o}`,he=(e,o)=>`Unable to find an element with the alt text of: ${o}`,[me,Se,ue,ie,se]=r(s,ce,he);function w(...e){let[o,a,t]=e;return t==null&&(t={}),t.suggest=!1,l(o,d,t).map(n=>x(n,a,t)).flat(1/0)}var we=(e,o)=>`Found multiple elements with the title of: ${o}`,ye=(e,o)=>`Unable to find an element with the title of: ${o}`,[Me,Te,pe,fe,Ee]=r(w,we,ye);function y(...e){let[o,a,t]=e;return t==null&&(t={}),t.suggest=!1,l(o,d,t).map(n=>P(n,a,t)).flat(1/0)}var Be=(e,o)=>`Found multiple elements with the test id of: ${o}`,Ae=(e,o)=>`Unable to find an element with the test id of: ${o}`,[xe,Pe,Re,Le,qe]=r(y,Be,Ae),Fe={...M,queryAllByShadowRole:(...e)=>h(document.documentElement,e[0],e[1]),queryByShadowRole:(...e)=>H(document.documentElement,e[0],e[1]),getAllByShadowRole:(...e)=>O(document.documentElement,e[0],e[1]),getByShadowRole:(...e)=>b(document.documentElement,e[0],e[1]),findAllByShadowRole:(...e)=>I(document.documentElement,e[0],e[1],e[2]),findByShadowRole:(...e)=>g(document.documentElement,e[0],e[1],e[2]),queryAllByShadowLabelText:(...e)=>m(document.documentElement,e[0],e[1]),queryByShadowLabelText:(...e)=>$(document.documentElement,e[0],e[1]),getAllByShadowLabelText:(...e)=>F(document.documentElement,e[0],e[1]),getByShadowLabelText:(...e)=>V(document.documentElement,e[0],e[1]),findAllByShadowLabelText:(...e)=>U(document.documentElement,e[0],e[1],e[2]),findByShadowLabelText:(...e)=>Q(document.documentElement,e[0],e[1],e[2]),queryAllByShadowPlaceholderText:(...e)=>S(document.documentElement,e[0],e[1]),queryByShadowPlaceholderText:(...e)=>j(document.documentElement,e[0],e[1]),getAllByShadowPlaceholderText:(...e)=>k(document.documentElement,e[0],e[1]),getByShadowPlaceholderText:(...e)=>z(document.documentElement,e[0],e[1]),findAllByShadowPlaceholderText:(...e)=>G(document.documentElement,e[0],e[1],e[2]),findByShadowPlaceholderText:(...e)=>J(document.documentElement,e[0],e[1],e[2]),queryAllByShadowText:(...e)=>u(document.documentElement,e[0],e[1]),queryByShadowText:(...e)=>W(document.documentElement,e[0],e[1]),getAllByShadowText:(...e)=>X(document.documentElement,e[0],e[1]),getByShadowText:(...e)=>Y(document.documentElement,e[0],e[1]),findAllByShadowText:(...e)=>Z(document.documentElement,e[0],e[1],e[2]),findByShadowText:(...e)=>ee(document.documentElement,e[0],e[1],e[2]),queryAllByShadowDisplayValue:(...e)=>i(document.documentElement,e[0],e[1]),queryByShadowDisplayValue:(...e)=>ne(document.documentElement,e[0],e[1]),getAllByShadowDisplayValue:(...e)=>ae(document.documentElement,e[0],e[1]),getByShadowDisplayValue:(...e)=>le(document.documentElement,e[0],e[1]),findAllByShadowDisplayValue:(...e)=>re(document.documentElement,e[0],e[1],e[2]),findByShadowDisplayValue:(...e)=>de(document.documentElement,e[0],e[1],e[2]),queryAllByShadowAltText:(...e)=>s(document.documentElement,e[0],e[1]),queryByShadowAltText:(...e)=>me(document.documentElement,e[0],e[1]),getAllByShadowAltText:(...e)=>Se(document.documentElement,e[0],e[1]),getByShadowAltText:(...e)=>ue(document.documentElement,e[0],e[1]),findAllByShadowAltText:(...e)=>ie(document.documentElement,e[0],e[1],e[2]),findByShadowAltText:(...e)=>se(document.documentElement,e[0],e[1],e[2]),queryAllByShadowTitle:(...e)=>w(document.documentElement,e[0],e[1]),queryByShadowTitle:(...e)=>Me(document.documentElement,e[0],e[1]),getAllByShadowTitle:(...e)=>Te(document.documentElement,e[0],e[1]),getByShadowTitle:(...e)=>pe(document.documentElement,e[0],e[1]),findAllByShadowTitle:(...e)=>fe(document.documentElement,e[0],e[1],e[2]),findByShadowTitle:(...e)=>Ee(document.documentElement,e[0],e[1],e[2]),queryAllByShadowTestId:(...e)=>y(document.documentElement,e[0],e[1]),queryByShadowTestId:(...e)=>xe(document.documentElement,e[0],e[1]),getAllByShadowTestId:(...e)=>Pe(document.documentElement,e[0],e[1]),getByShadowTestId:(...e)=>Re(document.documentElement,e[0],e[1]),findAllByShadowTestId:(...e)=>Le(document.documentElement,e[0],e[1],e[2]),findByShadowTestId:(...e)=>qe(document.documentElement,e[0],e[1],e[2])};export{$e as deepQuerySelector,l as deepQuerySelectorAll,ie as findAllByShadowAltText,re as findAllByShadowDisplayValue,U as findAllByShadowLabelText,G as findAllByShadowPlaceholderText,I as findAllByShadowRole,Le as findAllByShadowTestId,Z as findAllByShadowText,fe as findAllByShadowTitle,se as findByShadowAltText,de as findByShadowDisplayValue,Q as findByShadowLabelText,J as findByShadowPlaceholderText,g as findByShadowRole,qe as findByShadowTestId,ee as findByShadowText,Ee as findByShadowTitle,Se as getAllByShadowAltText,ae as getAllByShadowDisplayValue,F as getAllByShadowLabelText,k as getAllByShadowPlaceholderText,O as getAllByShadowRole,Pe as getAllByShadowTestId,X as getAllByShadowText,Te as getAllByShadowTitle,ue as getByShadowAltText,le as getByShadowDisplayValue,V as getByShadowLabelText,z as getByShadowPlaceholderText,b as getByShadowRole,Re as getByShadowTestId,Y as getByShadowText,pe as getByShadowTitle,s as queryAllByShadowAltText,i as queryAllByShadowDisplayValue,m as queryAllByShadowLabelText,S as queryAllByShadowPlaceholderText,h as queryAllByShadowRole,y as queryAllByShadowTestId,u as queryAllByShadowText,w as queryAllByShadowTitle,me as queryByShadowAltText,ne as queryByShadowDisplayValue,$ as queryByShadowLabelText,j as queryByShadowPlaceholderText,H as queryByShadowRole,xe as queryByShadowTestId,W as queryByShadowText,Me as queryByShadowTitle,Fe as screen};
import{buildQueries as r,screen as M,queryAllByRole as T,queryAllByLabelText as p,queryAllByPlaceholderText as f,queryAllByText as E,queryAllByDisplayValue as B,queryAllByAltText as A,queryAllByTitle as x,queryAllByTestId as P}from"@testing-library/dom";function R(){typeof ShadowRoot>"u"||typeof ShadowRoot.prototype.matches<"u"||(ShadowRoot.prototype.matches=function(e){return e.trim()==="*"?!0:this.querySelector(e)!=null},Object.defineProperties(ShadowRoot.prototype,{outerHTML:{get(){return this.innerHTML}}}))}R();function $e(e,o,a={shallow:!1},t=[]){let n=l(e,o,a,t);return Array.isArray(n)&&n.length>0?n[0]:null}function l(e,o,a={shallow:!1},t=[]){return e instanceof Document&&(e=document.documentElement),e.shadowRoot!=null&&e.shadowRoot.mode!=="closed"&&t.push(e.shadowRoot),e instanceof ShadowRoot&&t.push(e),e.querySelectorAll(o).forEach(n=>{if(n.shadowRoot==null||n.shadowRoot.mode==="closed"){t.push(n);return}if(t.push(n.shadowRoot),a.shallow===!0){n.shadowRoot.querySelectorAll(o).forEach(c=>t.push(c));return}n.shadowRoot.querySelectorAll(o).forEach(c=>t.push(c)),l(n.shadowRoot,o,a,t)}),[...new Set(t)]}var d=":scope *";function h(...e){let[o,a,t]=e;return t==null&&(t={}),t.suggest=!1,[...new Set(l(o,d,t).map(n=>T(n,a,t)).flat(1/0))]}var L=(e,o)=>`Found multiple elements with the role of: ${o}`,q=(e,o)=>`Unable to find an element with the role of: ${o}`,[H,O,b,I,g]=r(h,L,q);function m(...e){let[o,a,t]=e;return t==null&&(t={}),t.suggest=!1,[...new Set(l(o,d,t).map(n=>p(n,a,t)).flat(1/0))]}var D=(e,o)=>`Found multiple elements with the label text of: ${o}`,_=(e,o)=>`Unable to find an element with the label text of: ${o}`,[$,F,V,U,Q]=r(m,D,_);function S(...e){let[o,a,t]=e;return t==null&&(t={}),t.suggest=!1,[...new Set(l(o,d,t).map(n=>f(n,a,t)).flat(1/0))]}var C=(e,o)=>`Found multiple elements with the placeholder text of: ${o}`,v=(e,o)=>`Unable to find an element with the placeholder text of: ${o}`,[j,k,z,G,J]=r(S,C,v);function u(...e){let[o,a,t]=e;return t==null&&(t={}),t.suggest=!1,[...new Set(l(o,d,t).map(n=>E(n,a,t)).flat(1/0))]}var K=(e,o)=>`Found multiple elements with the text of: ${o}`,N=(e,o)=>`Unable to find an element with the text of: ${o}`,[W,X,Y,Z,ee]=r(u,K,N);function i(...e){let[o,a,t]=e;return t==null&&(t={}),t.suggest=!1,[...new Set(l(o,d,t).map(n=>B(n,a,t)).flat(1/0))]}var te=(e,o)=>`Found multiple elements with the display value of: ${o}`,oe=(e,o)=>`Unable to find an element with the display value of: ${o}`,[ne,ae,le,re,de]=r(i,te,oe);function s(...e){let[o,a,t]=e;return t==null&&(t={}),t.suggest=!1,[...new Set(l(o,d,t).map(n=>A(n,a,t)).flat(1/0))]}var ce=(e,o)=>`Found multiple elements with the alt text of: ${o}`,he=(e,o)=>`Unable to find an element with the alt text of: ${o}`,[me,Se,ue,ie,se]=r(s,ce,he);function w(...e){let[o,a,t]=e;return t==null&&(t={}),t.suggest=!1,[...new Set(l(o,d,t).map(n=>x(n,a,t)).flat(1/0))]}var we=(e,o)=>`Found multiple elements with the title of: ${o}`,ye=(e,o)=>`Unable to find an element with the title of: ${o}`,[Me,Te,pe,fe,Ee]=r(w,we,ye);function y(...e){let[o,a,t]=e;return t==null&&(t={}),t.suggest=!1,[...new Set(l(o,d,t).map(n=>P(n,a,t)).flat(1/0))]}var Be=(e,o)=>`Found multiple elements with the test id of: ${o}`,Ae=(e,o)=>`Unable to find an element with the test id of: ${o}`,[xe,Pe,Re,Le,qe]=r(y,Be,Ae),Fe={...M,queryAllByShadowRole:(...e)=>h(document.documentElement,e[0],e[1]),queryByShadowRole:(...e)=>H(document.documentElement,e[0],e[1]),getAllByShadowRole:(...e)=>O(document.documentElement,e[0],e[1]),getByShadowRole:(...e)=>b(document.documentElement,e[0],e[1]),findAllByShadowRole:(...e)=>I(document.documentElement,e[0],e[1],e[2]),findByShadowRole:(...e)=>g(document.documentElement,e[0],e[1],e[2]),queryAllByShadowLabelText:(...e)=>m(document.documentElement,e[0],e[1]),queryByShadowLabelText:(...e)=>$(document.documentElement,e[0],e[1]),getAllByShadowLabelText:(...e)=>F(document.documentElement,e[0],e[1]),getByShadowLabelText:(...e)=>V(document.documentElement,e[0],e[1]),findAllByShadowLabelText:(...e)=>U(document.documentElement,e[0],e[1],e[2]),findByShadowLabelText:(...e)=>Q(document.documentElement,e[0],e[1],e[2]),queryAllByShadowPlaceholderText:(...e)=>S(document.documentElement,e[0],e[1]),queryByShadowPlaceholderText:(...e)=>j(document.documentElement,e[0],e[1]),getAllByShadowPlaceholderText:(...e)=>k(document.documentElement,e[0],e[1]),getByShadowPlaceholderText:(...e)=>z(document.documentElement,e[0],e[1]),findAllByShadowPlaceholderText:(...e)=>G(document.documentElement,e[0],e[1],e[2]),findByShadowPlaceholderText:(...e)=>J(document.documentElement,e[0],e[1],e[2]),queryAllByShadowText:(...e)=>u(document.documentElement,e[0],e[1]),queryByShadowText:(...e)=>W(document.documentElement,e[0],e[1]),getAllByShadowText:(...e)=>X(document.documentElement,e[0],e[1]),getByShadowText:(...e)=>Y(document.documentElement,e[0],e[1]),findAllByShadowText:(...e)=>Z(document.documentElement,e[0],e[1],e[2]),findByShadowText:(...e)=>ee(document.documentElement,e[0],e[1],e[2]),queryAllByShadowDisplayValue:(...e)=>i(document.documentElement,e[0],e[1]),queryByShadowDisplayValue:(...e)=>ne(document.documentElement,e[0],e[1]),getAllByShadowDisplayValue:(...e)=>ae(document.documentElement,e[0],e[1]),getByShadowDisplayValue:(...e)=>le(document.documentElement,e[0],e[1]),findAllByShadowDisplayValue:(...e)=>re(document.documentElement,e[0],e[1],e[2]),findByShadowDisplayValue:(...e)=>de(document.documentElement,e[0],e[1],e[2]),queryAllByShadowAltText:(...e)=>s(document.documentElement,e[0],e[1]),queryByShadowAltText:(...e)=>me(document.documentElement,e[0],e[1]),getAllByShadowAltText:(...e)=>Se(document.documentElement,e[0],e[1]),getByShadowAltText:(...e)=>ue(document.documentElement,e[0],e[1]),findAllByShadowAltText:(...e)=>ie(document.documentElement,e[0],e[1],e[2]),findByShadowAltText:(...e)=>se(document.documentElement,e[0],e[1],e[2]),queryAllByShadowTitle:(...e)=>w(document.documentElement,e[0],e[1]),queryByShadowTitle:(...e)=>Me(document.documentElement,e[0],e[1]),getAllByShadowTitle:(...e)=>Te(document.documentElement,e[0],e[1]),getByShadowTitle:(...e)=>pe(document.documentElement,e[0],e[1]),findAllByShadowTitle:(...e)=>fe(document.documentElement,e[0],e[1],e[2]),findByShadowTitle:(...e)=>Ee(document.documentElement,e[0],e[1],e[2]),queryAllByShadowTestId:(...e)=>y(document.documentElement,e[0],e[1]),queryByShadowTestId:(...e)=>xe(document.documentElement,e[0],e[1]),getAllByShadowTestId:(...e)=>Pe(document.documentElement,e[0],e[1]),getByShadowTestId:(...e)=>Re(document.documentElement,e[0],e[1]),findAllByShadowTestId:(...e)=>Le(document.documentElement,e[0],e[1],e[2]),findByShadowTestId:(...e)=>qe(document.documentElement,e[0],e[1],e[2])};export{$e as deepQuerySelector,l as deepQuerySelectorAll,ie as findAllByShadowAltText,re as findAllByShadowDisplayValue,U as findAllByShadowLabelText,G as findAllByShadowPlaceholderText,I as findAllByShadowRole,Le as findAllByShadowTestId,Z as findAllByShadowText,fe as findAllByShadowTitle,se as findByShadowAltText,de as findByShadowDisplayValue,Q as findByShadowLabelText,J as findByShadowPlaceholderText,g as findByShadowRole,qe as findByShadowTestId,ee as findByShadowText,Ee as findByShadowTitle,Se as getAllByShadowAltText,ae as getAllByShadowDisplayValue,F as getAllByShadowLabelText,k as getAllByShadowPlaceholderText,O as getAllByShadowRole,Pe as getAllByShadowTestId,X as getAllByShadowText,Te as getAllByShadowTitle,ue as getByShadowAltText,le as getByShadowDisplayValue,V as getByShadowLabelText,z as getByShadowPlaceholderText,b as getByShadowRole,Re as getByShadowTestId,Y as getByShadowText,pe as getByShadowTitle,s as queryAllByShadowAltText,i as queryAllByShadowDisplayValue,m as queryAllByShadowLabelText,S as queryAllByShadowPlaceholderText,h as queryAllByShadowRole,y as queryAllByShadowTestId,u as queryAllByShadowText,w as queryAllByShadowTitle,me as queryByShadowAltText,ne as queryByShadowDisplayValue,$ as queryByShadowLabelText,j as queryByShadowPlaceholderText,H as queryByShadowRole,xe as queryByShadowTestId,W as queryByShadowText,Me as queryByShadowTitle,Fe as screen};
//# sourceMappingURL=index.js.map

@@ -1,1 +0,1 @@

{"inputs":{"src/index.ts":{"bytes":20580,"imports":[]}},"outputs":{"dist/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":28001},"dist/index.cjs":{"imports":[],"exports":[],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":8154}},"bytes":9726}}}
{"inputs":{"src/index.ts":{"bytes":20692,"imports":[]}},"outputs":{"dist/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":28353},"dist/index.cjs":{"imports":[],"exports":[],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":8266}},"bytes":9838}}}

@@ -1,1 +0,1 @@

{"inputs":{"src/index.ts":{"bytes":20580,"imports":[]}},"outputs":{"dist/index.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":27975},"dist/index.js":{"imports":[],"exports":["deepQuerySelector","deepQuerySelectorAll","findAllByShadowAltText","findAllByShadowDisplayValue","findAllByShadowLabelText","findAllByShadowPlaceholderText","findAllByShadowRole","findAllByShadowTestId","findAllByShadowText","findAllByShadowTitle","findByShadowAltText","findByShadowDisplayValue","findByShadowLabelText","findByShadowPlaceholderText","findByShadowRole","findByShadowTestId","findByShadowText","findByShadowTitle","getAllByShadowAltText","getAllByShadowDisplayValue","getAllByShadowLabelText","getAllByShadowPlaceholderText","getAllByShadowRole","getAllByShadowTestId","getAllByShadowText","getAllByShadowTitle","getByShadowAltText","getByShadowDisplayValue","getByShadowLabelText","getByShadowPlaceholderText","getByShadowRole","getByShadowTestId","getByShadowText","getByShadowTitle","queryAllByShadowAltText","queryAllByShadowDisplayValue","queryAllByShadowLabelText","queryAllByShadowPlaceholderText","queryAllByShadowRole","queryAllByShadowTestId","queryAllByShadowText","queryAllByShadowTitle","queryByShadowAltText","queryByShadowDisplayValue","queryByShadowLabelText","queryByShadowPlaceholderText","queryByShadowRole","queryByShadowTestId","queryByShadowText","queryByShadowTitle","screen"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":6594}},"bytes":7995}}}
{"inputs":{"src/index.ts":{"bytes":20692,"imports":[]}},"outputs":{"dist/index.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":28327},"dist/index.js":{"imports":[],"exports":["deepQuerySelector","deepQuerySelectorAll","findAllByShadowAltText","findAllByShadowDisplayValue","findAllByShadowLabelText","findAllByShadowPlaceholderText","findAllByShadowRole","findAllByShadowTestId","findAllByShadowText","findAllByShadowTitle","findByShadowAltText","findByShadowDisplayValue","findByShadowLabelText","findByShadowPlaceholderText","findByShadowRole","findByShadowTestId","findByShadowText","findByShadowTitle","getAllByShadowAltText","getAllByShadowDisplayValue","getAllByShadowLabelText","getAllByShadowPlaceholderText","getAllByShadowRole","getAllByShadowTestId","getAllByShadowText","getAllByShadowTitle","getByShadowAltText","getByShadowDisplayValue","getByShadowLabelText","getByShadowPlaceholderText","getByShadowRole","getByShadowTestId","getByShadowText","getByShadowTitle","queryAllByShadowAltText","queryAllByShadowDisplayValue","queryAllByShadowLabelText","queryAllByShadowPlaceholderText","queryAllByShadowRole","queryAllByShadowTestId","queryAllByShadowText","queryAllByShadowTitle","queryByShadowAltText","queryByShadowDisplayValue","queryByShadowLabelText","queryByShadowPlaceholderText","queryByShadowRole","queryByShadowTestId","queryByShadowText","queryByShadowTitle","screen"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":6706}},"bytes":8107}}}
{
"name": "shadow-dom-testing-library",
"version": "1.1.7",
"version": "1.1.8",
"description": "An extension of DOM-testing-library to provide hooks into the shadow dom",

@@ -5,0 +5,0 @@ "type": "module",

@@ -119,3 +119,3 @@ import {waitForOptions, buildQueries, screen, ByRoleMatcher, ByRoleOptions, queryAllByRole, SelectorMatcherOptions, queryAllByLabelText, Matcher, queryAllByPlaceholderText, MatcherOptions, queryAllByText, queryAllByDisplayValue, queryAllByAltText, queryAllByTitle, queryAllByTestId} from '@testing-library/dom'

return deepQuerySelectorAll(container, scopeQuery, options).map((el) => queryAllByRole(el as HTMLElement, role, options)).flat(Infinity) as T[]
return [...new Set(deepQuerySelectorAll(container, scopeQuery, options).map((el) => queryAllByRole(el as HTMLElement, role, options)).flat(Infinity))] as T[]
}

@@ -147,3 +147,3 @@

return deepQuerySelectorAll(container, scopeQuery, options).map((el) => queryAllByLabelText(el as HTMLElement, id, options)).flat(Infinity) as T[]
return [...new Set(deepQuerySelectorAll(container, scopeQuery, options).map((el) => queryAllByLabelText(el as HTMLElement, id, options)).flat(Infinity))] as T[]
}

@@ -175,3 +175,3 @@

return deepQuerySelectorAll(container, scopeQuery, options).map((el) => queryAllByPlaceholderText(el as HTMLElement, id, options)).flat(Infinity) as T[]
return [...new Set(deepQuerySelectorAll(container, scopeQuery, options).map((el) => queryAllByPlaceholderText(el as HTMLElement, id, options)).flat(Infinity))] as T[]
}

@@ -202,3 +202,3 @@

return deepQuerySelectorAll(container, scopeQuery, options).map((el) => queryAllByText(el as HTMLElement, id, options)).flat(Infinity) as T[]
return [...new Set(deepQuerySelectorAll(container, scopeQuery, options).map((el) => queryAllByText(el as HTMLElement, id, options)).flat(Infinity))] as T[]
}

@@ -231,3 +231,3 @@

return deepQuerySelectorAll(container, scopeQuery, options).map((el) => queryAllByDisplayValue(el as HTMLElement, id, options)).flat(Infinity) as T[]
return [...new Set(deepQuerySelectorAll(container, scopeQuery, options).map((el) => queryAllByDisplayValue(el as HTMLElement, id, options)).flat(Infinity))] as T[]
}

@@ -259,3 +259,3 @@

return deepQuerySelectorAll(container, scopeQuery, options).map((el) => queryAllByAltText(el as HTMLElement, id, options)).flat(Infinity) as T[]
return [...new Set(deepQuerySelectorAll(container, scopeQuery, options).map((el) => queryAllByAltText(el as HTMLElement, id, options)).flat(Infinity))] as T[]
}

@@ -287,3 +287,3 @@

return deepQuerySelectorAll(container, scopeQuery, options).map((el) => queryAllByTitle(el as HTMLElement, id, options)).flat(Infinity) as T[]
return [...new Set(deepQuerySelectorAll(container, scopeQuery, options).map((el) => queryAllByTitle(el as HTMLElement, id, options)).flat(Infinity))] as T[]
}

@@ -314,3 +314,3 @@

return deepQuerySelectorAll(container, scopeQuery, options).map((el) => queryAllByTestId(el as HTMLElement, id, options)).flat(Infinity) as T[]
return [...new Set(deepQuerySelectorAll(container, scopeQuery, options).map((el) => queryAllByTestId(el as HTMLElement, id, options)).flat(Infinity))] as T[]
}

@@ -317,0 +317,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc