Skip to content

Commit 6ffc0e3

Browse files
committed
fix: use brs, unfortunately
1 parent 089d959 commit 6ffc0e3

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

build/main.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24877,7 +24877,6 @@ function computeParentPaths(lockfile, duplicateDependencyNames, dependencyMap) {
2487724877
const visitor = {
2487824878
dependency: visitorFn,
2487924879
devDependency: visitorFn,
24880-
peerDependency: visitorFn,
2488124880
optionalDependency: visitorFn
2488224881
};
2488324882
for (const pkg of lockfile.packages) {
@@ -24915,12 +24914,8 @@ function scanForDuplicates(messages, threshold, dependencyMap, lockfilePath, loc
2491524914
const pathDisplay = path2 || "(root)";
2491624915
detailsLines.push(`**${version}**: ${pathDisplay}`);
2491724916
}
24918-
const detailsContent = detailsLines.join(" \n");
24919-
const collapsibleSection = `<details><summary>${versionSet.size} version${versionSet.size > 1 ? "s" : ""}</summary>
24920-
24921-
${detailsContent}
24922-
24923-
</details>`;
24917+
const detailsContent = detailsLines.join("<br>");
24918+
const collapsibleSection = `<details><summary>${versionSet.size} version${versionSet.size > 1 ? "s" : ""}</summary><br><br>${detailsContent}<br><br></details>`;
2492424919
duplicateRows.push(`| ${name} | ${collapsibleSection} |`);
2492524920
}
2492624921
if (duplicateRows.length > 0) {

src/checks/duplicates.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import {
22
type ParsedLockFile,
33
traverse,
4-
type ParsedDependency,
54
type VisitorFn
65
} from 'lockparse';
76

@@ -47,7 +46,6 @@ function computeParentPaths(
4746
const visitor = {
4847
dependency: visitorFn,
4948
devDependency: visitorFn,
50-
peerDependency: visitorFn,
5149
optionalDependency: visitorFn
5250
};
5351
for (const pkg of lockfile.packages) {
@@ -99,8 +97,8 @@ export function scanForDuplicates(
9997
detailsLines.push(`**${version}**: ${pathDisplay}`);
10098
}
10199

102-
const detailsContent = detailsLines.join(' \n');
103-
const collapsibleSection = `<details><summary>${versionSet.size} version${versionSet.size > 1 ? 's' : ''}</summary>\n\n${detailsContent}\n\n</details>`;
100+
const detailsContent = detailsLines.join('<br>');
101+
const collapsibleSection = `<details><summary>${versionSet.size} version${versionSet.size > 1 ? 's' : ''}</summary><br><br>${detailsContent}<br><br></details>`;
104102

105103
duplicateRows.push(`| ${name} | ${collapsibleSection} |`);
106104
}

0 commit comments

Comments
 (0)