mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-30 22:34:10 -05:00
fix: update fields for abbreviated manifest (#4674)
This commit is contained in:
parent
b270f7a975
commit
de6ff5cb0d
4 changed files with 25 additions and 3 deletions
6
.changeset/rich-shrimps-check.md
Normal file
6
.changeset/rich-shrimps-check.md
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
'@verdaccio/types': patch
|
||||||
|
'@verdaccio/store': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: update fields for abbreviated manifest
|
|
@ -124,6 +124,7 @@ export interface Version {
|
||||||
optionalDependencies?: Dependencies;
|
optionalDependencies?: Dependencies;
|
||||||
peerDependenciesMeta?: PeerDependenciesMeta;
|
peerDependenciesMeta?: PeerDependenciesMeta;
|
||||||
bundleDependencies?: Dependencies;
|
bundleDependencies?: Dependencies;
|
||||||
|
acceptDependencies?: Dependencies;
|
||||||
keywords?: string | string[];
|
keywords?: string | string[];
|
||||||
nodeVersion?: string;
|
nodeVersion?: string;
|
||||||
_id: string;
|
_id: string;
|
||||||
|
@ -180,6 +181,7 @@ export interface FullRemoteManifest {
|
||||||
versions: Versions;
|
versions: Versions;
|
||||||
/** store owners of this package */
|
/** store owners of this package */
|
||||||
maintainers?: Author[];
|
maintainers?: Author[];
|
||||||
|
contributors?: Author[];
|
||||||
/** store the latest readme **/
|
/** store the latest readme **/
|
||||||
readme?: string;
|
readme?: string;
|
||||||
/** store star assigned to this packages by users */
|
/** store star assigned to this packages by users */
|
||||||
|
@ -224,7 +226,6 @@ export type AbbreviatedVersion = Pick<
|
||||||
Version,
|
Version,
|
||||||
| 'name'
|
| 'name'
|
||||||
| 'version'
|
| 'version'
|
||||||
| 'description'
|
|
||||||
| 'dependencies'
|
| 'dependencies'
|
||||||
| 'devDependencies'
|
| 'devDependencies'
|
||||||
| 'bin'
|
| 'bin'
|
||||||
|
@ -232,6 +233,15 @@ export type AbbreviatedVersion = Pick<
|
||||||
| 'engines'
|
| 'engines'
|
||||||
| 'funding'
|
| 'funding'
|
||||||
| 'peerDependencies'
|
| 'peerDependencies'
|
||||||
|
| 'cpu'
|
||||||
|
| 'deprecated'
|
||||||
|
| 'directories'
|
||||||
|
| 'hasInstallScript'
|
||||||
|
| 'optionalDependencies'
|
||||||
|
| 'os'
|
||||||
|
| 'peerDependenciesMeta'
|
||||||
|
| 'acceptDependencies'
|
||||||
|
| '_hasShrinkwrap'
|
||||||
>;
|
>;
|
||||||
|
|
||||||
export interface AbbreviatedVersions {
|
export interface AbbreviatedVersions {
|
||||||
|
|
|
@ -524,7 +524,6 @@ class Storage {
|
||||||
const _version_abbreviated = {
|
const _version_abbreviated = {
|
||||||
name: _version.name,
|
name: _version.name,
|
||||||
version: _version.version,
|
version: _version.version,
|
||||||
description: _version.description,
|
|
||||||
deprecated: _version.deprecated,
|
deprecated: _version.deprecated,
|
||||||
bin: _version.bin,
|
bin: _version.bin,
|
||||||
dist: _version.dist,
|
dist: _version.dist,
|
||||||
|
@ -536,6 +535,10 @@ class Storage {
|
||||||
peerDependencies: _version.peerDependencies,
|
peerDependencies: _version.peerDependencies,
|
||||||
optionalDependencies: _version.optionalDependencies,
|
optionalDependencies: _version.optionalDependencies,
|
||||||
bundleDependencies: _version.bundleDependencies,
|
bundleDependencies: _version.bundleDependencies,
|
||||||
|
cpu: _version.cpu,
|
||||||
|
os: _version.os,
|
||||||
|
peerDependenciesMeta: _version.peerDependenciesMeta,
|
||||||
|
acceptDependencies: _version.acceptDependencies,
|
||||||
// npm cli specifics
|
// npm cli specifics
|
||||||
_hasShrinkwrap: _version._hasShrinkwrap,
|
_hasShrinkwrap: _version._hasShrinkwrap,
|
||||||
hasInstallScript: _version.hasInstallScript,
|
hasInstallScript: _version.hasInstallScript,
|
||||||
|
|
|
@ -1894,7 +1894,6 @@ describe('storage', () => {
|
||||||
expect(Object.keys(version)).toEqual([
|
expect(Object.keys(version)).toEqual([
|
||||||
'name',
|
'name',
|
||||||
'version',
|
'version',
|
||||||
'description',
|
|
||||||
'deprecated',
|
'deprecated',
|
||||||
'bin',
|
'bin',
|
||||||
'dist',
|
'dist',
|
||||||
|
@ -1906,6 +1905,10 @@ describe('storage', () => {
|
||||||
'peerDependencies',
|
'peerDependencies',
|
||||||
'optionalDependencies',
|
'optionalDependencies',
|
||||||
'bundleDependencies',
|
'bundleDependencies',
|
||||||
|
'cpu',
|
||||||
|
'os',
|
||||||
|
'peerDependenciesMeta',
|
||||||
|
'acceptDependencies',
|
||||||
'_hasShrinkwrap',
|
'_hasShrinkwrap',
|
||||||
'hasInstallScript',
|
'hasInstallScript',
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in a new issue