forked from akanyan/STARTLINER
fix: broken list
This commit is contained in:
@ -46,9 +46,11 @@ export const needsUpdate = (pkg: Package | undefined) => {
|
||||
return l1 < r1;
|
||||
};
|
||||
|
||||
export const hasFeature = (pkg: Package, feature: Feature) => {
|
||||
export const hasFeature = (pkg: Package | undefined, feature: Feature) => {
|
||||
return (
|
||||
pkg !== undefined &&
|
||||
pkg.loc !== null &&
|
||||
pkg.loc !== undefined &&
|
||||
typeof pkg.loc?.status !== 'string' &&
|
||||
pkg.loc.status.OK & feature
|
||||
);
|
||||
|
Reference in New Issue
Block a user