@verdaccio/types 10.3.0 → 10.4.2

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/index.d.ts +22 -12
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Change Log
2
2
 
3
+ ## 10.4.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 2d428b3: fix: user_agent property as boolean
8
+
9
+ ## 10.4.1
10
+
11
+ ### Patch Changes
12
+
13
+ - aaf0da4: fix: self_path correct property
14
+
15
+ ## 10.4.0
16
+
17
+ ### Minor Changes
18
+
19
+ - 00e4afd: feat: update configuration types
20
+
3
21
  ## 10.3.0
4
22
 
5
23
  ### Minor Changes
package/index.d.ts CHANGED
@@ -347,39 +347,49 @@ declare module '@verdaccio/types' {
347
347
  api: APITokenOptions;
348
348
  }
349
349
 
350
- type Server = {
351
- keepAliveTimeout?: number;
350
+ export type ServerSettingsConf = {
351
+ // express-rate-limit settings
352
352
  rateLimit: RateLimit;
353
+ keepAliveTimeout?: number;
353
354
  };
354
355
 
355
- interface Config {
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
- logs?: LoggerConf[];
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
+ // @deprecated on v6 this is config_path
385
+ self_path: string;
386
+ }
387
+
388
+ interface Config extends ConfigYaml, ConfigRuntime {
389
+ user_agent?: string | boolean;
390
+ server_id: string;
391
+ secret: string;
392
+ // deprecated
383
393
  checkSecretKey(token: string): string;
384
394
  getMatchedPackagesSpec(storage: string): PackageAccess | void;
385
395
  [key: string]: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdaccio/types",
3
- "version": "10.3.0",
3
+ "version": "10.4.2",
4
4
  "description": "verdaccio types definitions",
5
5
  "keywords": [
6
6
  "verdaccio",