Socket
Socket
Sign inDemoInstall

stylecow-plugin-matches

Package Overview
Dependencies
0
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0 to 4.0.0

tests/cases.js

8

index.js

@@ -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

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