Socket
Socket
Sign inDemoInstall

stylecow-plugin-matches

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylecow-plugin-matches - npm Package Compare versions

Comparing version 1.2.0 to 2.0.0

8

index.js

@@ -6,8 +6,8 @@ module.exports = function (stylecow) {

":matches": function (fn) {
var selector = fn.ancestor('Selector');
var value = selector.name;
var selector = fn.parent({type: 'Selector'});
var value = selector.toString();
var search = fn.toString();
fn.content.forEach(function (replace) {
selector.insertBefore(stylecow.Selector.create(value.replace(search, replace)));
fn.getContent().forEach(function (replace) {
selector.before(new stylecow.Selector()).setContent(value.replace(search, replace));
});

@@ -14,0 +14,0 @@

{
"name": "stylecow-plugin-matches",
"description": "Stylecow plugin to add support for :matches() selector function to all browsers",
"version": "1.2.0",
"version": "2.0.0",
"author": "Oscar Otero <oom@oscarotero.com>",

@@ -6,0 +6,0 @@ "homepage": "https://github.com/stylecow/stylecow-plugin-matches",

stylecow plugin matches
=======================
Stylecow plugin to add support for :matches() selector function to all browsers
Stylecow plugin to add support for the selector `:matches()` in all browsers
More info about :matches() (available in CSS Selectors Level 4): http://www.w3.org/TR/2011/WD-selectors4-20110929/#matches
More info [available in CSS Selectors Level 4](http://www.w3.org/TR/2011/WD-selectors4-20110929/#matches)

@@ -8,0 +8,0 @@ You write:

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc