@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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-pushup/utils",
3
- "version": "0.20.2",
3
+ "version": "0.21.0",
4
4
  "dependencies": {
5
5
  "@code-pushup/models": "*",
6
6
  "bundle-require": "^4.0.1",
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, portalCommitDashboardLink, } from './lib/reports/utils';
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, UploadConfig } from '@code-pushup/models';
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 {};