@code-pushup/utils 0.20.2 → 0.21.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 +0 -8
- package/package.json +1 -1
- package/src/index.d.ts +1 -1
- package/src/lib/reports/utils.d.ts +1 -6
package/index.js
CHANGED
|
@@ -952,13 +952,6 @@ function compareIssues(a, b) {
|
|
|
952
952
|
}
|
|
953
953
|
return 0;
|
|
954
954
|
}
|
|
955
|
-
function portalCommitLink(config, commit) {
|
|
956
|
-
const { organization, project, baseUrl } = config;
|
|
957
|
-
return `${baseUrl}/portal/${organization}/${project}/commit/${commit}`;
|
|
958
|
-
}
|
|
959
|
-
function portalCommitDashboardLink(config, commit) {
|
|
960
|
-
return `${portalCommitLink(config, commit)}/dashboard`;
|
|
961
|
-
}
|
|
962
955
|
|
|
963
956
|
// packages/utils/src/lib/execute-process.ts
|
|
964
957
|
var ProcessError = class extends Error {
|
|
@@ -1753,7 +1746,6 @@ export {
|
|
|
1753
1746
|
pluginWorkDir,
|
|
1754
1747
|
pluralize,
|
|
1755
1748
|
pluralizeToken,
|
|
1756
|
-
portalCommitDashboardLink,
|
|
1757
1749
|
readJsonFile,
|
|
1758
1750
|
readTextFile,
|
|
1759
1751
|
removeDirectoryIfExists,
|
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -14,6 +14,6 @@ export { generateMdReport } from './lib/reports/generate-md-report';
|
|
|
14
14
|
export { generateStdoutSummary } from './lib/reports/generate-stdout-summary';
|
|
15
15
|
export { ScoredReport, scoreReport } from './lib/reports/scoring';
|
|
16
16
|
export { sortReport } from './lib/reports/sorting';
|
|
17
|
-
export { CODE_PUSHUP_DOMAIN, FOOTER_PREFIX, README_LINK, calcDuration, compareIssueSeverity, loadReport,
|
|
17
|
+
export { CODE_PUSHUP_DOMAIN, FOOTER_PREFIX, README_LINK, calcDuration, compareIssueSeverity, loadReport, } from './lib/reports/utils';
|
|
18
18
|
export { CliArgsObject, capitalize, countOccurrences, distinct, factorOf, objectToCliArgs, objectToEntries, objectToKeys, toArray, toNumberPrecision, toOrdinal, toUnixNewlines, toUnixPath, } from './lib/transform';
|
|
19
19
|
export { verboseUtils } from './lib/verbose-utils';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CategoryRef, IssueSeverity as CliIssueSeverity, Format, Issue, PersistConfig, Report
|
|
1
|
+
import { CategoryRef, IssueSeverity as CliIssueSeverity, Format, Issue, PersistConfig, Report } from '@code-pushup/models';
|
|
2
2
|
import { EnrichedAuditReport, EnrichedScoredGroupWithAudits, ScoredReport, WeighedAuditReport } from './scoring';
|
|
3
3
|
export declare const FOOTER_PREFIX = "Made with \u2764 by";
|
|
4
4
|
export declare const CODE_PUSHUP_DOMAIN = "code-pushup.dev";
|
|
@@ -28,9 +28,4 @@ export declare function loadReport<T extends Format>(options: Required<Pick<Pers
|
|
|
28
28
|
export declare function throwIsNotPresentError(itemName: string, presentPlace: string): never;
|
|
29
29
|
export declare function getPluginNameFromSlug(slug: string, plugins: ScoredReport['plugins']): string;
|
|
30
30
|
export declare function compareIssues(a: Issue, b: Issue): number;
|
|
31
|
-
export type CommitLinkOptions = Pick<UploadConfig, 'project' | 'organization'> & {
|
|
32
|
-
baseUrl: string;
|
|
33
|
-
};
|
|
34
|
-
export declare function portalCommitLink(config: CommitLinkOptions, commit: string): string;
|
|
35
|
-
export declare function portalCommitDashboardLink(config: CommitLinkOptions, commit: string): string;
|
|
36
31
|
export {};
|