@verdaccio/types 13.0.0-next-8.0 → 13.0.0-next-8.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Change Log
2
2
 
3
+ ## 13.0.0-next-8.2
4
+
5
+ ### Patch Changes
6
+
7
+ - e308fbb: chore: move agent_options to config
8
+ - b6ea32c: chore: add `error` to log level enum
9
+ - 4adaa83: chore: fix typedocs warnings
10
+ - 5cbee6f: fix: unpublish a package on storage package
11
+ - 538bb8f: feat: keep_readmes option when publishing packages
12
+
13
+ ## 13.0.0-next-8.1
14
+
15
+ ### Minor Changes
16
+
17
+ - 6a8154c: feat: update logger pino to latest
18
+
3
19
  ## 13.0.0-next-8.0
4
20
 
5
21
  ### Major Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdaccio/types",
3
- "version": "13.0.0-next-8.0",
3
+ "version": "13.0.0-next-8.2",
4
4
  "description": "verdaccio types definitions",
5
5
  "keywords": [
6
6
  "private",
@@ -1,3 +1,6 @@
1
+ import { AgentOptions as HttpAgentOptions } from 'node:http';
2
+ import { AgentOptions as HttpsAgentOptions } from 'node:https';
3
+
1
4
  import { PackageAccess, PackageList } from '@verdaccio/types/src/manifest';
2
5
 
3
6
  export type TypeToken = 'Bearer' | 'Basic';
@@ -14,13 +17,13 @@ export interface Logger {
14
17
 
15
18
  export type LoggerType = 'stdout' | 'file';
16
19
  export type LoggerFormat = 'pretty' | 'pretty-timestamped' | 'json';
17
- export type LoggerLevel = 'http' | 'fatal' | 'warn' | 'info' | 'debug' | 'trace';
20
+ export type LoggerLevel = 'fatal' | 'error' | 'warn' | 'info' | 'http' | 'debug' | 'trace';
18
21
 
19
22
  export type LoggerConfigItem = {
20
23
  type?: LoggerType;
21
24
  format?: LoggerFormat;
22
25
  path?: string;
23
- level?: string;
26
+ level?: LoggerLevel;
24
27
  colors?: boolean;
25
28
  async?: boolean;
26
29
  };
@@ -47,6 +50,8 @@ export interface Headers {
47
50
  [key: string]: string;
48
51
  }
49
52
 
53
+ export type AgentOptionsConf = HttpAgentOptions | HttpsAgentOptions;
54
+
50
55
  export interface UpLinkTokenConf {
51
56
  type: TypeToken;
52
57
  token?: string;
@@ -64,6 +69,7 @@ export interface UpLinkConf {
64
69
  headers?: Headers;
65
70
  auth?: UpLinkTokenConf;
66
71
  strict_ssl?: boolean | void;
72
+ agent_options?: AgentOptionsConf;
67
73
  _autogenerated?: boolean;
68
74
  }
69
75
 
@@ -196,8 +202,11 @@ export interface Security {
196
202
  api: APITokenOptions;
197
203
  }
198
204
 
205
+ export type ReadmeOptions = 'latest' | 'tagged' | 'all' | undefined;
206
+
199
207
  export interface PublishOptions {
200
208
  allow_offline: boolean;
209
+ keep_readmes: ReadmeOptions;
201
210
  check_owners: boolean;
202
211
  }
203
212
 
package/src/manifest.ts CHANGED
@@ -255,6 +255,11 @@ export type AbbreviatedManifest = Pick<Manifest, 'name' | 'dist-tags' | 'time'>
255
255
  versions: AbbreviatedVersions;
256
256
  };
257
257
 
258
+ /**
259
+ *
260
+ */
261
+ export type UnPublishManifest = Omit<Manifest, '_attachments' | '_distfiles' | '_uplinks'>;
262
+
258
263
  export interface PublishManifest {
259
264
  /**
260
265
  * The `_attachments` object has different usages:
@@ -23,11 +23,11 @@ export interface ITokenActions {
23
23
  /**
24
24
  * This method expect return a Package object
25
25
  * eg:
26
- * {
26
+ * \{
27
27
  * name: string;
28
28
  * time: number;
29
29
  * ... and other props
30
- * }
30
+ * \}
31
31
  *
32
32
  * The `cb` callback object will be executed if:
33
33
  * - it might return object (truly)