@code-pushup/core 0.48.0 → 0.50.0
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/index.js +1054 -1090
- package/package.json +9 -35
- package/src/index.d.ts +7 -6
- package/src/lib/collect-and-persist.d.ts +2 -2
- package/src/lib/compare.d.ts +3 -3
- package/src/lib/history.d.ts +2 -2
- package/src/lib/implementation/collect.d.ts +2 -2
- package/src/lib/implementation/compare-scorables.d.ts +2 -2
- package/src/lib/implementation/execute-plugin.d.ts +1 -1
- package/src/lib/implementation/persist.d.ts +2 -2
- package/src/lib/implementation/read-rc-file.d.ts +1 -1
- package/src/lib/implementation/runner.d.ts +1 -1
- package/src/lib/merge-diffs.d.ts +2 -0
- package/src/lib/normalize.d.ts +1 -1
- package/src/lib/upload.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code-pushup/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.50.0",
|
|
4
4
|
"license": "MIT",
|
|
5
|
+
"description": "Core business logic for the used by the Code PushUp CLI",
|
|
5
6
|
"dependencies": {
|
|
6
|
-
"@code-pushup/models": "0.
|
|
7
|
-
"@code-pushup/utils": "0.
|
|
8
|
-
"@code-pushup/portal-client": "^0.
|
|
9
|
-
"
|
|
7
|
+
"@code-pushup/models": "0.50.0",
|
|
8
|
+
"@code-pushup/utils": "0.50.0",
|
|
9
|
+
"@code-pushup/portal-client": "^0.9.0",
|
|
10
|
+
"ansis": "^3.3.0"
|
|
10
11
|
},
|
|
11
|
-
"
|
|
12
|
-
"main": "./index.js",
|
|
13
|
-
"homepage": "https://github.com/code-pushup/cli#readme",
|
|
12
|
+
"homepage": "https://github.com/code-pushup/cli/tree/main/packages/core#readme",
|
|
14
13
|
"bugs": {
|
|
15
14
|
"url": "https://github.com/code-pushup/cli/issues"
|
|
16
15
|
},
|
|
@@ -19,32 +18,7 @@
|
|
|
19
18
|
"url": "git+https://github.com/code-pushup/cli.git",
|
|
20
19
|
"directory": "packages/core"
|
|
21
20
|
},
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
"name": "Igor Katsuba",
|
|
25
|
-
"email": "igor@katsuba.dev",
|
|
26
|
-
"url": "https://katsuba.dev"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "Kateřina Pilátová",
|
|
30
|
-
"email": "katerina.pilatova@flowup.cz",
|
|
31
|
-
"url": "https://github.com/Tlacenka"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"name": "Matěj Chalk",
|
|
35
|
-
"email": "matej.chalk@flowup.cz",
|
|
36
|
-
"url": "https://github.com/matejchalk"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"name": "Michael Hladky",
|
|
40
|
-
"email": "michael.hladky@push-based.io",
|
|
41
|
-
"url": "https://push-based.io"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"name": "Michael Seredenko",
|
|
45
|
-
"email": "misha.seredenko@push-based.io",
|
|
46
|
-
"url": "https://github.com/MishaSeredenkoPushBased"
|
|
47
|
-
}
|
|
48
|
-
],
|
|
21
|
+
"type": "module",
|
|
22
|
+
"main": "./index.js",
|
|
49
23
|
"types": "./src/index.d.ts"
|
|
50
24
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
export { CollectAndPersistReportsOptions, collectAndPersistReports, } from './lib/collect-and-persist';
|
|
1
|
+
export { type CollectAndPersistReportsOptions, collectAndPersistReports, } from './lib/collect-and-persist';
|
|
2
2
|
export { compareReportFiles, compareReports } from './lib/compare';
|
|
3
|
-
export { CollectOptions, collect } from './lib/implementation/collect';
|
|
4
|
-
export { ReportsToCompare } from './lib/implementation/compare-scorables';
|
|
3
|
+
export { type CollectOptions, collect } from './lib/implementation/collect';
|
|
4
|
+
export type { ReportsToCompare } from './lib/implementation/compare-scorables';
|
|
5
5
|
export { PluginOutputMissingAuditError, executePlugin, executePlugins, } from './lib/implementation/execute-plugin';
|
|
6
6
|
export { PersistDirError, PersistError, persistReport, } from './lib/implementation/persist';
|
|
7
|
-
export { history, HistoryOptions, HistoryOnlyOptions } from './lib/history';
|
|
7
|
+
export { history, type HistoryOptions, type HistoryOnlyOptions, } from './lib/history';
|
|
8
8
|
export { ConfigPathError, autoloadRc, readRcByPath, } from './lib/implementation/read-rc-file';
|
|
9
|
-
export { GlobalOptions } from './lib/types';
|
|
10
|
-
export { UploadOptions, upload } from './lib/upload';
|
|
9
|
+
export type { GlobalOptions } from './lib/types';
|
|
10
|
+
export { type UploadOptions, upload } from './lib/upload';
|
|
11
|
+
export { mergeDiffs } from './lib/merge-diffs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CoreConfig, PersistConfig } from '@code-pushup/models';
|
|
2
|
-
import { GlobalOptions } from './types';
|
|
1
|
+
import { type CoreConfig, type PersistConfig } from '@code-pushup/models';
|
|
2
|
+
import type { GlobalOptions } from './types';
|
|
3
3
|
export type CollectAndPersistReportsOptions = Required<Pick<CoreConfig, 'plugins' | 'categories'>> & {
|
|
4
4
|
persist: Required<PersistConfig>;
|
|
5
5
|
} & Partial<GlobalOptions>;
|
package/src/lib/compare.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type PersistConfig, Report, ReportsDiff } from '@code-pushup/models';
|
|
2
|
-
import { Diff } from '@code-pushup/utils';
|
|
3
|
-
export declare function compareReportFiles(inputPaths: Diff<string>, persistConfig: Required<PersistConfig
|
|
1
|
+
import { type PersistConfig, type Report, type ReportsDiff, type UploadConfig } from '@code-pushup/models';
|
|
2
|
+
import { type Diff } from '@code-pushup/utils';
|
|
3
|
+
export declare function compareReportFiles(inputPaths: Diff<string>, persistConfig: Required<PersistConfig>, uploadConfig: UploadConfig | undefined, label?: string): Promise<string[]>;
|
|
4
4
|
export declare function compareReports(reports: Diff<Report>): ReportsDiff;
|
package/src/lib/history.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CoreConfig, PersistConfig, UploadConfig } from '@code-pushup/models';
|
|
2
|
-
import { GlobalOptions } from './types';
|
|
1
|
+
import type { CoreConfig, PersistConfig, UploadConfig } from '@code-pushup/models';
|
|
2
|
+
import type { GlobalOptions } from './types';
|
|
3
3
|
export type HistoryOnlyOptions = {
|
|
4
4
|
targetBranch?: string;
|
|
5
5
|
skipUploads?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CoreConfig, Report } from '@code-pushup/models';
|
|
2
|
-
import { GlobalOptions } from '../types';
|
|
1
|
+
import type { CoreConfig, Report } from '@code-pushup/models';
|
|
2
|
+
import type { GlobalOptions } from '../types';
|
|
3
3
|
export type CollectOptions = Required<Pick<CoreConfig, 'plugins' | 'categories'>> & Partial<GlobalOptions>;
|
|
4
4
|
/**
|
|
5
5
|
* Run audits, collect plugin output and aggregate it into a JSON object
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReportsDiff } from '@code-pushup/models';
|
|
2
|
-
import { Diff, ScoredReport } from '@code-pushup/utils';
|
|
1
|
+
import type { ReportsDiff } from '@code-pushup/models';
|
|
2
|
+
import { type Diff, type ScoredReport } from '@code-pushup/utils';
|
|
3
3
|
export type ReportsToCompare = Diff<ScoredReport>;
|
|
4
4
|
export declare function compareCategories(reports: ReportsToCompare): ReportsDiff['categories'];
|
|
5
5
|
export declare function compareGroups(reports: ReportsToCompare): ReportsDiff['groups'];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PersistConfig, Report } from '@code-pushup/models';
|
|
2
|
-
import { MultipleFileResults } from '@code-pushup/utils';
|
|
1
|
+
import type { PersistConfig, Report } from '@code-pushup/models';
|
|
2
|
+
import { type MultipleFileResults } from '@code-pushup/utils';
|
|
3
3
|
export declare class PersistDirError extends Error {
|
|
4
4
|
constructor(outputDir: string);
|
|
5
5
|
}
|
package/src/lib/normalize.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { AuditOutputs, Issue } from '@code-pushup/models';
|
|
2
2
|
export declare function normalizeIssue(issue: Issue, gitRoot: string): Issue;
|
|
3
3
|
export declare function normalizeAuditOutputs(audits: AuditOutputs): Promise<AuditOutputs>;
|
package/src/lib/upload.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { uploadToPortal } from '@code-pushup/portal-client';
|
|
2
|
-
import { PersistConfig, UploadConfig } from '@code-pushup/models';
|
|
3
|
-
import { GlobalOptions } from './types';
|
|
2
|
+
import type { PersistConfig, UploadConfig } from '@code-pushup/models';
|
|
3
|
+
import type { GlobalOptions } from './types';
|
|
4
4
|
export type UploadOptions = {
|
|
5
5
|
upload?: UploadConfig;
|
|
6
6
|
} & {
|