@code-pushup/core 0.35.0 → 0.42.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 +1076 -586
- package/package.json +5 -6
- package/src/index.d.ts +1 -0
- package/src/lib/history.d.ts +1 -4
- package/src/lib/normalize.d.ts +2 -1
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code-pushup/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.42.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@code-pushup/models": "0.
|
|
7
|
-
"@code-pushup/utils": "0.
|
|
6
|
+
"@code-pushup/models": "0.42.0",
|
|
7
|
+
"@code-pushup/utils": "0.42.0",
|
|
8
8
|
"@code-pushup/portal-client": "^0.6.1",
|
|
9
|
-
"chalk": "^5.3.0"
|
|
10
|
-
"simple-git": "^3.20.0"
|
|
9
|
+
"chalk": "^5.3.0"
|
|
11
10
|
},
|
|
12
11
|
"type": "module",
|
|
13
12
|
"main": "./index.js",
|
|
@@ -17,7 +16,7 @@
|
|
|
17
16
|
},
|
|
18
17
|
"repository": {
|
|
19
18
|
"type": "git",
|
|
20
|
-
"url": "https://github.com/code-pushup/cli.git",
|
|
19
|
+
"url": "git+https://github.com/code-pushup/cli.git",
|
|
21
20
|
"directory": "packages/core"
|
|
22
21
|
},
|
|
23
22
|
"contributors": [
|
package/src/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export { CollectOptions, collect } from './lib/implementation/collect';
|
|
|
4
4
|
export { 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
8
|
export { ConfigPathError, autoloadRc, readRcByPath, } from './lib/implementation/read-rc-file';
|
|
8
9
|
export { GlobalOptions } from './lib/types';
|
|
9
10
|
export { UploadOptions, upload } from './lib/upload';
|
package/src/lib/history.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { LogOptions, LogResult } from 'simple-git';
|
|
2
1
|
import { CoreConfig, PersistConfig, UploadConfig } from '@code-pushup/models';
|
|
3
2
|
import { GlobalOptions } from './types';
|
|
4
3
|
export type HistoryOnlyOptions = {
|
|
@@ -6,10 +5,8 @@ export type HistoryOnlyOptions = {
|
|
|
6
5
|
skipUploads?: boolean;
|
|
7
6
|
forceCleanStatus?: boolean;
|
|
8
7
|
};
|
|
9
|
-
export type HistoryOptions = Required<Pick<CoreConfig, 'plugins'
|
|
8
|
+
export type HistoryOptions = Required<Pick<CoreConfig, 'plugins'> & Required<Pick<CoreConfig, 'categories'>>> & {
|
|
10
9
|
persist: Required<PersistConfig>;
|
|
11
10
|
upload?: Required<UploadConfig>;
|
|
12
11
|
} & HistoryOnlyOptions & Partial<GlobalOptions>;
|
|
13
12
|
export declare function history(config: HistoryOptions, commits: string[]): Promise<string[]>;
|
|
14
|
-
export declare function getHashes(options: LogOptions, git?: import("simple-git").SimpleGit): Promise<string[]>;
|
|
15
|
-
export declare function prepareHashes(logs: LogResult): string[];
|
package/src/lib/normalize.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { type AuditOutputs } from '@code-pushup/models';
|
|
1
|
+
import { type AuditOutputs, Issue } from '@code-pushup/models';
|
|
2
|
+
export declare function normalizeIssue(issue: Issue, gitRoot: string): Issue;
|
|
2
3
|
export declare function normalizeAuditOutputs(audits: AuditOutputs): Promise<AuditOutputs>;
|