@verdaccio/types 10.3.0 → 10.4.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 +6 -0
- package/index.d.ts +21 -12
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/index.d.ts
CHANGED
|
@@ -347,39 +347,48 @@ declare module '@verdaccio/types' {
|
|
|
347
347
|
api: APITokenOptions;
|
|
348
348
|
}
|
|
349
349
|
|
|
350
|
-
type
|
|
351
|
-
|
|
350
|
+
export type ServerSettingsConf = {
|
|
351
|
+
// express-rate-limit settings
|
|
352
352
|
rateLimit: RateLimit;
|
|
353
|
+
keepAliveTimeout?: number;
|
|
353
354
|
};
|
|
354
355
|
|
|
355
|
-
interface
|
|
356
|
-
user_agent?: string | boolean;
|
|
357
|
-
userRateLimit: RateLimit;
|
|
358
|
-
server_id: any;
|
|
356
|
+
interface ConfigYaml {
|
|
359
357
|
_debug?: boolean;
|
|
360
|
-
server?: Server;
|
|
361
358
|
storage?: string | void;
|
|
362
|
-
plugins?: string | void;
|
|
363
|
-
secret: string;
|
|
364
|
-
self_path: string;
|
|
365
359
|
packages: PackageList;
|
|
366
360
|
uplinks: UpLinksConfList;
|
|
367
|
-
|
|
361
|
+
// FUTURE: log should be mandatory
|
|
362
|
+
logs?: LoggerConfItem;
|
|
368
363
|
web?: WebConf;
|
|
369
364
|
auth?: AuthConf;
|
|
370
365
|
security: Security;
|
|
371
366
|
publish?: PublishOptions;
|
|
372
|
-
url_prefix?: string;
|
|
373
367
|
store?: any;
|
|
374
368
|
listen?: ListenAddress;
|
|
375
369
|
https?: HttpsConf;
|
|
376
370
|
http_proxy?: string;
|
|
371
|
+
plugins?: string | void;
|
|
377
372
|
https_proxy?: string;
|
|
378
373
|
no_proxy?: string;
|
|
379
374
|
max_body_size?: string;
|
|
380
375
|
notifications?: Notifications;
|
|
376
|
+
notify?: Notifications | Notifications[];
|
|
381
377
|
middlewares?: any;
|
|
382
378
|
filters?: any;
|
|
379
|
+
url_prefix?: string;
|
|
380
|
+
server?: ServerSettingsConf;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
interface ConfigRuntime extends ConfigYaml {
|
|
384
|
+
config_path: string;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
interface Config extends ConfigYaml, ConfigRuntime {
|
|
388
|
+
user_agent: string;
|
|
389
|
+
server_id: string;
|
|
390
|
+
secret: string;
|
|
391
|
+
// deprecated
|
|
383
392
|
checkSecretKey(token: string): string;
|
|
384
393
|
getMatchedPackagesSpec(storage: string): PackageAccess | void;
|
|
385
394
|
[key: string]: any;
|