@verdaccio/types 14.0.0-next-9.11 → 14.0.0-next-9.13
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 +1 -1
- package/src/configuration.ts +30 -0
- package/src/manifest.ts +10 -1
package/package.json
CHANGED
package/src/configuration.ts
CHANGED
|
@@ -48,6 +48,14 @@ export interface PackageAccessYaml {
|
|
|
48
48
|
proxy?: string;
|
|
49
49
|
access?: string;
|
|
50
50
|
unpublish?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Who may submit a version for review with `npm stage publish`.
|
|
53
|
+
*
|
|
54
|
+
* Falls back to `publish` when omitted, which keeps the historical behaviour.
|
|
55
|
+
* Setting it to a narrower group than `publish` is what separates proposing a
|
|
56
|
+
* release from making one.
|
|
57
|
+
*/
|
|
58
|
+
stage?: string;
|
|
51
59
|
}
|
|
52
60
|
|
|
53
61
|
export interface Headers {
|
|
@@ -103,6 +111,23 @@ export type FlagsConfig = {
|
|
|
103
111
|
*/
|
|
104
112
|
createUser?: boolean;
|
|
105
113
|
|
|
114
|
+
/**
|
|
115
|
+
* Enables the staged publish workflow (`npm stage`).
|
|
116
|
+
*
|
|
117
|
+
* Adds the `/-/stage` endpoints, which let a version be uploaded for review
|
|
118
|
+
* and only become installable once a maintainer approves it.
|
|
119
|
+
*
|
|
120
|
+
* @default false
|
|
121
|
+
*/
|
|
122
|
+
stage?: boolean;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Enables two-factor authentication (TOTP).
|
|
126
|
+
*
|
|
127
|
+
* @default false
|
|
128
|
+
*/
|
|
129
|
+
tfa?: boolean;
|
|
130
|
+
|
|
106
131
|
/**
|
|
107
132
|
* Enables web-based login flow.
|
|
108
133
|
*
|
|
@@ -266,6 +291,11 @@ export type ServerSettingsConf = {
|
|
|
266
291
|
// express-rate-limit settings
|
|
267
292
|
rateLimit: RateLimit;
|
|
268
293
|
keepAliveTimeout?: number;
|
|
294
|
+
legacyAuthCache?: {
|
|
295
|
+
enabled?: boolean;
|
|
296
|
+
maxEntries?: number;
|
|
297
|
+
ttlMs?: number;
|
|
298
|
+
};
|
|
269
299
|
/**
|
|
270
300
|
* Plugins should be prefixed verdaccio-XXXXXX by default.
|
|
271
301
|
* To override the default prefix, use this property without `-`
|
package/src/manifest.ts
CHANGED
|
@@ -4,6 +4,7 @@ export interface PackageAccess {
|
|
|
4
4
|
proxy?: string[];
|
|
5
5
|
access?: string[];
|
|
6
6
|
unpublish?: string[] | boolean; // false means fallback to publish access
|
|
7
|
+
stage?: string[] | boolean; // false means fallback to publish access
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
export interface PackageList {
|
|
@@ -298,7 +299,15 @@ export interface PublishManifest {
|
|
|
298
299
|
*/
|
|
299
300
|
publisher?: Publisher;
|
|
300
301
|
publishedPackage?: string;
|
|
301
|
-
|
|
302
|
+
/**
|
|
303
|
+
* Which event triggered the notification.
|
|
304
|
+
*
|
|
305
|
+
* - `publish` / `unpublish`: a version became installable, or stopped being so.
|
|
306
|
+
* Approving a staged version reports `publish`, because that is what it does.
|
|
307
|
+
* - `stage` / `unstage`: a version was submitted for review, or that submission
|
|
308
|
+
* was discarded. Neither changes what is installable.
|
|
309
|
+
*/
|
|
310
|
+
publishType?: 'publish' | 'unpublish' | 'stage' | 'unstage';
|
|
302
311
|
}
|
|
303
312
|
|
|
304
313
|
/**
|