@bundle-stats/utils 3.3.0-alpha.1 → 3.4.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/CHANGELOG.md +29 -12
  2. package/lib/browsertime/index.js +5 -1
  3. package/lib/browsertime/index.js.map +1 -1
  4. package/lib/config/component-links.js +1 -0
  5. package/lib/config/component-links.js.map +1 -1
  6. package/lib/config/file-types.js +3 -3
  7. package/lib/config/file-types.js.map +1 -1
  8. package/lib/config/index.js +5 -1
  9. package/lib/config/index.js.map +1 -1
  10. package/lib/constants.js.map +1 -1
  11. package/lib/i18n.js +2 -1
  12. package/lib/i18n.js.map +1 -1
  13. package/lib/index.js +5 -1
  14. package/lib/index.js.map +1 -1
  15. package/lib/jobs/create-job.js +5 -1
  16. package/lib/jobs/create-job.js.map +1 -1
  17. package/lib/jobs/index.js +5 -1
  18. package/lib/jobs/index.js.map +1 -1
  19. package/lib/lighthouse/index.js +5 -1
  20. package/lib/lighthouse/index.js.map +1 -1
  21. package/lib/report/create.js +5 -1
  22. package/lib/report/create.js.map +1 -1
  23. package/lib/report/index.js +5 -1
  24. package/lib/report/index.js.map +1 -1
  25. package/lib/transformers/index.js +5 -1
  26. package/lib/transformers/index.js.map +1 -1
  27. package/lib/utils/component-links.js +15 -1
  28. package/lib/utils/component-links.js.map +1 -1
  29. package/lib/utils/format.js +5 -1
  30. package/lib/utils/format.js.map +1 -1
  31. package/lib/utils/index.js +5 -1
  32. package/lib/utils/index.js.map +1 -1
  33. package/lib/webpack/constants.js +2 -0
  34. package/lib/webpack/constants.js.map +1 -1
  35. package/lib/webpack/extract/index.js +5 -1
  36. package/lib/webpack/extract/index.js.map +1 -1
  37. package/lib/webpack/extract/modules.js +29 -2
  38. package/lib/webpack/extract/modules.js.map +1 -1
  39. package/lib/webpack/index.js +5 -1
  40. package/lib/webpack/index.js.map +1 -1
  41. package/lib/webpack/metrics.js +14 -0
  42. package/lib/webpack/metrics.js.map +1 -1
  43. package/lib-esm/config/component-links.js +1 -0
  44. package/lib-esm/config/component-links.js.map +1 -1
  45. package/lib-esm/config/file-types.js +3 -3
  46. package/lib-esm/config/file-types.js.map +1 -1
  47. package/lib-esm/constants.js.map +1 -1
  48. package/lib-esm/i18n.js +2 -1
  49. package/lib-esm/i18n.js.map +1 -1
  50. package/lib-esm/utils/component-links.js +14 -0
  51. package/lib-esm/utils/component-links.js.map +1 -1
  52. package/lib-esm/webpack/constants.js +2 -0
  53. package/lib-esm/webpack/constants.js.map +1 -1
  54. package/lib-esm/webpack/extract/modules.js +29 -2
  55. package/lib-esm/webpack/extract/modules.js.map +1 -1
  56. package/lib-esm/webpack/metrics.js +14 -0
  57. package/lib-esm/webpack/metrics.js.map +1 -1
  58. package/package.json +16 -16
  59. package/src/config/component-links.js +1 -0
  60. package/src/config/file-types.js +3 -3
  61. package/src/constants.ts +3 -0
  62. package/src/i18n.js +2 -1
  63. package/src/utils/component-links.js +23 -7
  64. package/src/webpack/constants.ts +38 -28
  65. package/src/webpack/extract/modules.ts +35 -4
  66. package/src/webpack/metrics.ts +14 -0
  67. package/lib/webpack/extract/budgets-insights.js +0 -39
  68. package/lib/webpack/extract/budgets-insights.js.map +0 -1
  69. package/lib-esm/webpack/extract/budgets-insights.js +0 -33
  70. package/lib-esm/webpack/extract/budgets-insights.js.map +0 -1
  71. package/src/webpack/extract/budgets-insights.ts +0 -73
  72. package/types/browsertime/compare.d.ts +0 -1
  73. package/types/browsertime/constants.d.ts +0 -1
  74. package/types/browsertime/extract.d.ts +0 -6
  75. package/types/browsertime/filter.d.ts +0 -1
  76. package/types/browsertime/index.d.ts +0 -6
  77. package/types/browsertime/metrics.d.ts +0 -107
  78. package/types/browsertime/selectors.d.ts +0 -1
  79. package/types/config/component-links.d.ts +0 -34
  80. package/types/config/delta.d.ts +0 -9
  81. package/types/config/file-types.d.ts +0 -45
  82. package/types/config/index.d.ts +0 -11
  83. package/types/config/insights.d.ts +0 -4
  84. package/types/config/metrics.d.ts +0 -35
  85. package/types/constants.d.ts +0 -162
  86. package/types/i18n.d.ts +0 -15
  87. package/types/index.d.ts +0 -7
  88. package/types/jobs/create-job.d.ts +0 -1
  89. package/types/jobs/create-jobs.d.ts +0 -1
  90. package/types/jobs/create-summary.d.ts +0 -1
  91. package/types/jobs/index.d.ts +0 -2
  92. package/types/lighthouse/compare.d.ts +0 -1
  93. package/types/lighthouse/constants.d.ts +0 -1
  94. package/types/lighthouse/extract/audits.d.ts +0 -6
  95. package/types/lighthouse/extract/category-scores.d.ts +0 -6
  96. package/types/lighthouse/extract/index.d.ts +0 -1
  97. package/types/lighthouse/extract/score-category-scores.d.ts +0 -10
  98. package/types/lighthouse/filter.d.ts +0 -1
  99. package/types/lighthouse/index.d.ts +0 -6
  100. package/types/lighthouse/metrics.d.ts +0 -65
  101. package/types/lighthouse/selectors.d.ts +0 -1
  102. package/types/polyfills.d.ts +0 -1
  103. package/types/report/add-row-metric-data.d.ts +0 -8
  104. package/types/report/compare-metrics.d.ts +0 -2
  105. package/types/report/create.d.ts +0 -14
  106. package/types/report/get-metric-changed.d.ts +0 -2
  107. package/types/report/index.d.ts +0 -5
  108. package/types/report/merge-metrics-by-key.d.ts +0 -4
  109. package/types/report/types.d.ts +0 -8
  110. package/types/transformers/budgets-insights.d.ts +0 -36
  111. package/types/transformers/index.d.ts +0 -1
  112. package/types/utils/component-links.d.ts +0 -179
  113. package/types/utils/date.d.ts +0 -2
  114. package/types/utils/delta.d.ts +0 -6
  115. package/types/utils/file-types.d.ts +0 -4
  116. package/types/utils/format.d.ts +0 -5
  117. package/types/utils/index.d.ts +0 -6
  118. package/types/utils/metrics.d.ts +0 -3
  119. package/types/webpack/compare.d.ts +0 -14
  120. package/types/webpack/constants.d.ts +0 -31
  121. package/types/webpack/extract/assets-cache-invalidation.d.ts +0 -7
  122. package/types/webpack/extract/assets-chunk-count.d.ts +0 -7
  123. package/types/webpack/extract/assets-count.d.ts +0 -7
  124. package/types/webpack/extract/assets-size-total-insight.d.ts +0 -12
  125. package/types/webpack/extract/assets-size.d.ts +0 -11
  126. package/types/webpack/extract/assets.d.ts +0 -8
  127. package/types/webpack/extract/budgets-insights.d.ts +0 -22
  128. package/types/webpack/extract/index.d.ts +0 -1
  129. package/types/webpack/extract/meta.d.ts +0 -6
  130. package/types/webpack/extract/modules-count.d.ts +0 -7
  131. package/types/webpack/extract/modules-packages-count.d.ts +0 -7
  132. package/types/webpack/extract/modules-packages-duplicate.d.ts +0 -21
  133. package/types/webpack/extract/modules-packages.d.ts +0 -7
  134. package/types/webpack/extract/modules.d.ts +0 -2
  135. package/types/webpack/index.d.ts +0 -8
  136. package/types/webpack/metrics.d.ts +0 -102
  137. package/types/webpack/selectors.d.ts +0 -41
  138. package/types/webpack/utils.d.ts +0 -8
@@ -1 +0,0 @@
1
- export function filter(source: Object): any;
@@ -1,6 +0,0 @@
1
- export * from "./compare";
2
- export * from "./constants";
3
- export * from "./extract";
4
- export * from "./filter";
5
- export * from "./metrics";
6
- export * from "./selectors";
@@ -1,65 +0,0 @@
1
- export namespace metrics {
2
- namespace score {
3
- export const label: string;
4
- export { METRIC_TYPE_SCORE as type };
5
- }
6
- namespace performanceScore {
7
- const label_1: string;
8
- export { label_1 as label };
9
- export { METRIC_TYPE_SCORE as type };
10
- }
11
- namespace accessibilityScore {
12
- const label_2: string;
13
- export { label_2 as label };
14
- export { METRIC_TYPE_SCORE as type };
15
- }
16
- namespace bestPracticesScore {
17
- const label_3: string;
18
- export { label_3 as label };
19
- export { METRIC_TYPE_SCORE as type };
20
- }
21
- namespace seoScore {
22
- const label_4: string;
23
- export { label_4 as label };
24
- export { METRIC_TYPE_SCORE as type };
25
- }
26
- namespace pwaScore {
27
- const label_5: string;
28
- export { label_5 as label };
29
- export { METRIC_TYPE_SCORE as type };
30
- }
31
- namespace speedIndex {
32
- const label_6: string;
33
- export { label_6 as label };
34
- export { METRIC_TYPE_DURATION as type };
35
- }
36
- namespace firstMeaningfulPaint {
37
- const label_7: string;
38
- export { label_7 as label };
39
- export { METRIC_TYPE_DURATION as type };
40
- }
41
- namespace timeToFirstByte {
42
- const label_8: string;
43
- export { label_8 as label };
44
- export { METRIC_TYPE_DURATION as type };
45
- }
46
- namespace firstInteractive {
47
- const label_9: string;
48
- export { label_9 as label };
49
- export { METRIC_TYPE_DURATION as type };
50
- }
51
- namespace totalByteWeight {
52
- const label_10: string;
53
- export { label_10 as label };
54
- export { METRIC_TYPE_FILE_SIZE as type };
55
- }
56
- namespace domSize {
57
- const label_11: string;
58
- export { label_11 as label };
59
- export { METRIC_TYPE_NUMERIC as type };
60
- }
61
- }
62
- import { METRIC_TYPE_SCORE } from "../config/metrics";
63
- import { METRIC_TYPE_DURATION } from "../config/metrics";
64
- import { METRIC_TYPE_FILE_SIZE } from "../config/metrics";
65
- import { METRIC_TYPE_NUMERIC } from "../config/metrics";
@@ -1 +0,0 @@
1
- export function selectors(job: any): {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,8 +0,0 @@
1
- import * as types from './types';
2
- export declare const getAddRowMetricData: (metricType?: string | undefined) => (row: types.ReportRow) => {
3
- biggerIsBetter: any;
4
- label: any;
5
- changed: boolean;
6
- runs: any[];
7
- key: string;
8
- };
@@ -1,2 +0,0 @@
1
- import * as types from './types';
2
- export declare const compareMetrics: (jobs: Array<any>, selectMetrics: (job: any) => any, metricType: string, rowTransformers?: ((row: types.ReportRow) => types.ReportRow)[] | undefined) => types.ReportRow[];
@@ -1,14 +0,0 @@
1
- export declare const createReport: (jobs: Array<any>) => {
2
- constructor: Function;
3
- toString(): string;
4
- toLocaleString(): string;
5
- valueOf(): Object;
6
- hasOwnProperty(v: PropertyKey): boolean;
7
- isPrototypeOf(v: Object): boolean;
8
- propertyIsEnumerable(v: PropertyKey): boolean;
9
- insights?: any;
10
- createdAt: string;
11
- version: string;
12
- runs: any[];
13
- summary: {};
14
- };
@@ -1,2 +0,0 @@
1
- import * as types from './types';
2
- export declare const getMetricChanged: (runs: Array<types.MetricValue | null>) => boolean;
@@ -1,5 +0,0 @@
1
- export * from "./add-row-metric-data";
2
- export * from "./compare-metrics";
3
- export * from "./create";
4
- export * from "./get-metric-changed";
5
- export * from "./merge-metrics-by-key";
@@ -1,4 +0,0 @@
1
- import * as types from './types';
2
- declare type RunMetrics = Record<string, types.MetricValue>;
3
- export declare const mergeMetricsByKey: (runs: Array<RunMetrics>, rowTransformers?: ((row: types.ReportRow) => types.ReportRow)[] | undefined) => Array<types.ReportRow>;
4
- export {};
@@ -1,8 +0,0 @@
1
- export interface MetricValue {
2
- value: number;
3
- name?: string;
4
- }
5
- export interface ReportRow {
6
- key: string;
7
- runs: Array<MetricValue | null>;
8
- }
@@ -1,36 +0,0 @@
1
- import { InsightType } from '../constants';
2
- interface OptionBudgetMetric {
3
- metric: string;
4
- value: number;
5
- }
6
- interface Options {
7
- budgets?: Array<OptionBudgetMetric>;
8
- }
9
- interface BudgetInsight {
10
- currentValue: number;
11
- budgetValue: number;
12
- failed: boolean;
13
- }
14
- interface BudgetInsightInfo {
15
- type: InsightType;
16
- message: {
17
- template: string;
18
- data: Record<string, unknown>;
19
- };
20
- source: {
21
- metricId: string;
22
- budgetInsight: BudgetInsight;
23
- };
24
- }
25
- interface BudgetInsights {
26
- [metricId: string]: BudgetInsight;
27
- }
28
- interface BudgetsInsightsOutput {
29
- insights: {
30
- budgets: BudgetInsights;
31
- };
32
- }
33
- export declare const getExtract: (source: string) => (_: unknown, currentExtractedData: any, __: unknown, options?: Options) => BudgetsInsightsOutput | null;
34
- export declare const INFO_MESSAGE_TEMPLATE = "<%= metricLabel %> value (<%= currentValue %>) is <%= diffLabel %> <%= budgetValue %> budget";
35
- export declare const getInfo: (globalMetricId: string, budgetInsight: BudgetInsight) => BudgetInsightInfo;
36
- export {};
@@ -1 +0,0 @@
1
- export * as budgetInsights from './budgets-insights';
@@ -1,179 +0,0 @@
1
- export function getAssetFileTypeFilters(value?: boolean): {};
2
- export function getAssetEntryTypeFilters(value?: boolean): {};
3
- export function getModuleSourceTypeFilters(value?: boolean): {
4
- [x: string]: boolean;
5
- };
6
- export function getModuleChunkFilters(chunkIds: any, value: any): any;
7
- export function getModuleFileTypeFilters(value?: boolean): {};
8
- export namespace TOTALS {
9
- const section: string;
10
- const title: string;
11
- }
12
- export namespace BUNDLE_ASSETS_INITIAL_JS {
13
- const section_1: string;
14
- export { section_1 as section };
15
- const title_1: string;
16
- export { title_1 as title };
17
- export const params: {
18
- [x: string]: {
19
- filters: {};
20
- };
21
- };
22
- }
23
- export namespace BUNDLE_ASSETS_INITIAL_CSS {
24
- const section_2: string;
25
- export { section_2 as section };
26
- const title_2: string;
27
- export { title_2 as title };
28
- const params_1: {
29
- [x: string]: {
30
- filters: {};
31
- };
32
- };
33
- export { params_1 as params };
34
- }
35
- export namespace BUNDLE_ASSETS_CACHE_INVALIDATION {
36
- const section_3: string;
37
- export { section_3 as section };
38
- const title_3: string;
39
- export { title_3 as title };
40
- const params_2: {
41
- [x: string]: {
42
- filters: {
43
- [x: string]: boolean;
44
- };
45
- };
46
- };
47
- export { params_2 as params };
48
- }
49
- export namespace BUNDLE_ASSETS_COUNT {
50
- const section_4: string;
51
- export { section_4 as section };
52
- const title_4: string;
53
- export { title_4 as title };
54
- const params_3: {
55
- [x: string]: {
56
- filters: {
57
- [x: string]: boolean;
58
- };
59
- };
60
- };
61
- export { params_3 as params };
62
- }
63
- export namespace BUNDLE_ASSETS_CHUNK_COUNT {
64
- const section_5: string;
65
- export { section_5 as section };
66
- const title_5: string;
67
- export { title_5 as title };
68
- const params_4: {
69
- [x: string]: {
70
- filters: {};
71
- };
72
- };
73
- export { params_4 as params };
74
- }
75
- export namespace BUNDLE_MODULES {
76
- const section_6: string;
77
- export { section_6 as section };
78
- const title_6: string;
79
- export { title_6 as title };
80
- const params_5: {
81
- [x: string]: {
82
- filters: {
83
- [x: string]: boolean;
84
- };
85
- };
86
- };
87
- export { params_5 as params };
88
- }
89
- export function getBundleModulesBySearch(search: any): {
90
- section: string;
91
- title: string;
92
- params: {
93
- [x: string]: {
94
- search: any;
95
- filters: {
96
- [x: string]: boolean;
97
- };
98
- };
99
- };
100
- };
101
- export function getBundleModulesByChunk(chunkIds: any, chunkId: any, fileType?: string): {
102
- section: string;
103
- title: string;
104
- params: {
105
- [x: string]: {
106
- filters: any;
107
- };
108
- };
109
- };
110
- export namespace BUNLDE_PACKAGES_COUNT {
111
- const section_7: string;
112
- export { section_7 as section };
113
- const title_7: string;
114
- export { title_7 as title };
115
- const params_6: {
116
- [x: string]: {
117
- filters: {
118
- [x: string]: boolean;
119
- };
120
- };
121
- };
122
- export { params_6 as params };
123
- }
124
- export namespace BUNDLE_PACKAGES_DUPLICATE {
125
- const section_8: string;
126
- export { section_8 as section };
127
- const title_8: string;
128
- export { title_8 as title };
129
- const params_7: {
130
- [x: string]: {
131
- filters: {
132
- [x: string]: boolean;
133
- };
134
- };
135
- };
136
- export { params_7 as params };
137
- }
138
- export function getBundleAssetsFileTypeComponentLink(fileType: any, label: any): {
139
- section: string;
140
- title: string;
141
- params: {
142
- [x: string]: {
143
- filters: {};
144
- };
145
- };
146
- };
147
- export function getBundlePackagesByNameComponentLink(search: any): {
148
- section: string;
149
- title: string;
150
- params: {
151
- [x: string]: {
152
- search: any;
153
- filters: {
154
- [x: string]: boolean;
155
- };
156
- };
157
- };
158
- };
159
- export function getComponentStateQueryString(params?: {}): string;
160
- export const METRIC_COMPONENT_LINKS: Map<string, {
161
- link: {
162
- section: string;
163
- title: string;
164
- };
165
- showDelta?: undefined;
166
- } | {
167
- link: {
168
- section: string;
169
- title: string;
170
- params: {
171
- [x: string]: {
172
- filters: {
173
- [x: string]: boolean;
174
- };
175
- };
176
- };
177
- };
178
- showDelta: boolean;
179
- }>;
@@ -1,2 +0,0 @@
1
- export function formatDate(value: any): string;
2
- export function formatTime(value: any): string;
@@ -1,6 +0,0 @@
1
- export function getDelta(baseline: any, current: any): {
2
- delta: any;
3
- deltaPercentage: number;
4
- };
5
- export function formatDelta(value: number, formatter: Function): string;
6
- export function getDeltaType(deltaValue: number, biggerIsBetter: boolean): string;
@@ -1,4 +0,0 @@
1
- export function getFilenameFileType(filename: string, patterns: Object): string;
2
- export function getFileType(filename: any): string;
3
- export function getModuleSourceFileType(moduleSourceFilename: string): string;
4
- export function getModuleFileType(moduleFilename: string): string;
@@ -1,5 +0,0 @@
1
- export function formatFileSize(val: any): string;
2
- export function formatDuration(val: any): string;
3
- export function formatNumber(val: any): string;
4
- export function formatCommit(commitSha: any): any;
5
- export function formatPercentage(val: any): string;
@@ -1,6 +0,0 @@
1
- export * from "./component-links";
2
- export * from "./delta";
3
- export * from "./date";
4
- export * from "./file-types";
5
- export * from "./format";
6
- export * from "./metrics";
@@ -1,3 +0,0 @@
1
- export function createGetMetricType(metrics: Object): Function;
2
- export const getGlobalMetricType: Function;
3
- export function getMetricRunInfo(metric: any, currentValue: number, baselineValue: number): any;
@@ -1,14 +0,0 @@
1
- export namespace compareBySection {
2
- export { compareStats as stats };
3
- export { compareSizes as sizes };
4
- export { compareAssets as assets };
5
- export { compareModules as modules };
6
- export { comparePackages as packages };
7
- }
8
- export function compare(jobs: Object[]): Object;
9
- declare function compareStats(jobs: Object[], rowTransformers?: Function[] | undefined): Object[];
10
- declare function compareSizes(jobs: Object[], rowTransformers?: Function[] | undefined): Object[];
11
- declare function compareAssets(jobs: Object[], rowTransformers?: Function[] | undefined): Object[];
12
- declare function compareModules(jobs: Object[], rowTransformers?: Function[] | undefined): Object[];
13
- declare function comparePackages(jobs: Object[], rowTransformers?: Function[] | undefined): Object[];
14
- export {};
@@ -1,31 +0,0 @@
1
- export declare const SECTION_WEBPACK_STATS = "stats";
2
- export declare const SECTION_WEBPACK_SIZES = "sizes";
3
- export declare const SECTION_WEBPACK_ASSETS = "assets";
4
- export declare const SECTION_WEBPACK_MODULES = "modules";
5
- export declare const SECTION_WEBPACK_PACKAGES = "packages";
6
- export declare const SECTIONS: string[];
7
- export declare enum MetricId {
8
- BundleSize = "totalSizeByTypeALL",
9
- TotalInitialSizeJS = "totalInitialSizeJS",
10
- TotalInitialSizeCSS = "totalInitialSizeCSS",
11
- CacheInvalidation = "cacheInvalidation",
12
- ModuleName = "moduleCount",
13
- ChunkCount = "chunkCount",
14
- AssetCount = "assetCount",
15
- PackageCount = "packageCount",
16
- DuplicatePackagesCount = "duplicatePackagesCount"
17
- }
18
- export declare const SIZE_BY_TYPE_METRIC_ID_ALL = "ALL";
19
- export declare const SIZE_BY_TYPE_METRIC_ID_PREFIX = "totalSizeByType";
20
- export declare enum SizeByTypeMetricId {
21
- JS = "totalSizeByTypeJS",
22
- CSS = "totalSizeByTypeCSS",
23
- IMG = "totalSizeByTypeIMG",
24
- Media = "totalSizeByTypeMEDIA",
25
- Font = "totalSizeByTypeFONT",
26
- HTML = "totalSizeByTypeHTML",
27
- Other = "totalSizeByTypeOTHER"
28
- }
29
- export declare const SUMMARY_METRIC_PATHS: MetricId[];
30
- export declare const MODULE_PATH_PACKAGES: RegExp;
31
- export declare const PACKAGE_PATH_NAME: RegExp;
@@ -1,7 +0,0 @@
1
- export function extractAssetsCacheInvalidation(webpackStats: any, currentExtractedData: any, baselineBundleStats: any): {
2
- metrics: {
3
- cacheInvalidation: {
4
- value: number;
5
- };
6
- };
7
- };
@@ -1,7 +0,0 @@
1
- export function extractAssetsChunkCount(webpackStats: any, currentExtractedData?: {}): {
2
- metrics: {
3
- chunkCount: {
4
- value: number;
5
- };
6
- };
7
- };
@@ -1,7 +0,0 @@
1
- export function extractAssetsCount(webpackStats: any, currentExtractedData?: {}): {
2
- metrics: {
3
- assetCount: {
4
- value: number;
5
- };
6
- };
7
- };
@@ -1,12 +0,0 @@
1
- export function extractAssetsSizeTotalInsight(webpackStats: any, currentExtractedData: any, baselineBundleStats: any): {
2
- insights: {
3
- assetsSizeTotal: {
4
- type: string;
5
- data: {
6
- text: string;
7
- md: string;
8
- info: any;
9
- };
10
- };
11
- };
12
- };
@@ -1,11 +0,0 @@
1
- export function extractAssetsSize(webpackStats: any, currentExtractedData: any): {
2
- metrics: {
3
- sizes: any;
4
- totalInitialSizeCSS: {
5
- value: number;
6
- };
7
- totalInitialSizeJS: {
8
- value: number;
9
- };
10
- };
11
- };
@@ -1,8 +0,0 @@
1
- export function extractAssets(webpackStats: any): {
2
- meta?: {
3
- chunks: any;
4
- } | undefined;
5
- metrics: {
6
- assets: any;
7
- };
8
- };
@@ -1,22 +0,0 @@
1
- interface OptionBudgetMetric {
2
- metric: string;
3
- value: number;
4
- }
5
- interface Options {
6
- budgets?: Array<OptionBudgetMetric>;
7
- }
8
- interface BudgetInsight {
9
- currentValue: number;
10
- budgetValue: number;
11
- failed: boolean;
12
- }
13
- interface BudgetsInsights {
14
- [metricId: string]: BudgetInsight;
15
- }
16
- interface ExtractBudgetsInsights {
17
- insights: {
18
- budgets: BudgetsInsights;
19
- };
20
- }
21
- export default function extractBudgetsInsights(_: unknown, currentExtractedData: any, __: unknown, options?: Options): ExtractBudgetsInsights | null;
22
- export {};
@@ -1 +0,0 @@
1
- export function extract(webpackStats: any, baseline: any, options: any): {};
@@ -1,6 +0,0 @@
1
- export function extractMeta(webpackStats: any): {
2
- meta: {
3
- builtAt: string;
4
- hash: any;
5
- };
6
- };
@@ -1,7 +0,0 @@
1
- export function extractModulesCount(webpackStats: any, currentExtractedData?: {}): {
2
- metrics: {
3
- moduleCount: {
4
- value: number;
5
- };
6
- };
7
- };
@@ -1,7 +0,0 @@
1
- export function extractModulesPackagesCount(webpackStats: any, currentExtractedData: any): {
2
- metrics: {
3
- packageCount: {
4
- value: number;
5
- };
6
- };
7
- };
@@ -1,21 +0,0 @@
1
- export function extractModulesPackagesDuplicate(webpackStats: any, currentExtractedData: any): {
2
- metrics: {
3
- duplicatePackagesCount: {
4
- value: any;
5
- };
6
- };
7
- insights?: undefined;
8
- } | {
9
- insights: {
10
- duplicatePackages: {
11
- type: InsightType;
12
- data: {};
13
- };
14
- };
15
- metrics: {
16
- duplicatePackagesCount: {
17
- value: any;
18
- };
19
- };
20
- };
21
- import { InsightType } from "../../constants";
@@ -1,7 +0,0 @@
1
- import { WebpackMetricsModules, WebpackMetricsPackages } from '../../constants';
2
- export declare const getPackageMetaFromModulePath: (modulePath: string) => {
3
- id: string;
4
- name: unknown;
5
- path: string;
6
- } | null;
7
- export declare const extractModulesPackages: (webpackStats?: any, currentExtractedData?: WebpackMetricsModules | undefined) => WebpackMetricsPackages;
@@ -1,2 +0,0 @@
1
- import { WebpackMetricsModules } from '../../constants';
2
- export declare const extractModules: (webpackStats?: any) => WebpackMetricsModules;
@@ -1,8 +0,0 @@
1
- export { default as filter } from "@bundle-stats/plugin-webpack-filter";
2
- export { default as validate } from "@bundle-stats/plugin-webpack-validate";
3
- export * from "./compare";
4
- export * from "./constants";
5
- export * from "./extract";
6
- export * from "./metrics";
7
- export * from "./selectors";
8
- export * from "./utils";