Skip to content

Commit

Permalink
Drop matches-selector dependency (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante authored Mar 10, 2021
1 parent d7e8c74 commit 03114ec
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions lib/getInputElements.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import matchesSelector from 'matches-selector'
import getElementType from './getElementType'

export default function getInputElements (element, options) {
Expand All @@ -18,7 +17,7 @@ export default function getInputElements (element, options) {

if (options.ignoredTypes) {
for (let selector of options.ignoredTypes) {
if (matchesSelector(el, selector)) {
if (el.matches(selector)) {
foundInIgnored = true
}
}
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
"rollup-watch": "^2.5.0"
},
"dependencies": {
"matches-selector": "^1.0.0"
},
"standard": {
"ignore": [
Expand Down

0 comments on commit 03114ec

Please sign in to comment.