Socket
Socket
Sign inDemoInstall

postcss-reduce-idents

Package Overview
Dependencies
Maintainers
2
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-reduce-idents - npm Package Compare versions

Comparing version 1.0.3 to 2.0.0

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# 2.0.0
* Upgraded to PostCSS 5.
# 1.0.3

@@ -2,0 +6,0 @@

10

index.js

@@ -18,3 +18,3 @@ 'use strict';

// Encode at rule names and cache the result
css.eachAtRule(atRuleRegex, function (rule) {
css.walkAtRules(atRuleRegex, function (rule) {
if (!cache[rule.params]) {

@@ -30,3 +30,3 @@ cache[rule.params] = {

// Iterate each property and change their names
css.eachDecl(propRegex, function (decl) {
css.walkDecls(propRegex, function (decl) {
decl.value = eachValue(decl.value, function (value) {

@@ -55,3 +55,3 @@ if (value in cache) {

var declCache = [];
css.eachDecl(/counter-(reset|increment)/, function (decl) {
css.walkDecls(/counter-(reset|increment)/, function (decl) {
decl.value = eachValue(decl.value, function (value) {

@@ -71,3 +71,3 @@ if (!/^-?\d*$/.test(value)) {

});
css.eachDecl('content', function (decl) {
css.walkDecls('content', function (decl) {
decl.value = eachValue(decl.value, function (value) {

@@ -81,3 +81,3 @@ return reduce(value, /(counters?)\(/, function (body, fn) {

return counter;
}).join(',');
}).join();
return fn + '(' + counters + ')';

@@ -84,0 +84,0 @@ });

{
"name": "postcss-reduce-idents",
"version": "1.0.3",
"version": "2.0.0",
"description": "Reduce custom identifiers with PostCSS.",

@@ -16,4 +16,4 @@ "main": "index.js",

"devDependencies": {
"tap-spec": "^2.2.2",
"tape": "^3.5.0"
"tap-spec": "^4.1.0",
"tape": "^4.2.0"
},

@@ -28,5 +28,5 @@ "homepage": "https://github.com/ben-eb/postcss-reduce-idents",

"dependencies": {
"postcss": "^4.1.2",
"postcss": "^5.0.4",
"reduce-function-call": "^1.0.1"
}
}
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