Huge News!Announcing our $40M Series B led by Abstract Ventures.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.24.0 to 5.25.0-alpha.0

7

dist/commands/generate.js

@@ -43,2 +43,7 @@ "use strict";

})
.option('compression', {
describe: 'use report compression',
type: 'boolean',
default: true,
})
.array(['input', 'custom-report'])

@@ -62,3 +67,3 @@ .demandOption('input');

console.log(`Generating Statoscope report to ${argv.output} ...`);
await (0, utils_1.transform)(files, argv.output, customReports);
await (0, utils_1.transform)(files, argv.output, customReports, argv.compression);
console.log(`Statoscope report saved to ${argv.output}`);

@@ -65,0 +70,0 @@ if (argv.open) {

@@ -49,2 +49,7 @@ "use strict";

})
.option('compression', {
describe: 'use report compression',
type: 'boolean',
default: true,
})
.array(['input', 'custom-report'])

@@ -68,3 +73,3 @@ .demandOption('input');

const customReports = (0, utils_1.combineCustomReports)(config, argv['custom-report']);
const reportPath = await (0, utils_1.transform)(files, destReportPath, customReports);
const reportPath = await (0, utils_1.transform)(files, destReportPath, customReports, argv.compression);
console.log(`Statoscope report generated to ${destReportPath}`);

@@ -71,0 +76,0 @@ http_1.default

2

dist/utils.d.ts

@@ -9,3 +9,3 @@ import { Webpack } from '@statoscope/webpack-model/webpack';

export declare function mergeCustomReportsIntoCompilation(parsed: Webpack.Compilation, reports: unknown[]): Webpack.Compilation;
export declare function transform(from: Array<TransformFrom | string>, to: string, customReports?: Report<unknown, unknown>[]): Promise<string>;
export declare function transform(from: Array<TransformFrom | string>, to: string, customReports: Report<unknown, unknown>[] | undefined, compression: boolean): Promise<string>;
export declare const createDestStatReportPath: (from: string[], to?: string) => string;

@@ -12,0 +12,0 @@ /**

@@ -47,3 +47,3 @@ "use strict";

exports.mergeCustomReportsIntoCompilation = mergeCustomReportsIntoCompilation;
async function transform(from, to, customReports = []) {
async function transform(from, to, customReports = [], compression) {
var _a;

@@ -72,2 +72,3 @@ const normalizedFrom = [];

}`,
dataCompression: compression,
},

@@ -74,0 +75,0 @@ }, normalizedFrom, to);

{
"name": "@statoscope/cli",
"version": "5.24.0",
"version": "5.25.0-alpha.0",
"description": "Statoscope CLI tools",

@@ -28,11 +28,11 @@ "scripts": {

"@statoscope/config": "5.22.0",
"@statoscope/helpers": "5.24.0",
"@statoscope/report-writer": "5.22.0",
"@statoscope/stats-extension-custom-reports": "5.24.0",
"@statoscope/helpers": "5.25.0-alpha.0",
"@statoscope/report-writer": "5.25.0-alpha.0",
"@statoscope/stats-extension-custom-reports": "5.25.0-alpha.0",
"@statoscope/stats-validator": "5.22.0",
"@statoscope/stats-validator-reporter-console": "5.22.0",
"@statoscope/stats-validator-reporter-stats-report": "5.24.0",
"@statoscope/stats-validator-reporter-stats-report": "5.25.0-alpha.0",
"@statoscope/types": "5.22.0",
"@statoscope/webpack-model": "5.24.0",
"@statoscope/webpack-ui": "5.24.0",
"@statoscope/webpack-model": "5.25.0-alpha.0",
"@statoscope/webpack-ui": "5.25.0-alpha.0",
"@types/yargs": "^17.0.10",

@@ -42,3 +42,3 @@ "open": "^8.4.0",

},
"gitHead": "0e4193e0cb9c894ac0fc25a2b3288391bd76be09"
"gitHead": "e75d2467531bd7df1d82a13498a8a608e75ea567"
}

@@ -86,3 +86,3 @@ # Statoscope CLI

> Learn more on [@staoscope/stats-validator](/packages/stats-validator) and [@statoscope/stats-validator-plugin-webpack](/packages/stats-validator-plugin-webpack)
> Learn more on [@statoscope/stats-validator](/packages/stats-validator) and [@statoscope/stats-validator-plugin-webpack](/packages/stats-validator-plugin-webpack)

@@ -150,2 +150,3 @@ ### init

- `--config` (`-c`) - path to the statoscope config file with custom user reports
- `--no-compression` - disable report data compression (It increases html size a lot. Use it only when something is wrong with report in a browser)

@@ -173,2 +174,3 @@ **Example:**

- `--config` (`-c`) - path to the statoscope config file with custom user reports
- `--no-compression` - disable report data compression (It increases html size a lot. Use it only when something is wrong with report in a browser)

@@ -175,0 +177,0 @@ **Example:**

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