mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-04-08 02:54:13 -05:00
fix(store): internal error when checking manifest (#5123)
This commit is contained in:
parent
7e48ac6cde
commit
83dbde5154
2 changed files with 10 additions and 1 deletions
5
.changeset/calm-mangos-compare.md
Normal file
5
.changeset/calm-mangos-compare.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@verdaccio/store': patch
|
||||
---
|
||||
|
||||
fix(store): internal error when checking manifest
|
|
@ -387,7 +387,11 @@ export function hasDeprecatedVersions(pkgInfo: Manifest): boolean {
|
|||
}
|
||||
|
||||
export function isDeprecatedManifest(manifest: Manifest): boolean {
|
||||
return hasDeprecatedVersions(manifest) && Object.keys(manifest._attachments).length === 0;
|
||||
return (
|
||||
hasDeprecatedVersions(manifest) &&
|
||||
(typeof manifest._attachments === 'undefined' ||
|
||||
Object.keys(manifest._attachments).length === 0)
|
||||
);
|
||||
}
|
||||
|
||||
export function mapManifestToSearchPackageBody(
|
||||
|
|
Loading…
Add table
Reference in a new issue