Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@statoscope/stats-validator-plugin-webpack

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@statoscope/stats-validator-plugin-webpack - npm Package Compare versions

Comparing version 5.28.0 to 5.28.1

10

dist/helpers.d.ts
import { SerializedStringOrRegexp } from '@statoscope/helpers/dist/jora';
export declare type ModuleTarget = {
export type ModuleTarget = {
name: string | RegExp;
};
export declare type PackageTarget = {
export type PackageTarget = {
name: string | RegExp;

@@ -11,10 +11,10 @@ version?: string;

};
export declare type SerializedPackageTarget = {
export type SerializedPackageTarget = {
name: SerializedStringOrRegexp;
version?: string;
};
export declare type SerializedModuleTarget = {
export type SerializedModuleTarget = {
name: SerializedStringOrRegexp;
};
export declare type RawTarget<TTarget> = string | RegExp | TTarget;
export type RawTarget<TTarget> = string | RegExp | TTarget;
export declare const packageRx: RegExp;

@@ -21,0 +21,0 @@ export declare function makePackageTarget(name: string | RegExp, version?: string): PackageTarget;

import { Prepared } from '@statoscope/webpack-model';
import { Rule } from '@statoscope/stats-validator/dist/rule';
import { PluginFn } from '@statoscope/stats-validator/dist/plugin';
export declare type WebpackRule<TParams> = Rule<TParams, Prepared>;
export type WebpackRule<TParams> = Rule<TParams, Prepared>;
declare const webpackPlugin: PluginFn<Prepared>;
export default webpackPlugin;
import { SerializedStringOrRegexp } from '@statoscope/helpers/dist/jora';
export declare type ExcludeItem<TType> = {
export type ExcludeItem<TType> = {
type: TType;
name: string | RegExp;
};
export declare type SerializedExcludeItem<TType> = {
export type SerializedExcludeItem<TType> = {
type: TType;
name: SerializedStringOrRegexp;
};
export declare type ByNameFilterItem<TLimit> = {
export type ByNameFilterItem<TLimit> = {
name: string | RegExp;
limits: TLimit;
};
export declare type SerializedByNameFilterItem<TLimit> = {
export type SerializedByNameFilterItem<TLimit> = {
name: SerializedStringOrRegexp;
limits: TLimit;
};
export declare type RequireAtLeastOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & {
export type RequireAtLeastOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> & {
[K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>>;

@@ -20,0 +20,0 @@ }[Keys];

import { NormalizedCompilation } from '@statoscope/webpack-model/types';
import { WebpackRule } from '../../';
import { ByNameFilterItem, ExcludeItem } from '../../limits-helpers';
export declare type Limits = number;
export declare type RuleExcludeItem = ExcludeItem<'compilation'>;
export declare type Params = Limits | {
export type Limits = number;
export type RuleExcludeItem = ExcludeItem<'compilation'>;
export type Params = Limits | {
exclude?: Array<string | RegExp | RuleExcludeItem>;

@@ -11,3 +11,3 @@ global?: Limits;

};
export declare type ResultItem = {
export type ResultItem = {
compilation: NormalizedCompilation;

@@ -18,3 +18,3 @@ rule: Limits;

};
export declare type NormalizedParams = Exclude<Params, 'exclude'> & {
export type NormalizedParams = Exclude<Params, 'exclude'> & {
exclude: ExcludeItem<'compilation'>[];

@@ -21,0 +21,0 @@ };

@@ -5,7 +5,7 @@ import { NormalizedChunk, NormalizedCompilation } from '@statoscope/webpack-model/types';

import { ByNameFilterItem, ExcludeItem, SerializedExcludeItem } from '../../limits-helpers';
export declare type Limits = number | Limit;
export declare type NormalizedLimits = Limit | null;
export declare type RuleExcludeItem = ExcludeItem<'compilation'>;
export declare type SerializedRuleExcludeItem = SerializedExcludeItem<'compilation'>;
export declare type Params = number | {
export type Limits = number | Limit;
export type NormalizedLimits = Limit | null;
export type RuleExcludeItem = ExcludeItem<'compilation'>;
export type SerializedRuleExcludeItem = SerializedExcludeItem<'compilation'>;
export type Params = number | {
global?: Limits;

@@ -15,3 +15,3 @@ exclude?: Array<string | RegExp | RuleExcludeItem>;

};
export declare type NormalizedParams = {
export type NormalizedParams = {
global: NormalizedLimits;

@@ -21,3 +21,3 @@ exclude: RuleExcludeItem[];

};
export declare type ResultEntryState = {
export type ResultEntryState = {
chunks: NormalizedChunk[];

@@ -30,3 +30,3 @@ initialChunks: NormalizedChunk[];

};
export declare type Result = {
export type Result = {
slowestInputCompilation: NormalizedCompilation;

@@ -33,0 +33,0 @@ slowestReferenceCompilation: NormalizedCompilation;

@@ -5,3 +5,3 @@ import { NormalizedReason, NormalizedModule } from '@statoscope/webpack-model/types';

import { ExcludeItem } from '../../limits-helpers';
export declare type ModuleResultItem = {
export type ModuleResultItem = {
module: NormalizedModule;

@@ -12,8 +12,8 @@ diff: NormalizedReason[];

};
export declare type RuleExcludeItem = ExcludeItem<'compilation'>;
export declare type Params = RawTarget<ModuleTarget>[] | {
export type RuleExcludeItem = ExcludeItem<'compilation'>;
export type Params = RawTarget<ModuleTarget>[] | {
target: RawTarget<ModuleTarget>[];
exclude: Array<string | RegExp | RuleExcludeItem>;
};
export declare type NormalizedParams = {
export type NormalizedParams = {
target: ModuleTarget[];

@@ -20,0 +20,0 @@ exclude: RuleExcludeItem[];

@@ -5,3 +5,3 @@ import { NormalizedModule, NormalizedReason } from '@statoscope/webpack-model/types';

import { ExcludeItem } from '../../limits-helpers';
export declare type PackageResultItem = {
export type PackageResultItem = {
packageName: string;

@@ -15,8 +15,8 @@ after: NormalizedReason[];

};
export declare type RuleExcludeItem = ExcludeItem<'compilation'>;
export declare type NormalizedParams = {
export type RuleExcludeItem = ExcludeItem<'compilation'>;
export type NormalizedParams = {
target: PackageTarget[];
exclude: RuleExcludeItem[];
};
export declare type Params = RawTarget<PackageTarget>[] | {
export type Params = RawTarget<PackageTarget>[] | {
target: RawTarget<PackageTarget>[] | NormalizedParams['target'];

@@ -23,0 +23,0 @@ exclude: Array<string | RegExp | RuleExcludeItem> | NormalizedParams['exclude'];

@@ -5,3 +5,3 @@ import { NormalizedChunk, NormalizedCompilation, NormalizedEntrypointItem } from '@statoscope/webpack-model/types';

import { ByNameFilterItem, ExcludeItem } from '../../limits-helpers';
export declare type Limits = {
export type Limits = {
maxSizeDiff?: number | Limit;

@@ -11,4 +11,4 @@ maxInitialSizeDiff?: number | Limit;

};
export declare type RuleExcludeItem = ExcludeItem<'compilation' | 'entry' | 'asset'>;
export declare type Params = {
export type RuleExcludeItem = ExcludeItem<'compilation' | 'entry' | 'asset'>;
export type Params = {
exclude?: Array<string | RegExp | RuleExcludeItem>;

@@ -19,3 +19,3 @@ useCompressedSize?: boolean;

};
export declare type NormalizedParams = {
export type NormalizedParams = {
exclude: RuleExcludeItem[];

@@ -26,3 +26,3 @@ useCompressedSize: boolean;

};
export declare type ResultEntryState = {
export type ResultEntryState = {
entry: NormalizedEntrypointItem;

@@ -36,3 +36,3 @@ chunks: NormalizedChunk[];

};
export declare type ResultEntryItem = {
export type ResultEntryItem = {
rule: Limits;

@@ -53,3 +53,3 @@ reference: ResultEntryState;

};
export declare type ResultItem = {
export type ResultItem = {
compilation: NormalizedCompilation;

@@ -56,0 +56,0 @@ entrypoints: Array<ResultEntryItem>;

@@ -6,4 +6,4 @@ import { NormalizedChunk, NormalizedCompilation, NormalizedEntrypointItem } from '@statoscope/webpack-model/types';

import { ByNameFilterItem, ExcludeItem } from '../../limits-helpers';
declare type NetworkType = typeof networkListType[number]['name'];
export declare type Limits = {
type NetworkType = (typeof networkListType)[number]['name'];
export type Limits = {
maxDownloadTimeDiff?: number | Limit;

@@ -13,3 +13,3 @@ maxInitialDownloadTimeDiff?: number | Limit;

};
export declare type NormalizedLimits = {
export type NormalizedLimits = {
maxDownloadTimeDiff: Limit | null;

@@ -19,4 +19,4 @@ maxInitialDownloadTimeDiff: Limit | null;

};
export declare type RuleExcludeItem = ExcludeItem<'compilation' | 'entry' | 'asset'>;
export declare type Params = {
export type RuleExcludeItem = ExcludeItem<'compilation' | 'entry' | 'asset'>;
export type Params = {
useCompressedSize?: boolean;

@@ -28,3 +28,3 @@ network?: NetworkType;

};
export declare type NormalizedParams = {
export type NormalizedParams = {
useCompressedSize: boolean;

@@ -36,3 +36,3 @@ network: NetworkType;

};
export declare type ResultEntryState = {
export type ResultEntryState = {
entry: NormalizedEntrypointItem;

@@ -46,3 +46,3 @@ chunks: NormalizedChunk[];

};
export declare type ResultEntryItem = {
export type ResultEntryItem = {
rule: Limits;

@@ -63,3 +63,3 @@ reference: ResultEntryState;

};
export declare type ResultItem = {
export type ResultItem = {
compilation: NormalizedCompilation;

@@ -66,0 +66,0 @@ entrypoints: Array<ResultEntryItem>;

import { NormalizedChunk, NormalizedCompilation, NormalizedEntrypointItem } from '@statoscope/webpack-model/types';
import { WebpackRule } from '../../';
import { ByNameFilterItem, ExcludeItem } from '../../limits-helpers';
export declare type Limits = {
export type Limits = {
maxSize?: number;

@@ -9,4 +9,4 @@ maxInitialSize?: number;

};
export declare type RuleExcludeItem = ExcludeItem<'compilation' | 'entry' | 'asset'>;
export declare type Params = {
export type RuleExcludeItem = ExcludeItem<'compilation' | 'entry' | 'asset'>;
export type Params = {
exclude?: Array<string | RegExp | RuleExcludeItem>;

@@ -17,3 +17,3 @@ useCompressedSize?: boolean;

};
export declare type ResultEntryItem = {
export type ResultEntryItem = {
entry: NormalizedEntrypointItem;

@@ -31,7 +31,7 @@ chunks: NormalizedChunk[];

};
export declare type ResultItem = {
export type ResultItem = {
compilation: NormalizedCompilation;
entrypoints: Array<ResultEntryItem>;
};
export declare type NormalizedParams = Exclude<Params, 'exclude'> & {
export type NormalizedParams = Exclude<Params, 'exclude'> & {
exclude: RuleExcludeItem[];

@@ -38,0 +38,0 @@ };

@@ -5,4 +5,4 @@ import { NormalizedChunk, NormalizedCompilation, NormalizedEntrypointItem } from '@statoscope/webpack-model/types';

import { ByNameFilterItem, ExcludeItem } from '../../limits-helpers';
declare type NetworkType = typeof networkListType[number]['name'];
export declare type Limits = {
type NetworkType = (typeof networkListType)[number]['name'];
export type Limits = {
maxDownloadTime?: number;

@@ -12,4 +12,4 @@ maxInitialDownloadTime?: number;

};
export declare type RuleExcludeItem = ExcludeItem<'compilation' | 'entry' | 'asset'>;
export declare type Params = {
export type RuleExcludeItem = ExcludeItem<'compilation' | 'entry' | 'asset'>;
export type Params = {
exclude?: Array<string | RegExp | RuleExcludeItem>;

@@ -21,3 +21,3 @@ useCompressedSize?: boolean;

};
export declare type ResultItem = {
export type ResultItem = {
compilation: NormalizedCompilation;

@@ -38,3 +38,3 @@ entrypoints: Array<{

};
export declare type NormalizedParams = Exclude<Params, 'exclude' | 'useCompressedSize'> & {
export type NormalizedParams = Exclude<Params, 'exclude' | 'useCompressedSize'> & {
useCompressedSize: boolean;

@@ -41,0 +41,0 @@ exclude: RuleExcludeItem[];

import { NormalizedFile, NormalizedCompilation, NormalizedModule } from '@statoscope/webpack-model/types';
import { WebpackRule } from '../../';
import { ExcludeItem } from '../../limits-helpers';
export declare type ModuleResultItem = {
export type ModuleResultItem = {
file: NormalizedFile;

@@ -9,7 +9,7 @@ compilation: NormalizedCompilation;

};
export declare type RuleExcludeItem = ExcludeItem<'compilation' | 'module'>;
export declare type NormalizedParams = {
export type RuleExcludeItem = ExcludeItem<'compilation' | 'module'>;
export type NormalizedParams = {
exclude: RuleExcludeItem[];
};
export declare type Params = {
export type Params = {
exclude: Array<string | RegExp | RuleExcludeItem> | NormalizedParams['exclude'];

@@ -16,0 +16,0 @@ };

import { NormalizedFile, NormalizedCompilation, NormalizedPackage } from '@statoscope/webpack-model/types';
import { WebpackRule } from '../../';
import { ExcludeItem } from '../../limits-helpers';
export declare type RuleExcludeItem = ExcludeItem<'compilation' | 'package'>;
export declare type NormalizedParams = {
export type RuleExcludeItem = ExcludeItem<'compilation' | 'package'>;
export type NormalizedParams = {
exclude: RuleExcludeItem[];
};
export declare type Params = {
export type Params = {
exclude?: Array<string | RegExp | RuleExcludeItem>;
};
export declare type Result = {
export type Result = {
file: NormalizedFile;

@@ -13,0 +13,0 @@ compilation: NormalizedCompilation;

@@ -5,3 +5,3 @@ import { NormalizedFile, NormalizedCompilation, NormalizedModule } from '@statoscope/webpack-model/types';

import { ExcludeItem } from '../../limits-helpers';
export declare type ModuleResultItem = {
export type ModuleResultItem = {
file: NormalizedFile;

@@ -11,8 +11,8 @@ compilation: NormalizedCompilation;

};
export declare type RuleExcludeItem = ExcludeItem<'compilation'>;
export declare type NormalizedParams = {
export type RuleExcludeItem = ExcludeItem<'compilation'>;
export type NormalizedParams = {
target: ModuleTarget[];
exclude: RuleExcludeItem[];
};
export declare type Params = RawTarget<ModuleTarget>[] | {
export type Params = RawTarget<ModuleTarget>[] | {
target: RawTarget<ModuleTarget>[] | NormalizedParams['target'];

@@ -19,0 +19,0 @@ exclude: Array<string | RegExp | RuleExcludeItem> | NormalizedParams['exclude'];

@@ -5,3 +5,3 @@ import { NormalizedFile, NodeModuleInstance, NormalizedCompilation, NormalizedModule, NormalizedPackage } from '@statoscope/webpack-model/types';

import { RuleExcludeItem } from '../diff-deprecated-packages';
export declare type PackageResultItem = {
export type PackageResultItem = {
file: NormalizedFile;

@@ -14,3 +14,3 @@ compilation: NormalizedCompilation;

};
export declare type ModuleResultItem = {
export type ModuleResultItem = {
file: NormalizedFile;

@@ -20,7 +20,7 @@ compilation: NormalizedCompilation;

};
export declare type NormalizedParams = {
export type NormalizedParams = {
target: PackageTarget[];
exclude: RuleExcludeItem[];
};
export declare type Params = RawTarget<PackageTarget>[] | {
export type Params = RawTarget<PackageTarget>[] | {
target: RawTarget<PackageTarget>[] | NormalizedParams['target'];

@@ -27,0 +27,0 @@ exclude: Array<string | RegExp | RuleExcludeItem> | NormalizedParams['exclude'];

{
"name": "@statoscope/stats-validator-plugin-webpack",
"version": "5.28.0",
"version": "5.28.1",
"description": "Plugin for @statoscope/stats-validator to validate webpack stats",
"main": "./dist/index.js",
"scripts": {
"build": "../../node_modules/.bin/tsc",
"prepublishOnly": "npm run build"
"build": "../../node_modules/.bin/tsc"
},

@@ -21,14 +20,12 @@ "repository": "https://github.com/statoscope/statoscope.git",

"dependencies": {
"@statoscope/helpers": "5.28.0",
"@statoscope/stats-extension-compressed": "5.28.0",
"@statoscope/stats-validator": "5.27.0",
"@statoscope/types": "5.27.0",
"@statoscope/webpack-model": "5.28.0",
"@statoscope/helpers": "5.28.1",
"@statoscope/stats-extension-compressed": "5.28.1",
"@statoscope/stats-validator": "5.28.1",
"@statoscope/types": "5.28.1",
"@statoscope/webpack-model": "5.28.1",
"@types/semver": "^7.5.1",
"chalk": "^4.1.2",
"semver": "^7.3.7"
"semver": "^7.5.4"
},
"devDependencies": {
"@types/semver": "^7.3.10"
},
"gitHead": "8593d1728fba7201855ba496eb5c01d28333c60b"
"gitHead": "a89f68a6251a1c914791e22b643dd94ca2a70253"
}
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