@verdaccio/types 13.0.0-next-8.8 → 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.8",
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",
@@ -212,12 +212,30 @@ export interface HttpsConfPfx {
212
212
  export type HttpsConf = HttpsConfKeyCert | HttpsConfPfx;
213
213
 
214
214
  export interface Notifications {
215
- method: string;
216
- packagePattern: RegExp;
217
- packagePatternFlags: string;
215
+ /**
216
+ * The endpoint URL to send the notification request to
217
+ */
218
218
  endpoint: string;
219
+ /**
220
+ * The content to send in the notification request body
221
+ */
219
222
  content: string;
220
- 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;
221
239
  }
222
240
 
223
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 {