@verdaccio/types 11.0.0-6-next.22 → 11.0.0-6-next.24
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 +12 -0
- package/build/configuration.d.ts +17 -10
- package/package.json +1 -1
- package/src/configuration.ts +19 -22
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 11.0.0-6-next.24
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7ef599cc: fix: missing version on footer
|
|
8
|
+
|
|
9
|
+
## 11.0.0-6-next.23
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 974cd8c1: fix: startup messages improved and logs support on types
|
|
14
|
+
|
|
3
15
|
## 11.0.0-6-next.22
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/build/configuration.d.ts
CHANGED
|
@@ -80,26 +80,24 @@ export type CommonWebConf = {
|
|
|
80
80
|
login?: boolean;
|
|
81
81
|
scope?: string;
|
|
82
82
|
pkgManagers?: PackageManagers[];
|
|
83
|
+
showInfo?: boolean;
|
|
84
|
+
showSettings?: boolean;
|
|
85
|
+
showSearch?: boolean;
|
|
86
|
+
showFooter?: boolean;
|
|
87
|
+
showThemeSwitch?: boolean;
|
|
88
|
+
showDownloadTarball?: boolean;
|
|
89
|
+
primaryColor: string;
|
|
90
|
+
showRaw?: boolean;
|
|
83
91
|
};
|
|
84
92
|
/**
|
|
85
93
|
* Options are passed to the index.html
|
|
86
94
|
*/
|
|
87
95
|
export type TemplateUIOptions = {
|
|
88
96
|
uri?: string;
|
|
89
|
-
darkMode?: boolean;
|
|
90
97
|
protocol?: string;
|
|
91
98
|
host?: string;
|
|
92
99
|
basename?: string;
|
|
93
|
-
scope?: string;
|
|
94
|
-
showInfo?: boolean;
|
|
95
|
-
showSettings?: boolean;
|
|
96
|
-
showSearch?: boolean;
|
|
97
|
-
showFooter?: boolean;
|
|
98
|
-
showThemeSwitch?: boolean;
|
|
99
|
-
showDownloadTarball?: boolean;
|
|
100
|
-
showRaw?: boolean;
|
|
101
100
|
base: string;
|
|
102
|
-
primaryColor: string;
|
|
103
101
|
version?: string;
|
|
104
102
|
flags: FlagsConfig;
|
|
105
103
|
} & CommonWebConf;
|
|
@@ -108,12 +106,16 @@ export type TemplateUIOptions = {
|
|
|
108
106
|
*/
|
|
109
107
|
export type WebConf = {
|
|
110
108
|
primary_color?: string;
|
|
109
|
+
primaryColor?: string;
|
|
111
110
|
enable?: boolean;
|
|
112
111
|
scriptsHead?: string[];
|
|
113
112
|
scriptsBodyAfter?: string[];
|
|
113
|
+
scriptsbodyBefore?: string[];
|
|
114
114
|
metaScripts?: string[];
|
|
115
115
|
bodyBefore?: string[];
|
|
116
116
|
bodyAfter?: string[];
|
|
117
|
+
rateLimit?: RateLimit;
|
|
118
|
+
html_cache?: boolean;
|
|
117
119
|
} & CommonWebConf;
|
|
118
120
|
export interface UpLinksConfList {
|
|
119
121
|
[key: string]: UpLinkConf;
|
|
@@ -198,6 +200,7 @@ export interface ConfigYaml {
|
|
|
198
200
|
packages: PackageList;
|
|
199
201
|
uplinks: UpLinksConfList;
|
|
200
202
|
log?: LoggerConfItem;
|
|
203
|
+
logs?: LoggerConfItem;
|
|
201
204
|
web?: WebConf;
|
|
202
205
|
auth?: AuthConf;
|
|
203
206
|
security: Security;
|
|
@@ -218,8 +221,12 @@ export interface ConfigYaml {
|
|
|
218
221
|
url_prefix?: string;
|
|
219
222
|
server?: ServerSettingsConf;
|
|
220
223
|
flags?: FlagsConfig;
|
|
224
|
+
experiments?: FlagsConfig;
|
|
221
225
|
userRateLimit?: RateLimit;
|
|
222
226
|
configPath?: string;
|
|
227
|
+
i18n?: {
|
|
228
|
+
web: string;
|
|
229
|
+
};
|
|
223
230
|
}
|
|
224
231
|
/**
|
|
225
232
|
* Configuration object with additional methods for configuration, includes yaml and internal medatada.
|
package/package.json
CHANGED
package/src/configuration.ts
CHANGED
|
@@ -75,16 +75,6 @@ export type RateLimit = {
|
|
|
75
75
|
max?: number;
|
|
76
76
|
};
|
|
77
77
|
|
|
78
|
-
// export interface WebConf {
|
|
79
|
-
// enable?: boolean;
|
|
80
|
-
// title?: string;
|
|
81
|
-
// logo?: string;
|
|
82
|
-
// favicon?: string;
|
|
83
|
-
// gravatar?: boolean;
|
|
84
|
-
// sort_packages?: string;
|
|
85
|
-
// rateLimit?: RateLimit;
|
|
86
|
-
// }
|
|
87
|
-
|
|
88
78
|
export type FlagsConfig = {
|
|
89
79
|
searchRemote?: boolean;
|
|
90
80
|
changePassword?: boolean;
|
|
@@ -105,6 +95,14 @@ export type CommonWebConf = {
|
|
|
105
95
|
login?: boolean;
|
|
106
96
|
scope?: string;
|
|
107
97
|
pkgManagers?: PackageManagers[];
|
|
98
|
+
showInfo?: boolean;
|
|
99
|
+
showSettings?: boolean;
|
|
100
|
+
showSearch?: boolean;
|
|
101
|
+
showFooter?: boolean;
|
|
102
|
+
showThemeSwitch?: boolean;
|
|
103
|
+
showDownloadTarball?: boolean;
|
|
104
|
+
primaryColor: string;
|
|
105
|
+
showRaw?: boolean;
|
|
108
106
|
};
|
|
109
107
|
|
|
110
108
|
/**
|
|
@@ -112,21 +110,11 @@ export type CommonWebConf = {
|
|
|
112
110
|
*/
|
|
113
111
|
export type TemplateUIOptions = {
|
|
114
112
|
uri?: string;
|
|
115
|
-
darkMode?: boolean;
|
|
116
113
|
protocol?: string;
|
|
117
114
|
host?: string;
|
|
118
|
-
// deprecated
|
|
115
|
+
// @deprecated use base instead
|
|
119
116
|
basename?: string;
|
|
120
|
-
scope?: string;
|
|
121
|
-
showInfo?: boolean;
|
|
122
|
-
showSettings?: boolean;
|
|
123
|
-
showSearch?: boolean;
|
|
124
|
-
showFooter?: boolean;
|
|
125
|
-
showThemeSwitch?: boolean;
|
|
126
|
-
showDownloadTarball?: boolean;
|
|
127
|
-
showRaw?: boolean;
|
|
128
117
|
base: string;
|
|
129
|
-
primaryColor: string;
|
|
130
118
|
version?: string;
|
|
131
119
|
flags: FlagsConfig;
|
|
132
120
|
} & CommonWebConf;
|
|
@@ -135,14 +123,18 @@ export type TemplateUIOptions = {
|
|
|
135
123
|
* Options on config.yaml for web
|
|
136
124
|
*/
|
|
137
125
|
export type WebConf = {
|
|
138
|
-
//
|
|
126
|
+
// @deprecated use primaryColor
|
|
139
127
|
primary_color?: string;
|
|
128
|
+
primaryColor?: string;
|
|
140
129
|
enable?: boolean;
|
|
141
130
|
scriptsHead?: string[];
|
|
142
131
|
scriptsBodyAfter?: string[];
|
|
132
|
+
scriptsbodyBefore?: string[];
|
|
143
133
|
metaScripts?: string[];
|
|
144
134
|
bodyBefore?: string[];
|
|
145
135
|
bodyAfter?: string[];
|
|
136
|
+
rateLimit?: RateLimit;
|
|
137
|
+
html_cache?: boolean;
|
|
146
138
|
} & CommonWebConf;
|
|
147
139
|
|
|
148
140
|
export interface UpLinksConfList {
|
|
@@ -245,6 +237,8 @@ export interface ConfigYaml {
|
|
|
245
237
|
packages: PackageList;
|
|
246
238
|
uplinks: UpLinksConfList;
|
|
247
239
|
log?: LoggerConfItem;
|
|
240
|
+
// @deprecated deprecation path from 5.x
|
|
241
|
+
logs?: LoggerConfItem;
|
|
248
242
|
web?: WebConf;
|
|
249
243
|
auth?: AuthConf;
|
|
250
244
|
security: Security;
|
|
@@ -265,10 +259,13 @@ export interface ConfigYaml {
|
|
|
265
259
|
url_prefix?: string;
|
|
266
260
|
server?: ServerSettingsConf;
|
|
267
261
|
flags?: FlagsConfig;
|
|
262
|
+
// @deprecated use flags instead
|
|
263
|
+
experiments?: FlagsConfig;
|
|
268
264
|
userRateLimit?: RateLimit;
|
|
269
265
|
// internal objects, added by internal yaml to JS config parser
|
|
270
266
|
// save the configuration file path
|
|
271
267
|
configPath?: string;
|
|
268
|
+
i18n?: { web: string };
|
|
272
269
|
}
|
|
273
270
|
|
|
274
271
|
/**
|