@verdaccio/types 13.0.1 → 13.0.3

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/package.json CHANGED
@@ -1,50 +1,50 @@
1
1
  {
2
2
  "name": "@verdaccio/types",
3
- "version": "13.0.1",
3
+ "version": "13.0.3",
4
4
  "description": "Verdaccio Type Definitions",
5
5
  "keywords": [
6
- "private",
7
- "package",
8
- "repository",
9
- "registry",
10
6
  "enterprise",
11
7
  "modules",
8
+ "package",
9
+ "private",
12
10
  "proxy",
11
+ "registry",
12
+ "repository",
13
13
  "server",
14
14
  "verdaccio"
15
15
  ],
16
- "author": "Juan Picado <juanpicado19@gmail.com>",
17
- "license": "MIT",
18
16
  "homepage": "https://verdaccio.org",
19
- "engines": {
20
- "node": ">=18"
17
+ "bugs": {
18
+ "url": "https://github.com/verdaccio/verdaccio/issues"
21
19
  },
20
+ "license": "MIT",
21
+ "author": "Juan Picado <juanpicado19@gmail.com>",
22
22
  "repository": {
23
23
  "type": "https",
24
24
  "url": "https://github.com/verdaccio/verdaccio",
25
25
  "directory": "packages/core/types"
26
26
  },
27
- "bugs": {
28
- "url": "https://github.com/verdaccio/verdaccio/issues"
27
+ "funding": {
28
+ "type": "opencollective",
29
+ "url": "https://opencollective.com/verdaccio"
29
30
  },
31
+ "main": "src/types.ts",
32
+ "types": "src/types.ts",
30
33
  "publishConfig": {
31
34
  "access": "public"
32
35
  },
33
- "main": "src/types.ts",
34
- "types": "src/types.ts",
35
36
  "devDependencies": {
36
37
  "@types/jsonwebtoken": "9.0.6",
37
38
  "@types/ms": "2.1.0",
38
39
  "typedoc": "0.28.14"
39
40
  },
40
41
  "typedoc": {
42
+ "displayName": "@verdaccio/types",
41
43
  "entryPoint": "./src/types.ts",
42
- "readmeFile": "./README.md",
43
- "displayName": "@verdaccio/types"
44
+ "readmeFile": "./README.md"
44
45
  },
45
- "funding": {
46
- "type": "opencollective",
47
- "url": "https://opencollective.com/verdaccio"
46
+ "engines": {
47
+ "node": ">=18"
48
48
  },
49
49
  "scripts": {
50
50
  "clean": "rimraf ./build",
package/src/commons.ts CHANGED
@@ -10,6 +10,9 @@ export interface RemoteUser {
10
10
  groups: string[];
11
11
  name: string | void;
12
12
  error?: string;
13
+ token?: {
14
+ key: string;
15
+ };
13
16
  }
14
17
 
15
18
  export type StringValue = string | void | null;
package/src/manifest.ts CHANGED
@@ -263,6 +263,12 @@ export type AbbreviatedManifest = Pick<Manifest, 'name' | 'dist-tags' | 'time'>
263
263
  */
264
264
  export type UnPublishManifest = Omit<Manifest, '_attachments' | '_distfiles' | '_uplinks'>;
265
265
 
266
+ export interface Publisher {
267
+ name: string;
268
+ groups?: string[];
269
+ real_groups?: string[];
270
+ }
271
+
266
272
  export interface PublishManifest {
267
273
  /**
268
274
  * The `_attachments` object has different usages:
@@ -283,6 +289,16 @@ export interface PublishManifest {
283
289
  * Note: This field is removed when the package is accesed through the web user interface.
284
290
  * */
285
291
  _attachments: AttachMents;
292
+ /**
293
+ * The publisher of the package
294
+ *
295
+ * This field is added when the package is published or unpublished using the notify batch service.
296
+ *
297
+ * Note: Using `_publisher` or `_publishedPackage` would break existing handlebar templates.
298
+ */
299
+ publisher?: Publisher;
300
+ publishedPackage?: string;
301
+ publishType?: 'publish' | 'unpublish';
286
302
  }
287
303
 
288
304
  /**