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

postcss-prefixwrap

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-prefixwrap - npm Package Compare versions

Comparing version 0.0.5 to 0.1.0

6

CHANGELOG.md

@@ -6,2 +6,8 @@

## 0.1.0
## Features and Improvements
* Add support for top level combined selectors containing our container class.
## 0.0.5

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

0

LICENSE.md

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

2

package.json
{
"name": "postcss-prefixwrap",
"version": "0.0.5",
"version": "0.1.0",
"description": "A PostCSS plugin that is used to wrap css styles with a css selector to constrain their affect on parent elements in a page.",

@@ -5,0 +5,0 @@ "main": "./src/main.js",

# [PostCSS Prefix Wrap](https://github.com/dbtedman/postcss-prefixwrap) `v0.0.5` [![Build Status](https://travis-ci.org/dbtedman/postcss-prefixwrap.svg?branch=master)](https://travis-ci.org/dbtedman/estoolbox) [![NPM Version](https://img.shields.io/npm/v/postcss-prefixwrap.svg)](https://www.npmjs.com/package/postcss-prefixwrap)
# [PostCSS Prefix Wrap](https://github.com/dbtedman/postcss-prefixwrap) `v0.1.0` [![Build Status](https://travis-ci.org/dbtedman/postcss-prefixwrap.svg?branch=master)](https://travis-ci.org/dbtedman/postcss-prefixwrap) [![NPM Version](https://img.shields.io/npm/v/postcss-prefixwrap.svg)](https://www.npmjs.com/package/postcss-prefixwrap)

@@ -4,0 +4,0 @@ A [PostCSS](http://postcss.org) plugin that is used to wrap css styles with a css selector to constrain their affect on parent elements in a page.

@@ -15,3 +15,4 @@ var postcss = require("postcss");

} else {
// Prepend selector unless our first rule is a combination of this selector and another rule.
} else if (!rule.selector.match(new RegExp("^ *[^ ]*" + selector + ".*$"))) {
rule.selector = selector + " " + rule.selector;

@@ -18,0 +19,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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