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

postcss-prefixwrap

Package Overview
Dependencies
Maintainers
0
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 1.52.0 to 1.53.0

1

build/internal/domain/CSSSelector.js

@@ -30,3 +30,2 @@ "use strict";

const escapedPrefixSelector = prefixSelector.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
// eslint-disable-next-line security-node/non-literal-reg-expr
const isPrefixSelector = new RegExp(`^${escapedPrefixSelector}$`);

@@ -33,0 +32,0 @@ return isPrefixSelector.test(cssRule.selector);

4

build/plugin/PostCSSPrefixWrap.js

@@ -18,5 +18,3 @@ "use strict";

this.ignoredSelectors = options.ignoredSelectors ?? [];
this.isPrefixSelector = new RegExp(
// eslint-disable-next-line security-node/non-literal-reg-expr
`^${prefixSelector.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}$`);
this.isPrefixSelector = new RegExp(`^${prefixSelector.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}$`);
this.prefixRootTags = options.prefixRootTags ?? false;

@@ -23,0 +21,0 @@ this.prefixSelector = prefixSelector;

@@ -7,2 +7,13 @@ # [PostCSS Prefix Wrap](./README.md) // Changelog

## [1.53.0](https://github.com/dbtedman/postcss-prefixwrap/releases/tag/1.53.0)
### 💡 Features and Improvements
- [Bun (bun.sh)](https://bun.sh) support.
- [Deno (deno.com)](https://deno.com) support.
### 🔧 Maintenance
- Apply dependency updates.
## [1.52.0](https://github.com/dbtedman/postcss-prefixwrap/releases/tag/1.52.0)

@@ -9,0 +20,0 @@

{
"name": "postcss-prefixwrap",
"version": "1.52.0",
"version": "1.53.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.",

@@ -30,29 +30,18 @@ "keywords": [

"devDependencies": {
"@babel/core": "7.25.2",
"@babel/core": "7.26.0",
"@jest/globals": "29.7.0",
"@tsconfig/node18": "18.2.4",
"@types/jest": "29.5.13",
"@types/node": "22.7.4",
"@typescript-eslint/eslint-plugin": "7.18.0",
"@typescript-eslint/parser": "7.18.0",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-import-resolver-typescript": "3.6.3",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jest": "28.8.3",
"eslint-plugin-jsx-a11y": "6.10.0",
"eslint-plugin-promise": "7.1.0",
"eslint-plugin-security-node": "1.1.4",
"eslint-plugin-unused-imports": "4.1.3",
"@types/jest": "29.5.14",
"@types/node": "22.9.0",
"glob": "11.0.0",
"husky": "9.1.5",
"husky": "9.1.7",
"jest": "29.7.0",
"postcss": "8.4.47",
"postcss": "8.4.49",
"prettier": "3.3.3",
"sort-package-json": "2.10.1",
"source-map": "0.7.4",
"source-map-js": "1.2.0",
"source-map-js": "1.2.1",
"ts-jest": "29.2.5",
"ts-node": "10.9.2",
"typescript": "5.6.2"
"typescript": "5.6.3"
},

@@ -69,6 +58,6 @@ "peerDependencies": {

"clean": "node automation-clean.js",
"format": "sort-package-json && prettier . --write && eslint --fix . --ext .js,.ts",
"lint": "sort-package-json --check && prettier . --check && eslint . --ext .js,.ts",
"format": "sort-package-json && prettier . --write",
"lint": "sort-package-json --check && prettier . --check",
"test": "jest"
}
}

@@ -8,9 +8,11 @@ # [PostCSS Prefix Wrap](https://github.com/dbtedman/postcss-prefixwrap)

A [PostCSS](https://postcss.org) plugin which prepends a selector to CSS styles to constrain their effect on parent
A [PostCSS (postcss.org)](https://postcss.org) plugin which prepends a selector to CSS styles to constrain their effect on parent
elements in a page.
| Supports | Versions |
| :------- | :-------------------------------- |
| NodeJS | `v18`, `v19`, `v20`, `v21`, `v22` |
| PostCSS | `v7`, `v8` |
| Supports | Versions |
| :------------------------------------------- | :-------------------------------- |
| [Bun (bun.sh)](https://bun.sh) | `latest` |
| [Deno (deno.com)](https://deno.com) | `v2` |
| [NodeJS (nodejs.org)](https://nodejs.org) | `v18`, `v19`, `v20`, `v21`, `v22` |
| [PostCSS (postcss.org)](https://postcss.org) | `v7`, `v8` |

@@ -28,15 +30,17 @@ > ⚠️ PostCSS v7 support is no longer validated in automated test cases, and will be removed entirely in a future release.

> ⚠️ These instructions are only for this plugin. See the [PostCSS](http://postcss.org) website for framework information.
> ⚠️ These instructions are only for this plugin. See the [PostCSS (postcss.org)](https://postcss.org) website for framework information.
### Install
| Package Manager | Command |
| :-------------------------------------------------------- | :------------------------------------------------------- |
| [NPM](https://www.npmjs.com/package/postcss-prefixwrap) | `npm install postcss-prefixwrap --save-dev --save-exact` |
| [PNPM](https://pnpm.io) | `pnpm add postcss-prefixwrap --save-dev --save-exact` |
| [Yarn](https://yarnpkg.com/en/package/postcss-prefixwrap) | `yarn add postcss-prefixwrap --dev --exact` |
| Package Manager or Runtime | Command |
| :---------------------------------------------------------------------- | :------------------------------------------------------- |
| [Bun (bun.sh)](https://bun.sh) | `bun add postcss-prefixwrap --dev --exact` |
| [Deno (deno.com)](https://deno.com) | `deno add npm:postcss-prefixwrap --dev` |
| [NPM (npmjs.com)](https://www.npmjs.com/package/postcss-prefixwrap) | `npm install postcss-prefixwrap --save-dev --save-exact` |
| [PNPM (pnpm.io)](https://pnpm.io) | `pnpm add postcss-prefixwrap --save-dev --save-exact` |
| [Yarn (yarnpkg.com)](https://yarnpkg.com/en/package/postcss-prefixwrap) | `yarn add postcss-prefixwrap --dev --exact` |
### Configure
Add to your [PostCSS](http://postcss.org) configuration.
Add to your [PostCSS (postcss.org)](https://postcss.org) configuration.

@@ -43,0 +47,0 @@ ```javascript

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