Skip to content

Commit

Permalink
feat: rename AbbreviatedPackument to Manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
soldair committed Aug 31, 2018
1 parent 13ec1c8 commit da559b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Types should have comments so documentation on npm object properties can appear
- npm.Packument
- the document you get from `https://registry.npmjs.org/<package name here>`

- npm.AbbreviatedPackument
- npm.Manifest
- the document you get from `curl -H 'accept:application/vnd.npm.install-v1+json' https://registry.npmjs.org/<package name here>`

### subtypes
Expand All @@ -44,7 +44,7 @@ Types should have comments so documentation on npm object properties can appear
- npm.LockDependency
- how package locks describe dependencies and sub dependencies

- npm.AbbreviatedVersion
- npm.ManifestVersion
- the version object in an AbbreviatedPackument

- npm.Dist
Expand Down
6 changes: 3 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,14 @@ export interface PackumentVersion extends PackageJson {
* returned from registry requests with accept header values conianing
* `application/vnd.npm.install-v1+json`
*/
export interface AbbreviatedPackument{
export interface Manifest{
name:string;
modified:string;
'dist-tags':ObjectOfStrings;
versions:{[version:string]:AbbreviatedVersion}
versions:{[version:string]:ManifestVersion}
}

export interface AbbreviatedVersion{
export interface ManifestVersion{
name:string;
version:string;
dependencies?:ObjectOfStrings;
Expand Down

0 comments on commit da559b5

Please sign in to comment.