@verdaccio/types 11.0.0-6-next.23 → 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 +6 -0
- package/build/configuration.d.ts +16 -10
- package/package.json +1 -1
- package/src/configuration.ts +17 -22
package/CHANGELOG.md
CHANGED
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;
|
|
@@ -219,8 +221,12 @@ export interface ConfigYaml {
|
|
|
219
221
|
url_prefix?: string;
|
|
220
222
|
server?: ServerSettingsConf;
|
|
221
223
|
flags?: FlagsConfig;
|
|
224
|
+
experiments?: FlagsConfig;
|
|
222
225
|
userRateLimit?: RateLimit;
|
|
223
226
|
configPath?: string;
|
|
227
|
+
i18n?: {
|
|
228
|
+
web: string;
|
|
229
|
+
};
|
|
224
230
|
}
|
|
225
231
|
/**
|
|
226
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 {
|
|
@@ -267,10 +259,13 @@ export interface ConfigYaml {
|
|
|
267
259
|
url_prefix?: string;
|
|
268
260
|
server?: ServerSettingsConf;
|
|
269
261
|
flags?: FlagsConfig;
|
|
262
|
+
// @deprecated use flags instead
|
|
263
|
+
experiments?: FlagsConfig;
|
|
270
264
|
userRateLimit?: RateLimit;
|
|
271
265
|
// internal objects, added by internal yaml to JS config parser
|
|
272
266
|
// save the configuration file path
|
|
273
267
|
configPath?: string;
|
|
268
|
+
i18n?: { web: string };
|
|
274
269
|
}
|
|
275
270
|
|
|
276
271
|
/**
|