@relative-ci/agent
Advanced tools
Comparing version 1.1.0-beta.1 to 1.1.0-beta.2
@@ -13,8 +13,8 @@ const { | ||
const EXCLUDE = '.map$'; | ||
const PATH_IGNORE_PATTERN = '.map$'; | ||
module.exports = (source, options = {}) => { | ||
const exclude = new RegExp(options.exclude || EXCLUDE); | ||
const pathIgnorePattern = new RegExp(options.pathIgnorePattern || PATH_IGNORE_PATTERN); | ||
debug('Extract assets, entrypoints from the webpack stats'); | ||
debug('Extract assets, entrypoints, chunks, from the webpack stats'); | ||
@@ -24,3 +24,3 @@ const assets = flow( | ||
map(pick(['name', 'size'])), | ||
filter(({ name }) => !exclude.test(name)), | ||
filter(({ name }) => !pathIgnorePattern.test(name)), | ||
)(source); | ||
@@ -38,6 +38,18 @@ | ||
const chunks = flow( | ||
get('chunks'), | ||
map(pick(['id', 'entry', 'initial', 'files', 'names'])), | ||
)(source); | ||
const modules = flow( | ||
get('modules'), | ||
map(pick(['name', 'size', 'chunks'])), | ||
)(source); | ||
return { | ||
assets, | ||
entrypoints, | ||
chunks, | ||
modules, | ||
}; | ||
}; |
{ | ||
"name": "@relative-ci/agent", | ||
"version": "1.1.0-beta.1", | ||
"version": "1.1.0-beta.2", | ||
"description": "Relative CI agent", | ||
@@ -5,0 +5,0 @@ "repository": "relative-ci/agent", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
7804
225
2