New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

postcss-wrapper-loader

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-wrapper-loader - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

7

index.js
const _ = require('lodash/fp');
const postCss = require('postcss');
const keyFramesParent = ['keyframes', '-webkit-keyframes', '-moz-keyframes'];
const postCssWrapperPlugin= postCss.plugin('postcss-wrapper-plugin', function(prefix) {
return function(css) {
css.walkRules(function(rule) {
if (_.isEqual(_.get('parent.name', rule), 'keyframes'))
return;
let parentName = _.get('parent.name', rule);
if (_.includes(parentName, keyFramesParent))
return;

@@ -10,0 +13,0 @@ const selector = rule.selector;

{
"name": "postcss-wrapper-loader",
"version": "1.0.0",
"version": "1.0.1",
"private": false,

@@ -5,0 +5,0 @@ "description": "This plugin wraps all the cssClasses in a css file with a prefix class while webpack bundled. It helps to scope a specific css file with a prefix class",

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