Skip to content

Commit bb45629

Browse files
committed
refactor(alert/artifact): drop unused types
CVE_ALERT_TYPE and ArtifactAlertCve colocate (used internally). ArtifactAlertCveFixable and ArtifactAlertUpgrade deleted entirely — defined but never referenced anywhere, including their own file.
1 parent 2e97850 commit bb45629

1 file changed

Lines changed: 2 additions & 15 deletions

File tree

packages/cli/src/util/alert/artifact.mts

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,27 +28,14 @@ export type {
2828
SocketArtifactAlert,
2929
}
3030

31-
export type CVE_ALERT_TYPE = 'cve' | 'mediumCVE' | 'mildCVE' | 'criticalCVE'
31+
type CVE_ALERT_TYPE = 'cve' | 'mediumCVE' | 'mildCVE' | 'criticalCVE'
3232

33-
export type ArtifactAlertCve = Remap<
33+
type ArtifactAlertCve = Remap<
3434
Omit<CompactSocketArtifactAlert, 'type'> & {
3535
type: CVE_ALERT_TYPE
3636
}
3737
>
3838

39-
export type ArtifactAlertCveFixable = Remap<
40-
Omit<CompactSocketArtifactAlert, 'props' | 'type'> & {
41-
type: CVE_ALERT_TYPE
42-
props: CveProps
43-
}
44-
>
45-
46-
export type ArtifactAlertUpgrade = Remap<
47-
Omit<CompactSocketArtifactAlert, 'type'> & {
48-
type: 'socketUpgradeAvailable'
49-
}
50-
>
51-
5239
export type CveProps = {
5340
firstPatchedVersionIdentifier?: string | undefined
5441
vulnerableVersionRange: string

0 commit comments

Comments
 (0)