size-limit
Advanced tools
Comparing version 4.8.0 to 4.9.0
@@ -122,3 +122,3 @@ let { | ||
print(red(`Package size limit has exceeded by ${diff}`)) | ||
} else if (config.highlightLess && check.size < check.sizeLimit) { | ||
} else if (check.highlightLess && check.size < check.sizeLimit) { | ||
let diff = formatBytes(check.sizeLimit - check.size) | ||
@@ -125,0 +125,0 @@ print(bgGreen(black(`Package size is ${diff} less than limit`))) |
@@ -153,2 +153,4 @@ let { isAbsolute, dirname, join, relative } = require('path') | ||
} | ||
if (config.highlightLess) check.highlightLess = true | ||
if (/\sB$|\dB$/.test(check.limit)) check.highlightLess = true | ||
if (check.files) { | ||
@@ -155,0 +157,0 @@ check.files = check.files.map(i => toAbsolute(i, config.cwd)) |
{ | ||
"name": "size-limit", | ||
"version": "4.8.0", | ||
"version": "4.9.0", | ||
"description": "CLI tool for Size Limit", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26165
735