@verdaccio/types 10.5.1 → 10.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Change Log
2
2
 
3
+ ## 10.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - e60fd0a: feat(types): add missing fields to the Version object
8
+
9
+ ## 10.6.0
10
+
11
+ ### Minor Changes
12
+
13
+ - f8d763c: feat: add abbreviated versions support
14
+
15
+ ## 10.5.2
16
+
17
+ ### Patch Changes
18
+
19
+ - 5c127e6: feat: add server.trustProxy configuration type
20
+
3
21
  ## 10.5.1
4
22
 
5
23
  ### Patch Changes
@@ -115,6 +115,7 @@ export interface Notifications {
115
115
  headers: Headers;
116
116
  }
117
117
  export declare type ServerSettingsConf = {
118
+ trustProxy?: string;
118
119
  rateLimit: RateLimit;
119
120
  keepAliveTimeout?: number;
120
121
  };
@@ -63,7 +63,6 @@ export interface PackageUsers {
63
63
  export interface Version {
64
64
  name: string;
65
65
  version: string;
66
- devDependencies?: string;
67
66
  directories?: any;
68
67
  dist: Dist;
69
68
  author: string | Author;
@@ -84,7 +83,12 @@ export interface Version {
84
83
  scripts?: any;
85
84
  homepage?: string;
86
85
  etag?: string;
87
- dependencies: any;
86
+ dependencies?: Dependencies;
87
+ peerDependencies?: Dependencies;
88
+ peerDependenciesMeta?: PeerDependenciesMeta;
89
+ devDependencies?: Dependencies;
90
+ optionalDependencies?: Dependencies;
91
+ bundleDependencies?: Dependencies;
88
92
  keywords?: string | string[];
89
93
  nodeVersion?: string;
90
94
  _id: string;
@@ -92,10 +96,40 @@ export interface Version {
92
96
  _npmUser: Author;
93
97
  _hasShrinkwrap?: boolean;
94
98
  deprecated?: string;
99
+ funding?: {
100
+ type: string;
101
+ url: string;
102
+ };
103
+ engines?: Engines;
104
+ cpu?: string[];
105
+ os?: string[];
106
+ hasInstallScript?: boolean;
107
+ }
108
+ export interface PeerDependenciesMeta {
109
+ [dependencyName: string]: {
110
+ optional?: boolean;
111
+ };
112
+ }
113
+ export interface Dependencies {
114
+ [key: string]: string;
115
+ }
116
+ export interface Engines {
117
+ [key: string]: string;
95
118
  }
96
119
  export interface Versions {
97
120
  [key: string]: Version;
98
121
  }
122
+ export declare type AbbreviatedVersion = Pick<Version, 'name' | 'version' | 'description' | 'dependencies' | 'devDependencies' | 'bin' | 'dist' | 'engines' | 'funding' | 'peerDependencies'>;
123
+ export interface AbbreviatedVersions {
124
+ [key: string]: AbbreviatedVersion;
125
+ }
126
+ /**
127
+ *
128
+ */
129
+ export declare type AbbreviatedManifest = Pick<Manifest, 'name' | 'dist-tags' | 'time'> & {
130
+ modified: string;
131
+ versions: AbbreviatedVersions;
132
+ };
99
133
  export declare type Package = Manifest;
100
134
  export interface Manifest {
101
135
  _id?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdaccio/types",
3
- "version": "10.5.1",
3
+ "version": "10.7.0",
4
4
  "description": "verdaccio types definitions",
5
5
  "keywords": [
6
6
  "verdaccio",
@@ -25,9 +25,9 @@
25
25
  "types": "build/types.d.ts",
26
26
  "devDependencies": {
27
27
  "@types/node": "12.12.6",
28
- "typedoc": "^0.22.17",
29
- "typedoc-plugin-missing-exports": "^0.22.6",
30
- "typedoc-umlclass": "^0.6.1"
28
+ "typedoc": "^0.23.0",
29
+ "typedoc-plugin-missing-exports": "^0.23.0",
30
+ "typedoc-umlclass": "^0.7.0"
31
31
  },
32
32
  "funding": {
33
33
  "type": "opencollective",