2019-06-22 16:43:59 +07:00
|
|
|
export interface PackageMetaInterface {
|
2019-10-03 15:27:08 +07:00
|
|
|
versions?: Versions;
|
2019-10-12 05:06:18 +07:00
|
|
|
'dist-tags'?: DistTags;
|
2019-10-03 15:27:08 +07:00
|
|
|
time?: Time;
|
2019-06-22 16:43:59 +07:00
|
|
|
latest: {
|
2019-10-06 20:44:48 +07:00
|
|
|
author?: Author;
|
2019-06-22 16:43:59 +07:00
|
|
|
name: string;
|
2019-06-25 05:54:32 +07:00
|
|
|
dist: {
|
|
|
|
fileCount: number;
|
|
|
|
unpackedSize: number;
|
2019-12-03 15:44:44 +07:00
|
|
|
tarball?: string;
|
2019-06-25 05:54:32 +07:00
|
|
|
};
|
2019-11-01 04:17:16 +07:00
|
|
|
engines?: {
|
|
|
|
node?: string;
|
|
|
|
npm?: string;
|
|
|
|
};
|
2019-07-07 17:17:22 +07:00
|
|
|
license?: Partial<LicenseInterface> | string;
|
2019-10-06 20:44:48 +07:00
|
|
|
version: string;
|
2019-12-03 15:44:44 +07:00
|
|
|
homepage?: string;
|
|
|
|
bugs?: {
|
|
|
|
url: string;
|
|
|
|
};
|
2019-12-01 22:14:17 +07:00
|
|
|
repository?: {
|
|
|
|
type?: string;
|
|
|
|
url?: string;
|
|
|
|
};
|
2019-12-18 08:57:53 +07:00
|
|
|
maintainers?: Array<Developer>;
|
|
|
|
contributors?: Array<Developer>;
|
2019-06-22 16:43:59 +07:00
|
|
|
};
|
|
|
|
_uplinks: {};
|
|
|
|
}
|
2019-12-18 08:57:53 +07:00
|
|
|
export interface Developer {
|
|
|
|
name: string;
|
|
|
|
email: string;
|
|
|
|
avatar: string;
|
|
|
|
}
|
2019-07-06 16:50:09 +07:00
|
|
|
|
|
|
|
interface LicenseInterface {
|
|
|
|
type: string;
|
|
|
|
url: string;
|
|
|
|
}
|
2019-10-03 15:27:08 +07:00
|
|
|
|
|
|
|
export interface DistTags {
|
|
|
|
[key: string]: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface Time {
|
|
|
|
[key: string]: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface Versions {
|
|
|
|
[key: string]: Version;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface Version {
|
|
|
|
name: string;
|
|
|
|
version: string;
|
|
|
|
author?: string | Author;
|
|
|
|
description?: string;
|
|
|
|
license?: string;
|
|
|
|
main?: string;
|
|
|
|
keywords?: string[];
|
|
|
|
}
|
|
|
|
|
2019-10-06 20:44:48 +07:00
|
|
|
export interface Author {
|
2019-10-03 15:27:08 +07:00
|
|
|
name?: string;
|
|
|
|
email?: string;
|
|
|
|
url?: string;
|
2019-10-06 20:44:48 +07:00
|
|
|
avatar?: string;
|
2019-10-03 15:27:08 +07:00
|
|
|
}
|
2019-10-11 20:02:53 +07:00
|
|
|
|
|
|
|
export interface PackageDependencies {
|
|
|
|
[key: string]: string;
|
|
|
|
}
|