dom-form-serializer
Advanced tools
Comparing version 1.0.8 to 2.0.0
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('matches-selector')) : | ||
typeof define === 'function' && define.amd ? define(['exports', 'matches-selector'], factory) : | ||
(factory((global.DOMFormSerializer = global.DOMFormSerializer || {}),global.matchesSelector)); | ||
}(this, (function (exports,matchesSelector) { 'use strict'; | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : | ||
typeof define === 'function' && define.amd ? define(['exports'], factory) : | ||
(factory((global.DOMFormSerializer = global.DOMFormSerializer || {}))); | ||
}(this, (function (exports) { 'use strict'; | ||
matchesSelector = 'default' in matchesSelector ? matchesSelector['default'] : matchesSelector; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { | ||
@@ -356,3 +354,3 @@ return typeof obj; | ||
if (matchesSelector(el, selector)) { | ||
if (el.matches(selector)) { | ||
foundInIgnored = true; | ||
@@ -359,0 +357,0 @@ } |
@@ -1,2 +0,1 @@ | ||
import matchesSelector from 'matches-selector' | ||
import getElementType from './getElementType' | ||
@@ -21,3 +20,3 @@ | ||
for (let selector of options.ignoredTypes) { | ||
if (matchesSelector(el, selector)) { | ||
if (el.matches(selector)) { | ||
foundInIgnored = true | ||
@@ -24,0 +23,0 @@ } |
{ | ||
"name": "dom-form-serializer", | ||
"version": "1.0.8", | ||
"version": "2.0.0", | ||
"description": "Serialize form inputs", | ||
@@ -27,5 +27,5 @@ "main": "dist/dom-form-serializer.js", | ||
], | ||
"repository" : { | ||
"type" : "git", | ||
"url" : "https://github.com/jefersondaniel/dom-form-serializer.git" | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/jefersondaniel/dom-form-serializer.git" | ||
}, | ||
@@ -47,5 +47,3 @@ "devDependencies": { | ||
}, | ||
"dependencies": { | ||
"matches-selector": "^1.0.0" | ||
}, | ||
"dependencies": {}, | ||
"standard": { | ||
@@ -52,0 +50,0 @@ "ignore": [ |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
0
89318
1337
- Removedmatches-selector@^1.0.0
- Removedmatches-selector@1.2.0(transitive)