Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
@statoscope/stats-validator-plugin-webpack
Advanced tools
Plugin for @statoscope/stats-validator to validate webpack stats
Webpack stats validator plugin for @statoscope/stats-validator
This package contains rules to validate a webpack bundle.
5.7.0 (1 September 2021)
[stats-validator]
- add package for validating stats[stats-validator-plugin-webpack]
- add stats-validator plugin with webpack-rules[stats-validator-reporter-console]
- add stats-validator reporter to output results into console[stats-validator-reporter-stats-report]
- add stats-validator reporter to output results into descovery-based UI[stats-extension-stats-validation-result]
- add stats extension to pass validation messages info descovery-based UI[config]
- add package that contains config-helpers[webpack-ui]
- support new validation results
stats-extension-stats-validation-result
[webpack-ui]
- add some jora-helpers
resolveEntrypoint(id: string, hash: string): NormalizedEntrypointItem | null
Resolve entrypoint by its nameresolveFile(id: string): NormalizedFile | null
Resolve file by its nameresolveInputFile(): NormalizedFile | null
Resolve file with input.json
resolveReferenceFile(): NormalizedFile | null
Resolve file with reference.json
validation_getItems(hash?: string, relatedType?: RelatedItem['type'] | null, relatedId?: string | number): Item[]
Get validation messagesvalidation_getItem(id?: number, hash?: string): Item | null
Get validation messagevalidation_resolveRelatedItem(item?: RelatedItem, hash?: string): ResolvedRelatedItem
Resolve an entity (module, chunk, etc.) that related with some messagevalidation_resolveRule(name?: string, hash?: string): RuleDescriptor | null
Resolve detail info about a rule[cli]
- support new validators in validate
command
reference
-parameterconfig
-parameterstats-validator
package[types]
- add package with statoscope ts-types[helpers]
- add get
-parameter into makeResolver
-function[helpers]
- add asciiTree
-helper that generate ASCII tree from object-tree (useful for TTY-reporters)[helpers]
- add a bunch of useful jora-helpers
typeof(value: unknown): string
works like native typeof
operator
isNullish(value: unknown): boolean
returns true
if value
is null
or undefined
isArray(value: unknown): boolean
returns true
if value
is array
useNotNullish<T>(values: readonly T[]): T | null
return first not-nullish element from values
-array or null
([null, 123].useNotNullish() = 123
)
serializeStringOrRegexp(value?: string | RegExp): SerializedStringOrRegexp | null
transform string or regexp into json-compatible format
deserializeStringOrRegexp(value?: SerializedStringOrRegexp | null): string | RegExp | null
reverse the result of serializeStringOrRegexp
semverSatisfies(version: string | SemVer, range: string | Range): boolean
returns true
if version
satisfied of range
isMatch(a?: string, b?: string | RegExp): boolean
returns true
if a
matches b
exclude<T>(
items: readonly T[],
params?: {
exclude?: Array<string | RegExp>;
get?: (arg: T) => string | undefined;
}
): T[]
Helps to exclude elements. Examples:
['foo', 'bar', 'foo'].exclude({exclude: 'foo'}) = ['bar']
[fooCompilation, barCompilation, bazCompilation].exclude({exclude: /foo|bar/, get: <name>}) = [bazCompilation]
diff_normalizeLimit(limit?: number | Limit | null): Limit | null
Normalize the limit
diff_isLTETheLimit(valueDiff: ValueDiff, limit?: number | Limit | null): boolean
Returns true
if valueDiff
has not been exceeded the limit
[report-writer]
- move transform
function from cli
[report-writer]
- to
-parameter of transform
function now is required[report-writer]
- from
-parameter of transform
might be file name or stats object[cli]
- use transform
from report-writer
[helpers]
- move prepareWithJora
from webpack-model
[webpck-model]
- use prepareWithJora
from helpers
[helpers]
- fix max
-parameter bug in graph_findPaths
-helper[cli]
- validator
parameter in validate
command (use statoscope config with rules instead)FAQs
Plugin for @statoscope/stats-validator to validate webpack stats
The npm package @statoscope/stats-validator-plugin-webpack receives a total of 2,380 weekly downloads. As such, @statoscope/stats-validator-plugin-webpack popularity was classified as popular.
We found that @statoscope/stats-validator-plugin-webpack demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.