UNPKG

1.29 kBTypeScriptView Raw
1import { DistTags } from './dist-tags';
2import { RawPackageManifest } from './raw-package-manifest';
3/**
4 * `RawAbbreviatedPackument` represents an abbreviated packument (package document),
5 * as returned from the registry, containing only the metadata necessary to install a package.
6 *
7 * @see {@link https://github.com/npm/registry/blob/master/docs/responses/package-metadata.md#abbreviated-metadata-format}
8 */
9export interface RawAbbreviatedPackument {
10 /** Package name */
11 readonly name: string;
12 /**
13 * Timestamp of when the package was last modified
14 * in ISO 8601 format (for example, `2021-11-23T19:12:24.006Z`)
15 */
16 readonly modified: string;
17 /**
18 * Mapping of distribution tags to version numbers
19 *
20 * @see {@link DistTags}
21 */
22 readonly 'dist-tags': DistTags;
23 /**
24 * Mapping of version numbers to package manifests
25 *
26 * @see {@link RawPackageManifest}
27 */
28 readonly versions: Record<string, Pick<RawPackageManifest, 'name' | 'version' | 'dist' | 'deprecated' | 'dependencies' | 'optionalDependencies' | 'devDependencies' | 'bundleDependencies' | 'peerDependencies' | 'bin' | 'directories' | 'engines' | '_hasShrinkwrap'>>;
29}
30//# sourceMappingURL=raw-abbreviated-packument.d.ts.map
\No newline at end of file