File tree Expand file tree Collapse file tree
src/renderer/ipc/package-managers/macOS Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,6 +28,12 @@ export type BrewCaskPackageInfo = {
2828 conflicts_with ?: any ; // TODO: Better typing
2929 aliases ?: string [ ] ;
3030 outdated : boolean ;
31+ deprecated : boolean ;
32+ deprecation_date ?: string | null ;
33+ deprecation_reason ?: string | null ;
34+ disabled : boolean ;
35+ disable_date ?: string | null ;
36+ disable_reason ?: string | null ;
3137 artifacts : BrewCaskArtifact [ ] ;
3238 installed_30d ?: string | null ; // TODO: Better typing
3339 installed_90d ?: string | null ; // TODO: Better typing
@@ -118,11 +124,11 @@ export class BrewCaskPackageInfoAdapter
118124 }
119125
120126 isPackageDeprecated ( packageInfo : BrewCaskPackageInfo ) : boolean {
121- return false ;
127+ return packageInfo . deprecated ;
122128 }
123129
124130 isPackageDisabled ( packageInfo : BrewCaskPackageInfo ) : boolean {
125- return false ;
131+ return packageInfo . disabled ;
126132 }
127133
128134 isPackageOvert ( packageInfo : BrewCaskPackageInfo ) : boolean {
You can’t perform that action at this time.
0 commit comments