New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More →
Socket
Sign inDemoInstall
Socket

@statoscope/cli

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@statoscope/cli - npm Package Compare versions

Comparing version 5.10.4 to 5.11.0

10

package.json
{
"name": "@statoscope/cli",
"version": "5.10.4",
"version": "5.11.0",
"description": "Statoscope CLI tools",

@@ -32,6 +32,6 @@ "scripts": {

"@statoscope/stats-validator-reporter-console": "5.9.0",
"@statoscope/stats-validator-reporter-stats-report": "5.10.0",
"@statoscope/stats-validator-reporter-stats-report": "5.11.0",
"@statoscope/types": "5.9.0",
"@statoscope/webpack-model": "5.9.0",
"@statoscope/webpack-ui": "5.10.0",
"@statoscope/webpack-model": "5.11.0",
"@statoscope/webpack-ui": "5.11.0",
"@types/yargs": "^17.0.2",

@@ -41,3 +41,3 @@ "open": "^8.2.1",

},
"gitHead": "9c345c118ff43b8239f64a2b0c4bfd99cc8c51fb"
"gitHead": "08e84826c7527e36ba838796609daf1b4fbb6324"
}

@@ -36,4 +36,6 @@ # Statoscope CLI

1. Install webpack-plugin for the validator:
`npm install --save-dev @statoscope/stats-validator-plugin-webpack`
`npm install --save-dev @statoscope/stats-validator-plugin-webpack @statoscope/stats-validator-reporter-console @statoscope/stats-validator-reporter-stats-report`
2. Create a statosope-config:

@@ -53,6 +55,21 @@

],
rules: {
// ensures that build-time of your bundle hasn't exceeded 10 sec
'@statoscope/webpack/build-time-limits': ['error', {global: 10000}],
// any other rules
// rules to validate your stats (use all of them or only specific rules)
rules: {
// ensures that the build time has not exceeded the limit (10 sec)
'@statoscope/webpack/build-time-limits': ['error', 10000],
// ensures that bundle doesn't use specified packages
'@statoscope/webpack/restricted-packages': ['error', ['lodash', 'browserify-crypto']],
// ensures that bundle hasn't package duplicates
'@statoscope/webpack/no-packages-dups': ['error'],
// ensure that the download time of entrypoints is not over the limit (3 sec)
'@statoscope/webpack/entry-download-time-limits': ['error', { global: { maxDownloadTime: 3000 } }],
// ensure that the download size of entrypoints is not over the limit (3 mb)
'@statoscope/webpack/entry-download-size-limits': ['error', { global: { maxSize: 3 * 1024 * 1024 } }],
// diff download size of entrypoints between input and reference stats. Fails if size diff is over the limit (3 kb)
'@statoscope/webpack/diff-entry-download-size-limits': [
'error',
{ global: { maxSizeDiff: 3*1024 } },
],
// compares usage of specified packages usage between input and reference stats. Fails if rxjs usage has increased
'@statoscope/webpack/diff-deprecated-packages': ['error', ['rxjs'']],
}

@@ -59,0 +76,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc