@verdaccio/types 14.0.0-next-9.8 → 14.0.0-next-9.10

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdaccio/types",
3
- "version": "14.0.0-next-9.8",
3
+ "version": "14.0.0-next-9.10",
4
4
  "description": "Verdaccio Type Definitions",
5
5
  "keywords": [
6
6
  "private",
@@ -34,6 +34,7 @@
34
34
  "types": "src/types.ts",
35
35
  "devDependencies": {
36
36
  "@types/jsonwebtoken": "9.0.7",
37
+ "rimraf": "6.1.3",
37
38
  "typedoc": "0.28.14"
38
39
  },
39
40
  "typedoc": {
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;
@@ -273,7 +273,7 @@ export type ServerSettingsConf = {
273
273
  * acme-XXXXXX
274
274
  */
275
275
  pluginPrefix?: string;
276
- passwordValidationRegex?: RegExp;
276
+ passwordValidationRegex?: RegExp | string;
277
277
  // docs on `trustProxy` can be found at: https://expressjs.com/en/guide/behind-proxies.html
278
278
  trustProxy?: string;
279
279
  // Controls how requests with dotfile path segments (e.g. /.env, /.well-known/) are handled.
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
  /**