🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

css-dedup

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-dedup - npm Package Compare versions

Comparing version
1.2.0
to
1.2.1
+12
-4
bin/css-dedup.js

@@ -277,2 +277,13 @@ #!/usr/bin/env node

// Detail (what was skipped, and why) prints before the counts—so a long
// skipped list can't push the outcome off-screen and out of scrollback,
// the same order report mode already uses for its own skipped list
if (skipped.length) {
log(styleText('yellow', `${skipped.length} duplicate group${skipped.length !== 1 ? 's' : ''} considered unsafe to auto-merge:`));
for (const item of skipped) {
log(formatSkippedLine(item, skippedAggressive));
}
log('');
}
const skippedNote = skipped.length ? ' (considered unsafe to auto-merge)' : '';

@@ -284,9 +295,6 @@ if (withheld) {

}
for (const item of skipped) {
log(formatSkippedLine(item, skippedAggressive));
}
if (applied.length) {
log(`\n${formatBytesSummary(bytes)}`);
if (bytes.saved < 0) {
log(styleText('yellow', `Note: this consolidation makes the file ${formatBytesShare(bytes)} bigger, not smaller—the merged selector list costs more than the removed declaration(s) save. Still worth doing for maintainability (using each declaration just once); skip \`--fix\` here if you care more about transfer size.`));
log(styleText('yellow', `Note: This consolidation makes the file ${formatBytesShare(bytes)} bigger, not smaller—the merged selector list costs more than the removed declaration(s) save. Still worth doing for maintainability (using each declaration just once); skip \`--fix\` here if you care more about transfer size.`));
}

@@ -293,0 +301,0 @@ if (!isStdin) log(`Wrote ${label}`);

@@ -63,3 +63,3 @@ {

"types": "src/index.d.ts",
"version": "1.2.0"
"version": "1.2.1"
}