size-limit
Advanced tools
Comparing version 7.0.8 to 8.0.0
@@ -30,2 +30,3 @@ let { | ||
if (typeof i.size !== 'undefined') result.size = i.size | ||
if (typeof i.limit !== 'undefined') result.sizeLimit = i.sizeLimit | ||
if (typeof i.runTime !== 'undefined') result.running = i.runTime | ||
@@ -118,3 +119,3 @@ if (typeof i.loadTime !== 'undefined') result.loading = i.loadTime | ||
} else if (bundled && check.brotli === true) { | ||
sizeNote = 'with all dependencies, minified and brotli' | ||
sizeNote = 'with all dependencies, minified and brotlied' | ||
} else if (bundled && check.gzip === false) { | ||
@@ -121,0 +122,0 @@ sizeNote = 'with all dependencies and minified' |
@@ -12,3 +12,5 @@ function toArray(obj) { | ||
has(type) { | ||
return this.list.some(i => i.name === `@size-limit/${type}`) | ||
return this.list.some( | ||
i => i.name === `@size-limit/${type}` || i.name === `size-limit-${type}` | ||
) | ||
} | ||
@@ -23,3 +25,3 @@ } | ||
.concat(toArray(pkg.packageJson.optionalDependencies)) | ||
.filter(i => i.startsWith('@size-limit/')) | ||
.filter(i => i.startsWith('@size-limit/') || i.startsWith('size-limit-')) | ||
.reduce( | ||
@@ -26,0 +28,0 @@ (all, i) => |
{ | ||
"name": "size-limit", | ||
"version": "7.0.8", | ||
"version": "8.0.0", | ||
"description": "CLI tool for Size Limit", | ||
@@ -18,3 +18,3 @@ "keywords": [ | ||
"engines": { | ||
"node": "^12.0.0 || ^14.0.0 || >=16.0.0" | ||
"node": "^14.0.0 || ^16.0.0 || >=18.0.0" | ||
}, | ||
@@ -26,7 +26,7 @@ "dependencies": { | ||
"globby": "^11.1.0", | ||
"lilconfig": "^2.0.4", | ||
"lilconfig": "^2.0.6", | ||
"mkdirp": "^1.0.4", | ||
"nanospinner": "^1.0.0", | ||
"nanospinner": "^1.1.0", | ||
"picocolors": "^1.0.0" | ||
} | ||
} |
@@ -55,2 +55,3 @@ let SizeLimitError = require('./size-limit-error') | ||
} else if (arg === '--watch') { | ||
/* istanbul ignore next */ | ||
args.watch = true | ||
@@ -57,0 +58,0 @@ } else if (arg === '--highlight-less') { |
@@ -85,2 +85,3 @@ let { createSpinner } = require('nanospinner') | ||
/* istanbul ignore if */ | ||
if (hasArg('--watch')) { | ||
@@ -87,0 +88,0 @@ let watcher = chokidar.watch(['**/*'], { |
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
31697
876
Updatedlilconfig@^2.0.6
Updatednanospinner@^1.1.0