Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@statoscope/stats-validator-reporter-stats-report
Advanced tools
Stats report reporter for @statoscope/stats-validator
UI reporter for @statoscope/stats-validator.
Injects validator's result into stats and generates a Statoscope report.
Install
npm i -D @statoscope/stats-validator-plugin-webpack
Add into statoscope.config.js
module.exports = {
validate: {
reporters: [["@statoscope/stats-report", { "open": true }]]
// any other config parts
}
}
In this case, Statoscope validator will generate a UI-report and open it.
type Options = {
saveReportTo?: string; // a path to save HTML report (temporary dir with random file name by default)
saveStatsTo?: string; // a path to save JSON stats (does not save stats by default)
open?: boolean; // open generated Statoscope report (false by default)
disableReportCompression?: boolean // html report data compression, disable it will increase the size a lot (false by default)
};
statoscope.config.js:
{
"validate": {
"reporters": [["@statoscope/stats-report", { "open": true }]]
}
}
Generate UI report and open it.
statoscope.config.js:
{
"validate": {
"reporters": [["@statoscope/stats-report", { "saveStatsTo": "/path/to/report.html" }]]
}
}
Generate UI report info /path/to/report.html
file.
statoscope.config.js:
{
"validate": {
"reporters": [["@statoscope/stats-report", { "saveStatsTo": "/path/to/new/stats.json" }]]
}
}
Just inject validation result into stats and save into /path/to/new/stats.json
file.
5.27.0 (24 August 2023)
[webpack-model]
- add module_retained_modules(module)
-helper that returns retained modules by specific module
In other words: retained ones will be removed from bundle along with the module
[webpack-ui]
- support module_retained_modules
in module tree. For example, you can see retained modules in the diff-page
[webpack-ui]
- update discoveryjs from 1.0.0-beta.66 to 1.0.0-beta.77 (see changelog)
[webpack-ui]
- expose Discovery namespace
import Statoscope from '@statoscope/webpack-ui';
console.log(Statoscope.Discovery);
See usage example in dev.html
[webpack-ui]
- expose Discovery data and view inspector that helps to debug custom statoscope reports
[webpack-ui]
- add npm run dev
to develop Statoscope UI more easily
[stats-validator-reporter-stats-report]
: add disableReportCompression
-option, disable it will increase the size a lot (false
by default) (#210 by @icy0307)
[report-writer]
: use jsonxl to compress stats in binary json (replacement for old solution)
[webpack-model]
- improve initialization performanceFAQs
Stats report reporter for @statoscope/stats-validator
The npm package @statoscope/stats-validator-reporter-stats-report receives a total of 16,260 weekly downloads. As such, @statoscope/stats-validator-reporter-stats-report popularity was classified as popular.
We found that @statoscope/stats-validator-reporter-stats-report demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.