mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-01 21:13:09 +00:00
* no more app wiz or dry calls * change spinner type * better display for update available * reintroduce dep breakages for update/downgrade and style alerts everywhere * only show install alert on first install Co-authored-by: Matt Hill <matthill@Matt-M1.local> Co-authored-by: Matt Hill <matthill@Matt-M1.start9.dev>
8 lines
298 B
TypeScript
8 lines
298 B
TypeScript
import { PackageDataEntry } from '../services/patch-db/data-model'
|
|
|
|
export function hasCurrentDeps(pkg: PackageDataEntry): boolean {
|
|
return !!Object.keys(pkg.installed?.['current-dependents'] || {})
|
|
// @TODO fix Manifest type
|
|
.filter(depId => depId !== (pkg.manifest as any).id).length
|
|
}
|