@verdaccio/types 13.0.0-next-8.7 → 13.0.0-next-8.9

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": "13.0.0-next-8.7",
3
+ "version": "13.0.0-next-8.9",
4
4
  "description": "Verdaccio Type Definitions",
5
5
  "keywords": [
6
6
  "private",
@@ -35,7 +35,7 @@
35
35
  "devDependencies": {
36
36
  "@types/jsonwebtoken": "9.0.6",
37
37
  "@types/ms": "2.1.0",
38
- "typedoc": "0.23.25"
38
+ "typedoc": "0.28.14"
39
39
  },
40
40
  "typedoc": {
41
41
  "entryPoint": "./src/types.ts",
@@ -9,6 +9,7 @@ export type TypeToken = 'Bearer' | 'Basic';
9
9
  export interface Logger {
10
10
  child: (conf: any) => any;
11
11
  debug: (conf: any, template?: string) => void;
12
+ fatal: (conf: any, template?: string) => void;
12
13
  error: (conf: any, template?: string) => void;
13
14
  http: (conf: any, template?: string) => void;
14
15
  trace: (conf: any, template?: string) => void;
@@ -211,12 +212,30 @@ export interface HttpsConfPfx {
211
212
  export type HttpsConf = HttpsConfKeyCert | HttpsConfPfx;
212
213
 
213
214
  export interface Notifications {
214
- method: string;
215
- packagePattern: RegExp;
216
- packagePatternFlags: string;
215
+ /**
216
+ * The endpoint URL to send the notification request to
217
+ */
217
218
  endpoint: string;
219
+ /**
220
+ * The content to send in the notification request body
221
+ */
218
222
  content: string;
219
- headers: Headers;
223
+ /**
224
+ * Only run this notification if the package name matches the regular expression
225
+ */
226
+ packagePattern?: RegExp;
227
+ /**
228
+ * Any flags to be used with the regular expression
229
+ */
230
+ packagePatternFlags?: string;
231
+ /**
232
+ * By default use POST method
233
+ */
234
+ method?: string;
235
+ /**
236
+ * Optional headers to send with the notification request
237
+ */
238
+ headers?: Headers;
220
239
  }
221
240
 
222
241
  export type Notification = Notifications;
package/src/manifest.ts CHANGED
@@ -3,7 +3,7 @@ export interface PackageAccess {
3
3
  publish?: string[];
4
4
  proxy?: string[];
5
5
  access?: string[];
6
- unpublish?: string[];
6
+ unpublish?: string[] | boolean; // false means fallback to publish access
7
7
  }
8
8
 
9
9
  export interface PackageList {