Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postcss-prefix

Package Overview
Dependencies
Maintainers
6
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-prefix - npm Package Compare versions

Comparing version 2.1.2 to 2.2.0

.travis.yml

8

index.js

@@ -14,4 +14,3 @@ 'use strict';

const selector = Selector(transformSelectors)
.process(rule.selector).result
.processSync(rule.selector)
rule.selector = selector

@@ -22,9 +21,6 @@ })

function transformSelectors (selectors) {
selectors.eachInside(function (selector) {
selectors.walk(function (selector) {
// don't prefix if parent is not selector
if (selector.parent.type !== 'selector') return
// don't prefix if not first node in container
if (selector.parent.nodes[0] !== selector) return
// don't prefix pseudo selector args unless it's `:not`

@@ -31,0 +27,0 @@ if (selector.parent.parent.type === 'pseudo' && selector.parent.parent.value !== ':not') {

{
"name": "postcss-prefix",
"version": "2.1.2",
"version": "2.2.0",
"license": "MIT",

@@ -8,3 +8,3 @@ "repository": "stackcss/postcss-prefix",

"postcss": "^5.0.8",
"postcss-selector-parser": "^1.3.0"
"postcss-selector-parser": "^4.0.0"
},

@@ -11,0 +11,0 @@ "devDependencies": {

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