@bundle-stats/utils 3.2.4 → 3.2.5-alpha.20
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.
- package/CHANGELOG.md +72 -0
- package/package.json +6 -6
- package/types/browsertime/compare.d.ts +0 -1
- package/types/browsertime/constants.d.ts +0 -1
- package/types/browsertime/extract.d.ts +0 -6
- package/types/browsertime/filter.d.ts +0 -1
- package/types/browsertime/index.d.ts +0 -6
- package/types/browsertime/metrics.d.ts +0 -107
- package/types/browsertime/selectors.d.ts +0 -1
- package/types/config/component-links.d.ts +0 -34
- package/types/config/delta.d.ts +0 -9
- package/types/config/file-types.d.ts +0 -45
- package/types/config/index.d.ts +0 -11
- package/types/config/insights.d.ts +0 -4
- package/types/config/metrics.d.ts +0 -35
- package/types/constants.d.ts +0 -156
- package/types/i18n.d.ts +0 -15
- package/types/index.d.ts +0 -5
- package/types/jobs/create-job.d.ts +0 -1
- package/types/jobs/create-jobs.d.ts +0 -1
- package/types/jobs/create-summary.d.ts +0 -1
- package/types/jobs/index.d.ts +0 -2
- package/types/lighthouse/compare.d.ts +0 -1
- package/types/lighthouse/constants.d.ts +0 -1
- package/types/lighthouse/extract/audits.d.ts +0 -6
- package/types/lighthouse/extract/category-scores.d.ts +0 -6
- package/types/lighthouse/extract/index.d.ts +0 -1
- package/types/lighthouse/extract/score-category-scores.d.ts +0 -10
- package/types/lighthouse/filter.d.ts +0 -1
- package/types/lighthouse/index.d.ts +0 -6
- package/types/lighthouse/metrics.d.ts +0 -65
- package/types/lighthouse/selectors.d.ts +0 -1
- package/types/polyfills.d.ts +0 -1
- package/types/report/add-row-metric-data.d.ts +0 -8
- package/types/report/compare-metrics.d.ts +0 -2
- package/types/report/create.d.ts +0 -14
- package/types/report/get-metric-changed.d.ts +0 -2
- package/types/report/index.d.ts +0 -5
- package/types/report/merge-metrics-by-key.d.ts +0 -4
- package/types/report/types.d.ts +0 -8
- package/types/utils/component-links.d.ts +0 -179
- package/types/utils/date.d.ts +0 -2
- package/types/utils/delta.d.ts +0 -6
- package/types/utils/file-types.d.ts +0 -4
- package/types/utils/format.d.ts +0 -5
- package/types/utils/index.d.ts +0 -6
- package/types/utils/metrics.d.ts +0 -3
- package/types/webpack/compare.d.ts +0 -14
- package/types/webpack/constants.d.ts +0 -9
- package/types/webpack/extract/assets-cache-invalidation.d.ts +0 -7
- package/types/webpack/extract/assets-chunk-count.d.ts +0 -7
- package/types/webpack/extract/assets-count.d.ts +0 -7
- package/types/webpack/extract/assets-size-total-insight.d.ts +0 -12
- package/types/webpack/extract/assets-size.d.ts +0 -11
- package/types/webpack/extract/assets.d.ts +0 -8
- package/types/webpack/extract/index.d.ts +0 -1
- package/types/webpack/extract/meta.d.ts +0 -6
- package/types/webpack/extract/modules-count.d.ts +0 -7
- package/types/webpack/extract/modules-packages-count.d.ts +0 -7
- package/types/webpack/extract/modules-packages-duplicate.d.ts +0 -20
- package/types/webpack/extract/modules-packages.d.ts +0 -7
- package/types/webpack/extract/modules.d.ts +0 -2
- package/types/webpack/index.d.ts +0 -8
- package/types/webpack/metrics.d.ts +0 -131
- package/types/webpack/selectors.d.ts +0 -41
- package/types/webpack/utils.d.ts +0 -8
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,78 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.2.5-alpha.20](https://github.com/relative-ci/bundle-stats/compare/v3.2.5-alpha.19...v3.2.5-alpha.20) (2022-01-29)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @bundle-stats/utils
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [3.2.5-alpha.19](https://github.com/relative-ci/bundle-stats/compare/v3.2.5-alpha.18...v3.2.5-alpha.19) (2022-01-27)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @bundle-stats/utils
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [3.2.5-alpha.18](https://github.com/relative-ci/bundle-stats/compare/v3.2.5-alpha.17...v3.2.5-alpha.18) (2022-01-27)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @bundle-stats/utils
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [3.2.5-alpha.17](https://github.com/relative-ci/bundle-stats/compare/v3.2.5-alpha.16...v3.2.5-alpha.17) (2022-01-26)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @bundle-stats/utils
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## [3.2.5-alpha.16](https://github.com/relative-ci/bundle-stats/compare/v3.2.5-alpha.15...v3.2.5-alpha.16) (2022-01-26)
|
|
39
|
+
|
|
40
|
+
**Note:** Version bump only for package @bundle-stats/utils
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
## [3.2.5-alpha.15](https://github.com/relative-ci/bundle-stats/compare/v3.2.5-alpha.14...v3.2.5-alpha.15) (2022-01-26)
|
|
47
|
+
|
|
48
|
+
**Note:** Version bump only for package @bundle-stats/utils
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
## [3.2.5-alpha.14](https://github.com/relative-ci/bundle-stats/compare/v3.2.5-alpha.13...v3.2.5-alpha.14) (2022-01-26)
|
|
55
|
+
|
|
56
|
+
**Note:** Version bump only for package @bundle-stats/utils
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
## [3.2.5-alpha.13](https://github.com/relative-ci/bundle-stats/compare/v3.2.5-alpha.12...v3.2.5-alpha.13) (2022-01-26)
|
|
63
|
+
|
|
64
|
+
**Note:** Version bump only for package @bundle-stats/utils
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
## [3.2.5-alpha.12](https://github.com/relative-ci/bundle-stats/compare/v3.2.4...v3.2.5-alpha.12) (2022-01-26)
|
|
71
|
+
|
|
72
|
+
**Note:** Version bump only for package @bundle-stats/utils
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
6
78
|
## [3.2.4](https://github.com/relative-ci/bundle-stats/compare/v3.2.3...v3.2.4) (2022-01-17)
|
|
7
79
|
|
|
8
80
|
**Note:** Version bump only for package @bundle-stats/utils
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bundle-stats/utils",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.5-alpha.20",
|
|
4
4
|
"description": "BundleStats utils",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib-esm/index.js",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
},
|
|
36
36
|
"homepage": "https://github.com/relative-ci/bundle-stats/blob/master/packages/utils#readme",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@bundle-stats/plugin-webpack-filter": "^3.2.
|
|
39
|
-
"@bundle-stats/plugin-webpack-validate": "^3.2.
|
|
38
|
+
"@bundle-stats/plugin-webpack-filter": "^3.2.5-alpha.20",
|
|
39
|
+
"@bundle-stats/plugin-webpack-validate": "^3.2.5-alpha.20",
|
|
40
40
|
"convert-units": "3.0.0-beta.2",
|
|
41
41
|
"query-string": "7.1.0",
|
|
42
42
|
"serialize-query-params": "1.3.6"
|
|
@@ -51,12 +51,12 @@
|
|
|
51
51
|
"lodash": "4.17.21",
|
|
52
52
|
"regenerator-runtime": "0.13.9",
|
|
53
53
|
"rimraf": "3.0.2",
|
|
54
|
-
"ts-jest": "27.1.
|
|
55
|
-
"typescript": "4.5.
|
|
54
|
+
"ts-jest": "27.1.3",
|
|
55
|
+
"typescript": "4.5.5"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"core-js": "3.20.2",
|
|
59
59
|
"lodash": "4.17.21"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "c08619f57f74e5f74aa57d0ba15d3c83bb8bfd6e"
|
|
62
62
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function compare(jobs: any): import("../report/types").ReportRow[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const SUMMARY_METRIC_PATHS: string[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function filter(browsertimeSource: Object): any;
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
export namespace metrics {
|
|
2
|
-
namespace firstPaint {
|
|
3
|
-
export const label: string;
|
|
4
|
-
export { METRIC_TYPE_DURATION as type };
|
|
5
|
-
}
|
|
6
|
-
namespace fullyLoaded {
|
|
7
|
-
const label_1: string;
|
|
8
|
-
export { label_1 as label };
|
|
9
|
-
export { METRIC_TYPE_DURATION as type };
|
|
10
|
-
}
|
|
11
|
-
namespace backEndTime {
|
|
12
|
-
const label_2: string;
|
|
13
|
-
export { label_2 as label };
|
|
14
|
-
export { METRIC_TYPE_DURATION as type };
|
|
15
|
-
}
|
|
16
|
-
namespace domContentLoadedTime {
|
|
17
|
-
const label_3: string;
|
|
18
|
-
export { label_3 as label };
|
|
19
|
-
export { METRIC_TYPE_DURATION as type };
|
|
20
|
-
}
|
|
21
|
-
namespace domInteractiveTime {
|
|
22
|
-
const label_4: string;
|
|
23
|
-
export { label_4 as label };
|
|
24
|
-
export { METRIC_TYPE_DURATION as type };
|
|
25
|
-
}
|
|
26
|
-
namespace domainLookupTime {
|
|
27
|
-
const label_5: string;
|
|
28
|
-
export { label_5 as label };
|
|
29
|
-
export { METRIC_TYPE_DURATION as type };
|
|
30
|
-
}
|
|
31
|
-
namespace frontEndTime {
|
|
32
|
-
const label_6: string;
|
|
33
|
-
export { label_6 as label };
|
|
34
|
-
export { METRIC_TYPE_DURATION as type };
|
|
35
|
-
}
|
|
36
|
-
namespace pageDownloadTime {
|
|
37
|
-
const label_7: string;
|
|
38
|
-
export { label_7 as label };
|
|
39
|
-
export { METRIC_TYPE_DURATION as type };
|
|
40
|
-
}
|
|
41
|
-
namespace pageLoadTime {
|
|
42
|
-
const label_8: string;
|
|
43
|
-
export { label_8 as label };
|
|
44
|
-
export { METRIC_TYPE_DURATION as type };
|
|
45
|
-
}
|
|
46
|
-
namespace redirectionTime {
|
|
47
|
-
const label_9: string;
|
|
48
|
-
export { label_9 as label };
|
|
49
|
-
export { METRIC_TYPE_DURATION as type };
|
|
50
|
-
}
|
|
51
|
-
namespace serverConnectionTime {
|
|
52
|
-
const label_10: string;
|
|
53
|
-
export { label_10 as label };
|
|
54
|
-
export { METRIC_TYPE_DURATION as type };
|
|
55
|
-
}
|
|
56
|
-
namespace serverResponseTime {
|
|
57
|
-
const label_11: string;
|
|
58
|
-
export { label_11 as label };
|
|
59
|
-
export { METRIC_TYPE_DURATION as type };
|
|
60
|
-
}
|
|
61
|
-
namespace firstContentfulPaint {
|
|
62
|
-
const label_12: string;
|
|
63
|
-
export { label_12 as label };
|
|
64
|
-
export { METRIC_TYPE_DURATION as type };
|
|
65
|
-
}
|
|
66
|
-
namespace rumSpeedIndex {
|
|
67
|
-
const label_13: string;
|
|
68
|
-
export { label_13 as label };
|
|
69
|
-
export { METRIC_TYPE_DURATION as type };
|
|
70
|
-
}
|
|
71
|
-
namespace firstVisualChange {
|
|
72
|
-
const label_14: string;
|
|
73
|
-
export { label_14 as label };
|
|
74
|
-
export { METRIC_TYPE_DURATION as type };
|
|
75
|
-
}
|
|
76
|
-
namespace lastVisualChange {
|
|
77
|
-
const label_15: string;
|
|
78
|
-
export { label_15 as label };
|
|
79
|
-
export { METRIC_TYPE_DURATION as type };
|
|
80
|
-
}
|
|
81
|
-
namespace perceptualSpeedIndex {
|
|
82
|
-
const label_16: string;
|
|
83
|
-
export { label_16 as label };
|
|
84
|
-
export { METRIC_TYPE_DURATION as type };
|
|
85
|
-
}
|
|
86
|
-
namespace speedIndex {
|
|
87
|
-
const label_17: string;
|
|
88
|
-
export { label_17 as label };
|
|
89
|
-
export { METRIC_TYPE_DURATION as type };
|
|
90
|
-
}
|
|
91
|
-
namespace visualComplete85 {
|
|
92
|
-
const label_18: string;
|
|
93
|
-
export { label_18 as label };
|
|
94
|
-
export { METRIC_TYPE_DURATION as type };
|
|
95
|
-
}
|
|
96
|
-
namespace visualComplete95 {
|
|
97
|
-
const label_19: string;
|
|
98
|
-
export { label_19 as label };
|
|
99
|
-
export { METRIC_TYPE_DURATION as type };
|
|
100
|
-
}
|
|
101
|
-
namespace visualComplete99 {
|
|
102
|
-
const label_20: string;
|
|
103
|
-
export { label_20 as label };
|
|
104
|
-
export { METRIC_TYPE_DURATION as type };
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
import { METRIC_TYPE_DURATION } from "../config/metrics";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function selectors(job: any): {};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export const ASSET_ENTRY_TYPE: "et";
|
|
2
|
-
export const ASSET_FILE_TYPE: "ft";
|
|
3
|
-
export const MODULE_CHUNK: "c";
|
|
4
|
-
export const MODULE_FILE_TYPE: "mft";
|
|
5
|
-
export const MODULE_SOURCE_TYPE: "mst";
|
|
6
|
-
export namespace ASSET_FILTERS {
|
|
7
|
-
const ASSET: string;
|
|
8
|
-
const CHANGED: string;
|
|
9
|
-
const ENTRY: string;
|
|
10
|
-
const INITIAL: string;
|
|
11
|
-
const CHUNK: string;
|
|
12
|
-
}
|
|
13
|
-
export namespace MODULE_FILTERS {
|
|
14
|
-
const CHANGED_1: string;
|
|
15
|
-
export { CHANGED_1 as CHANGED };
|
|
16
|
-
export const FIRST_PARTY: string;
|
|
17
|
-
export const THIRD_PARTY: string;
|
|
18
|
-
}
|
|
19
|
-
export namespace PACKAGE_FILTERS {
|
|
20
|
-
const CHANGED_2: string;
|
|
21
|
-
export { CHANGED_2 as CHANGED };
|
|
22
|
-
export const DUPLICATE: string;
|
|
23
|
-
}
|
|
24
|
-
export namespace SECTIONS {
|
|
25
|
-
const TOTALS: string;
|
|
26
|
-
const ASSETS: string;
|
|
27
|
-
const MODULES: string;
|
|
28
|
-
const PACKAGES: string;
|
|
29
|
-
}
|
|
30
|
-
export namespace COMPONENT {
|
|
31
|
-
const BUNDLE_ASSETS: string;
|
|
32
|
-
const BUNDLE_MODULES: string;
|
|
33
|
-
const BUNDLE_PACKAGES: string;
|
|
34
|
-
}
|
package/types/config/delta.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export const DELTA_TYPE_NEGATIVE: "NEGATIVE";
|
|
2
|
-
export const DELTA_TYPE_NO_CHANGE: "NO_CHANGE";
|
|
3
|
-
export const DELTA_TYPE_POSITIVE: "POSITIVE";
|
|
4
|
-
export const DELTA_TYPE_LEVEL_LOW: "LOW";
|
|
5
|
-
export const DELTA_TYPE_LEVEL_HIGH: "HIGH";
|
|
6
|
-
export const DELTA_TYPE_LOW_NEGATIVE: string;
|
|
7
|
-
export const DELTA_TYPE_HIGH_NEGATIVE: string;
|
|
8
|
-
export const DELTA_TYPE_LOW_POSITIVE: string;
|
|
9
|
-
export const DELTA_TYPE_HIGH_POSITIVE: string;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export const FILE_TYPE_CSS: "CSS";
|
|
2
|
-
export const FILE_TYPE_JS: "JS";
|
|
3
|
-
export const FILE_TYPE_IMG: "IMG";
|
|
4
|
-
export const FILE_TYPE_MEDIA: "MEDIA";
|
|
5
|
-
export const FILE_TYPE_FONT: "FONT";
|
|
6
|
-
export const FILE_TYPE_HTML: "HTML";
|
|
7
|
-
export const FILE_TYPE_OTHER: "OTHER";
|
|
8
|
-
export namespace FILE_TYPE_PATTERNS {
|
|
9
|
-
const CSS: RegExp;
|
|
10
|
-
const JS: RegExp;
|
|
11
|
-
const IMG: RegExp;
|
|
12
|
-
const MEDIA: RegExp;
|
|
13
|
-
const FONT: RegExp;
|
|
14
|
-
const HTML: RegExp;
|
|
15
|
-
}
|
|
16
|
-
export namespace FILE_TYPE_LABELS {
|
|
17
|
-
const CSS_1: string;
|
|
18
|
-
export { CSS_1 as CSS };
|
|
19
|
-
const JS_1: string;
|
|
20
|
-
export { JS_1 as JS };
|
|
21
|
-
const IMG_1: string;
|
|
22
|
-
export { IMG_1 as IMG };
|
|
23
|
-
const MEDIA_1: string;
|
|
24
|
-
export { MEDIA_1 as MEDIA };
|
|
25
|
-
const FONT_1: string;
|
|
26
|
-
export { FONT_1 as FONT };
|
|
27
|
-
const HTML_1: string;
|
|
28
|
-
export { HTML_1 as HTML };
|
|
29
|
-
export const OTHER: string;
|
|
30
|
-
}
|
|
31
|
-
export const FILE_TYPES: string[];
|
|
32
|
-
export namespace MODULE_SOURCE_PATTERNS {
|
|
33
|
-
const CSS_2: RegExp;
|
|
34
|
-
export { CSS_2 as CSS };
|
|
35
|
-
const JS_2: RegExp;
|
|
36
|
-
export { JS_2 as JS };
|
|
37
|
-
}
|
|
38
|
-
export const MODULE_SOURCE_FILE_TYPES: string[];
|
|
39
|
-
export namespace MODULE_DESTINATION_PATTERNS {
|
|
40
|
-
const CSS_3: RegExp;
|
|
41
|
-
export { CSS_3 as CSS };
|
|
42
|
-
const JS_3: RegExp;
|
|
43
|
-
export { JS_3 as JS };
|
|
44
|
-
}
|
|
45
|
-
export const MODULE_DESTINATION_FILE_TYPES: string[];
|
package/types/config/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from "./component-links";
|
|
2
|
-
export * from "./file-types";
|
|
3
|
-
export * from "./insights";
|
|
4
|
-
export * from "./metrics";
|
|
5
|
-
export * from "./delta";
|
|
6
|
-
export const PACKAGES_SEPARATOR: ":";
|
|
7
|
-
export const PACKAGE_ID_SEPARATOR: "~";
|
|
8
|
-
export const SOURCE_PATH_WEBPACK_STATS: "webpack";
|
|
9
|
-
export const SOURCE_PATH_LIGHTHOUSE: "lighthouse";
|
|
10
|
-
export const SOURCE_PATH_BROWSERTIME: "browsertime";
|
|
11
|
-
export const SOURCE_PATHS: string[];
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export const METRIC_TYPE_FILE_SIZE: "METRIC_TYPE_FILE_SIZE";
|
|
2
|
-
export const METRIC_TYPE_DURATION: "METRIC_TYPE_DURATION";
|
|
3
|
-
export const METRIC_TYPE_NUMERIC: "METRIC_TYPE_NUMERIC";
|
|
4
|
-
export const METRIC_TYPE_SCORE: "METRIC_TYPE_SCORE";
|
|
5
|
-
export const METRIC_TYPE_PERCENTAGE: "METRIC_TYPE_PERCENTAGE";
|
|
6
|
-
export namespace METRIC_TYPES {
|
|
7
|
-
namespace METRIC_TYPE_NUMERIC {
|
|
8
|
-
export const biggerIsBetter: boolean;
|
|
9
|
-
export { formatNumber as formatter };
|
|
10
|
-
}
|
|
11
|
-
namespace METRIC_TYPE_SCORE {
|
|
12
|
-
const biggerIsBetter_1: boolean;
|
|
13
|
-
export { biggerIsBetter_1 as biggerIsBetter };
|
|
14
|
-
export { formatNumber as formatter };
|
|
15
|
-
}
|
|
16
|
-
namespace METRIC_TYPE_DURATION {
|
|
17
|
-
const biggerIsBetter_2: boolean;
|
|
18
|
-
export { biggerIsBetter_2 as biggerIsBetter };
|
|
19
|
-
export { formatDuration as formatter };
|
|
20
|
-
}
|
|
21
|
-
namespace METRIC_TYPE_FILE_SIZE {
|
|
22
|
-
const biggerIsBetter_3: boolean;
|
|
23
|
-
export { biggerIsBetter_3 as biggerIsBetter };
|
|
24
|
-
export { formatFileSize as formatter };
|
|
25
|
-
}
|
|
26
|
-
namespace METRIC_TYPE_PERCENTAGE {
|
|
27
|
-
const biggerIsBetter_4: boolean;
|
|
28
|
-
export { biggerIsBetter_4 as biggerIsBetter };
|
|
29
|
-
export { formatPercentage as formatter };
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
import { formatNumber } from "../utils/format";
|
|
33
|
-
import { formatDuration } from "../utils/format";
|
|
34
|
-
import { formatFileSize } from "../utils/format";
|
|
35
|
-
import { formatPercentage } from "../utils/format";
|
package/types/constants.d.ts
DELETED
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
export declare enum MetricTypeType {
|
|
2
|
-
'METRIC_TYPE_NUMERIC' = 0,
|
|
3
|
-
'METRIC_TYPE_SCORE' = 1,
|
|
4
|
-
'METRIC_TYPE_FILE_SIZE' = 2,
|
|
5
|
-
'METRIC_TYPE_DURATION' = 3,
|
|
6
|
-
'METRIC_TYPE_PERCENTAGE' = 4
|
|
7
|
-
}
|
|
8
|
-
export interface MetricTypeConfig {
|
|
9
|
-
label: string;
|
|
10
|
-
description: string;
|
|
11
|
-
type: MetricTypeType;
|
|
12
|
-
}
|
|
13
|
-
export interface MetricType extends MetricTypeConfig {
|
|
14
|
-
formatter: Function;
|
|
15
|
-
biggerIsBetter: boolean;
|
|
16
|
-
}
|
|
17
|
-
export declare enum MetricRunInfoDeltaType {
|
|
18
|
-
'HIGH_NEGATIVE' = 0,
|
|
19
|
-
'NEGATIVE' = 1,
|
|
20
|
-
'LOW_NEGATIVE' = 2,
|
|
21
|
-
'NO_CHANGE' = 3,
|
|
22
|
-
'LOW_POSITIVE' = 4,
|
|
23
|
-
'POSITIVE' = 5,
|
|
24
|
-
'HIGH_POSITIVE' = 6
|
|
25
|
-
}
|
|
26
|
-
export interface MetricRun {
|
|
27
|
-
value: number;
|
|
28
|
-
}
|
|
29
|
-
export interface MetricRunInfo {
|
|
30
|
-
value: number;
|
|
31
|
-
displayValue: string;
|
|
32
|
-
delta?: number;
|
|
33
|
-
displayDelta?: string;
|
|
34
|
-
displayDeltaPercentage?: string;
|
|
35
|
-
deltaType?: MetricRunInfoDeltaType;
|
|
36
|
-
}
|
|
37
|
-
export interface Metric {
|
|
38
|
-
value: number;
|
|
39
|
-
}
|
|
40
|
-
export interface ModuleMetric extends Metric {
|
|
41
|
-
name: string;
|
|
42
|
-
chunkIds: Array<String>;
|
|
43
|
-
}
|
|
44
|
-
export interface PackageMetric extends Metric {
|
|
45
|
-
path: string;
|
|
46
|
-
}
|
|
47
|
-
export interface WebpackMetricsModules {
|
|
48
|
-
metrics: {
|
|
49
|
-
modules: Record<string, ModuleMetric>;
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
export interface WebpackMetricsPackages {
|
|
53
|
-
metrics: {
|
|
54
|
-
packages: Record<string, PackageMetric>;
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
export interface LighthouseSource {
|
|
58
|
-
lighthouseVersion: string;
|
|
59
|
-
fetchTime: string;
|
|
60
|
-
requestedUrl: string;
|
|
61
|
-
categories: {
|
|
62
|
-
[key: string]: {
|
|
63
|
-
score: number;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
audits: {
|
|
67
|
-
[key: string]: {
|
|
68
|
-
score: number;
|
|
69
|
-
numericValue: number;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
export interface LighthouseMetricsCategoryScores {
|
|
74
|
-
performanceScore: MetricRun;
|
|
75
|
-
accessibilityScore: MetricRun;
|
|
76
|
-
bestPracticesScore: MetricRun;
|
|
77
|
-
seoScore: MetricRun;
|
|
78
|
-
pwaScore: MetricRun;
|
|
79
|
-
}
|
|
80
|
-
export interface LighthouseMetricsScore {
|
|
81
|
-
score: MetricRun;
|
|
82
|
-
}
|
|
83
|
-
export interface LighthouseMetricsAudits {
|
|
84
|
-
speedIndex: MetricRun;
|
|
85
|
-
firstMeaningfulPaint: MetricRun;
|
|
86
|
-
timeToFirstByte: MetricRun;
|
|
87
|
-
firstInteractive: MetricRun;
|
|
88
|
-
totalByteWeight: MetricRun;
|
|
89
|
-
domSize: MetricRun;
|
|
90
|
-
}
|
|
91
|
-
export interface BrowsertimeSourceMetric {
|
|
92
|
-
median: number;
|
|
93
|
-
}
|
|
94
|
-
export interface BrowsertimeSource {
|
|
95
|
-
info?: {
|
|
96
|
-
browsertime: {
|
|
97
|
-
version: string;
|
|
98
|
-
};
|
|
99
|
-
timestamp: string;
|
|
100
|
-
url: string;
|
|
101
|
-
};
|
|
102
|
-
statistics?: {
|
|
103
|
-
timings: {
|
|
104
|
-
firstPaint: BrowsertimeSourceMetric;
|
|
105
|
-
fullyLoaded: BrowsertimeSourceMetric;
|
|
106
|
-
pageTimings: {
|
|
107
|
-
backEndTime: BrowsertimeSourceMetric;
|
|
108
|
-
domContentLoadedTime: BrowsertimeSourceMetric;
|
|
109
|
-
domInteractiveTime: BrowsertimeSourceMetric;
|
|
110
|
-
domainLookupTime: BrowsertimeSourceMetric;
|
|
111
|
-
frontEndTime: BrowsertimeSourceMetric;
|
|
112
|
-
pageDownloadTime: BrowsertimeSourceMetric;
|
|
113
|
-
pageLoadTime: BrowsertimeSourceMetric;
|
|
114
|
-
redirectionTime: BrowsertimeSourceMetric;
|
|
115
|
-
serverConnectionTime: BrowsertimeSourceMetric;
|
|
116
|
-
serverResponseTime: BrowsertimeSourceMetric;
|
|
117
|
-
};
|
|
118
|
-
paintTiming: {
|
|
119
|
-
'first-contentful-paint': BrowsertimeSourceMetric;
|
|
120
|
-
};
|
|
121
|
-
rumSpeedIndex: BrowsertimeSourceMetric;
|
|
122
|
-
};
|
|
123
|
-
visualmetrics: {
|
|
124
|
-
FirstVisualChange: BrowsertimeSourceMetric;
|
|
125
|
-
LastVisualChange: BrowsertimeSourceMetric;
|
|
126
|
-
PerceptualSpeedIndex: BrowsertimeSourceMetric;
|
|
127
|
-
SpeedIndex: BrowsertimeSourceMetric;
|
|
128
|
-
VisualComplete85: BrowsertimeSourceMetric;
|
|
129
|
-
VisualComplete95: BrowsertimeSourceMetric;
|
|
130
|
-
VisualComplete99: BrowsertimeSourceMetric;
|
|
131
|
-
};
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
export interface BrowsertimeMetrics {
|
|
135
|
-
firstPaint: MetricRun;
|
|
136
|
-
fullyLoaded: MetricRun;
|
|
137
|
-
backEndTime: MetricRun;
|
|
138
|
-
domContentLoadedTime: MetricRun;
|
|
139
|
-
domInteractiveTime: MetricRun;
|
|
140
|
-
domainLookupTime: MetricRun;
|
|
141
|
-
frontEndTime: MetricRun;
|
|
142
|
-
pageDownloadTime: MetricRun;
|
|
143
|
-
pageLoadTime: MetricRun;
|
|
144
|
-
redirectionTime: MetricRun;
|
|
145
|
-
serverConnectionTime: MetricRun;
|
|
146
|
-
serverResponseTime: MetricRun;
|
|
147
|
-
firstContentfulPaint: MetricRun;
|
|
148
|
-
rumSpeedIndex: MetricRun;
|
|
149
|
-
firstVisualChange: MetricRun;
|
|
150
|
-
lastVisualChange: MetricRun;
|
|
151
|
-
perceptualSpeedIndex: MetricRun;
|
|
152
|
-
speedIndex: MetricRun;
|
|
153
|
-
visualComplete85: MetricRun;
|
|
154
|
-
visualComplete95: MetricRun;
|
|
155
|
-
visualComplete99: MetricRun;
|
|
156
|
-
}
|
package/types/i18n.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
const COMPONENT_LINK_TOTALS: string;
|
|
3
|
-
const COMPONENT_LINK_BUNDLE_ASSETS_INITIAL_JS: string;
|
|
4
|
-
const COMPONENT_LINK_BUNDLE_ASSETS_INITIAL_CSS: string;
|
|
5
|
-
const COMPONENT_LINK_BUNDLE_ASSETS_CACHE_INVALIDATION: string;
|
|
6
|
-
const COMPONENT_LINK_BUNDLE_ASSETS_COUNT: string;
|
|
7
|
-
const COMPONENT_LINK_BUNDLE_ASSETS_CHUNK_COUNT: string;
|
|
8
|
-
const COMPONENT_LINK_MODULES: string;
|
|
9
|
-
const COMPONENT_LINK_CHUNK_MODULES: string;
|
|
10
|
-
const COMPONENT_LINK_PACKAGES_COUNT: string;
|
|
11
|
-
const COMPONENT_LINK_PACKAGES_DUPLICATE: string;
|
|
12
|
-
const COMPONENT_LINK_VIEW_PACKAGE: string;
|
|
13
|
-
const COMPONENT_LINK_BUNDLE_ASSETS_BY_FILE_TYPE: string;
|
|
14
|
-
}
|
|
15
|
-
export default _default;
|
package/types/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function createJob(source: any, baseline: any): {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function createJobs(sources: any): any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function createSummary(metricPaths: any, baselineSourceMetrics: any, currentSourceMetrics: any): any;
|
package/types/jobs/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function compare(jobs: any): import("../report/types").ReportRow[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const SUMMARY_METRIC_PATHS: string[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function extract(webpackStats: any, baseline: any): {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function filter(source: Object): any;
|