stylecow-plugin-matches
Advanced tools
Comparing version 3.0.0 to 4.0.0
@@ -5,7 +5,7 @@ module.exports = function (stylecow) { | ||
filter: { | ||
type: 'Function', | ||
name: ':matches' | ||
type: 'PseudoClass', | ||
name: 'matches' | ||
}, | ||
fn: function (fn) { | ||
var selector = fn.parent('Selector'); | ||
var selector = fn.getParent('Selector'); | ||
var value = selector.toString(); | ||
@@ -15,3 +15,3 @@ var search = fn.toString(); | ||
fn.forEach(function (replace) { | ||
selector.before(stylecow.Selector.createFromString(value.replace(search, replace.toString()))); | ||
selector.before(stylecow.parse(value.replace(search, replace.toString()), 'Selector')); | ||
}); | ||
@@ -18,0 +18,0 @@ |
{ | ||
"name": "stylecow-plugin-matches", | ||
"description": "Stylecow plugin to add support for :matches() selector function to all browsers", | ||
"version": "3.0.0", | ||
"version": "4.0.0", | ||
"author": "Oscar Otero <oom@oscarotero.com>", | ||
@@ -12,4 +12,10 @@ "homepage": "https://github.com/stylecow/stylecow-plugin-matches", | ||
}, | ||
"devDependencies": { | ||
"stylecow": "6.*" | ||
}, | ||
"scripts": { | ||
"test": "mocha tests/cases.js" | ||
}, | ||
"main": "index.js", | ||
"license": "MIT" | ||
} |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
10445
9
337
1
1