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-extension-custom-reports
Advanced tools
Statoscope extension to store custom reports in stats
Statoscope extension to store custom reports in stats.
A custom report is:
export type Report<TData, TContext> = {
id: string; // report id
name?: string; // report title
compilation?: string | null; // if specified then a report will be shown only in specific compilation
data?: TData | (() => Promise<TData> | TData); // raw data for the report or a function that produces a data (may return promise)
view: string | ViewConfig<TData, TContext>; // any DiscoveryJS. String turns to script to eval
};
Sometimes we need to make a report with more complex view (e.g. with event handling).
JSON can't handle functions, but you can pass any script source into view
-property instead of JSON.
This source will be eval
ed on client and should return any DiscoveryJS view.
my-custom-report-view.js:
(() => [
{
view: 'button',
data: {
text: 'Click me',
},
onClick() {
alert('It works!');
},
},
])();
Report config:
({
id: 'foo',
view: fs.readFileSync('./my-custom-report-view.js', 'utf8')
})
5.14.0 (13 October 2021)
[cli]
- add query
command (#130)[cli]
- add inject-report
command[webpack-ui]
- use report id when no report name specified[stats-extension-custom-reports]
- handleReport returns boolean instead of throw an errorFAQs
Statoscope extension to store custom reports in stats
The npm package @statoscope/stats-extension-custom-reports receives a total of 103,374 weekly downloads. As such, @statoscope/stats-extension-custom-reports popularity was classified as popular.
We found that @statoscope/stats-extension-custom-reports demonstrated a not healthy version release cadence and project activity because the last version was released 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.