@code-pushup/utils 0.30.0-alpha → 0.35.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 +2 -2
- package/package.json +2 -2
- package/src/lib/file-system.d.ts +1 -1
package/index.js
CHANGED
|
@@ -1829,7 +1829,7 @@ function formatDiffGroupsSection(diff) {
|
|
|
1829
1829
|
return "";
|
|
1830
1830
|
}
|
|
1831
1831
|
return paragraphs(
|
|
1832
|
-
h2("\u{
|
|
1832
|
+
h2("\u{1F5C3}\uFE0F Groups"),
|
|
1833
1833
|
formatGroupsOrAuditsDetails("group", diff.groups, {
|
|
1834
1834
|
headings: [
|
|
1835
1835
|
"\u{1F50C} Plugin",
|
|
@@ -1893,7 +1893,7 @@ function formatGroupsOrAuditsDetails(token, { changed, unchanged }, table) {
|
|
|
1893
1893
|
}
|
|
1894
1894
|
function formatScoreChange(diff) {
|
|
1895
1895
|
const marker = getDiffMarker(diff);
|
|
1896
|
-
const text = formatDiffNumber(Math.round(diff *
|
|
1896
|
+
const text = formatDiffNumber(Math.round(diff * 1e3) / 10);
|
|
1897
1897
|
return colorByScoreDiff(`${marker} ${text}`, diff);
|
|
1898
1898
|
}
|
|
1899
1899
|
function formatValueChange({
|
package/package.json
CHANGED
package/src/lib/file-system.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare function logMultipleFileResults(fileResults: MultipleFileResults,
|
|
|
11
11
|
export declare class NoExportError extends Error {
|
|
12
12
|
constructor(filepath: string);
|
|
13
13
|
}
|
|
14
|
-
export declare function importEsmModule(options: Options): Promise<
|
|
14
|
+
export declare function importEsmModule<T = unknown>(options: Options): Promise<T>;
|
|
15
15
|
export declare function pluginWorkDir(slug: string): string;
|
|
16
16
|
export type CrawlFileSystemOptions<T> = {
|
|
17
17
|
directory: string;
|