@verdaccio/types 10.2.1 → 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 +18 -0
- package/index.d.ts +21 -12
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 10.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 00e4afd: feat: update configuration types
|
|
8
|
+
|
|
9
|
+
## 10.3.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 803c518: chore: update core dependencies
|
|
14
|
+
|
|
15
|
+
## 10.2.2
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- 9ca52a7: fix: move userRateLimit to config body
|
|
20
|
+
|
|
3
21
|
## 10.2.1
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/index.d.ts
CHANGED
|
@@ -345,41 +345,50 @@ declare module '@verdaccio/types' {
|
|
|
345
345
|
interface Security {
|
|
346
346
|
web: JWTOptions;
|
|
347
347
|
api: APITokenOptions;
|
|
348
|
-
userRateLimit: RateLimit;
|
|
349
348
|
}
|
|
350
349
|
|
|
351
|
-
type
|
|
352
|
-
|
|
350
|
+
export type ServerSettingsConf = {
|
|
351
|
+
// express-rate-limit settings
|
|
353
352
|
rateLimit: RateLimit;
|
|
353
|
+
keepAliveTimeout?: number;
|
|
354
354
|
};
|
|
355
355
|
|
|
356
|
-
interface
|
|
357
|
-
user_agent?: string | boolean;
|
|
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;
|