Socket
Socket
Sign inDemoInstall

postcss-pseudoelements

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-pseudoelements - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

ChangeLog.md

17

index.js

@@ -9,19 +9,14 @@

'before',
'after'
'after',
'first-letter',
'first-line'
]
var replacements = new RegExp('::(' + selectors.join('|') + ')', 'gi');
return function(css) {
css.eachRule(function(rule) {
selectors.forEach(function(selector) {
rule.selectors.forEach(function(selector) {
rule.selector = selector.replace(new RegExp('::(' + selectors.join('|') + ')', 'gi'), ':$1');
});
});
rule.selector = rule.selector.replace(replacements, ':$1');
});
}
}
{
"name": "postcss-pseudoelements",
"version": "2.0.0",
"version": "2.1.0",
"description": "PostCSS plugin to add single-colon CSS 2.1 syntax pseudo selectors (i.e. :before)",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -17,2 +17,2 @@ # postcss-pseudoelements

`selectors`: Array of pseudo-element selectors to rewrite with single and double colons. Note that these values will be used in a regexp without escaping. Defaults to `['before','after']`
`selectors`: Array of pseudo-element selectors to rewrite with single and double colons. Note that these values will be used in a regexp without escaping. Defaults to `['before','after','first-letter','first-line']`

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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