@code-pushup/js-packages-plugin 0.42.1 → 0.44.1
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/bin.js +2 -2
- package/index.js +1 -1
- package/package.json +3 -3
- package/src/lib/runner/outdated/transform.d.ts +2 -22
package/bin.js
CHANGED
|
@@ -1716,7 +1716,7 @@ function auditResultToAuditOutput(result, id, depGroup, auditLevelMapping) {
|
|
|
1716
1716
|
score: calculateAuditScore(result.summary),
|
|
1717
1717
|
value: result.summary.total,
|
|
1718
1718
|
displayValue: summaryToDisplayValue(result.summary),
|
|
1719
|
-
|
|
1719
|
+
details: { issues }
|
|
1720
1720
|
};
|
|
1721
1721
|
}
|
|
1722
1722
|
function calculateAuditScore(stats) {
|
|
@@ -1815,7 +1815,7 @@ function outdatedResultToAuditOutput(result, packageManager, depGroup) {
|
|
|
1815
1815
|
),
|
|
1816
1816
|
value: outdatedDependencies.length,
|
|
1817
1817
|
displayValue: outdatedToDisplayValue(outdatedStats),
|
|
1818
|
-
|
|
1818
|
+
details: { issues }
|
|
1819
1819
|
};
|
|
1820
1820
|
}
|
|
1821
1821
|
function calculateOutdatedScore(majorOutdated, totalDeps) {
|
package/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { fileURLToPath } from "node:url";
|
|
|
4
4
|
|
|
5
5
|
// packages/plugin-js-packages/package.json
|
|
6
6
|
var name = "@code-pushup/js-packages-plugin";
|
|
7
|
-
var version = "0.
|
|
7
|
+
var version = "0.44.1";
|
|
8
8
|
|
|
9
9
|
// packages/plugin-js-packages/src/lib/config.ts
|
|
10
10
|
import { z as z16 } from "zod";
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@code-pushup/js-packages-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.44.1",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@code-pushup/models": "0.
|
|
6
|
-
"@code-pushup/utils": "0.
|
|
5
|
+
"@code-pushup/models": "0.44.1",
|
|
6
|
+
"@code-pushup/utils": "0.44.1",
|
|
7
7
|
"semver": "^7.6.0",
|
|
8
8
|
"zod": "^3.22.4"
|
|
9
9
|
},
|
|
@@ -1,28 +1,8 @@
|
|
|
1
1
|
import { ReleaseType } from 'semver';
|
|
2
|
-
import type { Issue } from '@code-pushup/models';
|
|
2
|
+
import type { AuditOutput, Issue } from '@code-pushup/models';
|
|
3
3
|
import { DependencyGroup, PackageManagerId } from '../../config';
|
|
4
4
|
import { OutdatedResult } from './types';
|
|
5
|
-
export declare function outdatedResultToAuditOutput(result: OutdatedResult, packageManager: PackageManagerId, depGroup: DependencyGroup):
|
|
6
|
-
details?: {
|
|
7
|
-
issues: {
|
|
8
|
-
message: string;
|
|
9
|
-
severity: "error" | "info" | "warning";
|
|
10
|
-
source?: {
|
|
11
|
-
file: string;
|
|
12
|
-
position?: {
|
|
13
|
-
startLine: number;
|
|
14
|
-
startColumn?: number | undefined;
|
|
15
|
-
endLine?: number | undefined;
|
|
16
|
-
endColumn?: number | undefined;
|
|
17
|
-
} | undefined;
|
|
18
|
-
} | undefined;
|
|
19
|
-
}[];
|
|
20
|
-
} | undefined;
|
|
21
|
-
slug: string;
|
|
22
|
-
score: number;
|
|
23
|
-
value: number;
|
|
24
|
-
displayValue: string;
|
|
25
|
-
};
|
|
5
|
+
export declare function outdatedResultToAuditOutput(result: OutdatedResult, packageManager: PackageManagerId, depGroup: DependencyGroup): AuditOutput;
|
|
26
6
|
export declare function calculateOutdatedScore(majorOutdated: number, totalDeps: number): number;
|
|
27
7
|
export declare function outdatedToDisplayValue(stats: Record<ReleaseType, number>): string;
|
|
28
8
|
export declare function outdatedToIssues(dependencies: OutdatedResult): Issue[];
|