Socket
Socket
Sign inDemoInstall

postcss-hexrgba

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-hexrgba - npm Package Compare versions

Comparing version 2.0.1 to 2.1.0

17

index.js
'use strict';
const postcss = require('postcss');
const valueParser = require('postcss-value-parser');

@@ -61,6 +60,8 @@

module.exports = postcss.plugin('postcss-hexrgba', () => {
return (css, result) => {
css.walkDecls(decl => {
if (decl.value.indexOf('rgba') === -1) {
module.exports = () => {
return {
postcssPlugin: 'postcss-hexrgba',
Declaration(decl, { result }) {
if (!decl.value.includes('rgba')) {
return;

@@ -70,4 +71,6 @@ }

ruleHandler(decl, result);
});
},
};
});
};
module.exports.postcss = true;
{
"name": "postcss-hexrgba",
"version": "2.0.1",
"version": "2.1.0",
"description": "PostCSS plugin that adds shorthand hex methods to rgba() values",

@@ -23,9 +23,12 @@ "keywords": [

"dependencies": {
"postcss": "^7.0.14",
"postcss-value-parser": "^4.1.0"
},
"peerDependencies": {
"postcss": "^8.1.4"
},
"devDependencies": {
"chai": "^4.2.0",
"eslint": "^5.16.0",
"mocha": "^6.1.1"
"mocha": "^6.1.1",
"postcss": "^8.1.4"
},

@@ -32,0 +35,0 @@ "scripts": {

@@ -6,3 +6,3 @@ # PostCSS HexRGBA

_Part of [Rucksack - CSS Superpowers](http://simplaio.github.io/rucksack)_
_Part of [Rucksack - CSS Superpowers](https://www.rucksackcss.org/)_

@@ -9,0 +9,0 @@ **Input**

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