Skip to content

Commit c8a00a3

Browse files
committed
refactor(scanner): make highlight contacts optional
1 parent 5a91b4d commit c8a00a3

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.changeset/silver-hotels-laugh.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@nodesecure/scanner": minor
3+
---
4+
5+
refactor(scanner): make highlight contacts optional

workspaces/scanner/src/types.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@ export type DependencyConfusionWarning = {
169169
export type GlobalWarning = { message: string; } & (
170170
{
171171
type:
172-
| "dangerous-dependency"
173-
| "integrity-mismatch"
174-
| "empty-package";
172+
| "dangerous-dependency"
173+
| "integrity-mismatch"
174+
| "empty-package";
175175
metadata?: Record<string, unknown>;
176176
} |
177177
{
@@ -257,7 +257,7 @@ export interface Options {
257257
};
258258

259259
highlight?: {
260-
contacts: Contact[];
260+
contacts?: Contact[];
261261
packages?: HighlightPackages;
262262
};
263263

0 commit comments

Comments
 (0)