@verdaccio/core 8.0.0-next-8.12 → 8.0.0-next-8.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/CHANGELOG.md DELETED
@@ -1,571 +0,0 @@
1
- # @verdaccio/core
2
-
3
- ## 8.0.0-next-8.12
4
-
5
- ### Patch Changes
6
-
7
- - 95ac124: chore: add package parameter to storage plugin interface
8
-
9
- ## 8.0.0-next-8.11
10
-
11
- ## 8.0.0-next-8.10
12
-
13
- ## 8.0.0-next-8.9
14
-
15
- ## 8.0.0-next-8.8
16
-
17
- ## 8.0.0-next-8.7
18
-
19
- ### Patch Changes
20
-
21
- - 589ea7f: chore: move tarball utils to core
22
-
23
- ## 8.0.0-next-8.6
24
-
25
- ## 8.0.0-next-8.5
26
-
27
- ### Patch Changes
28
-
29
- - 64a7fc0: chore(core): typing, naming, and docs of parameters
30
- - 5cbee6f: fix: unpublish a package on storage package
31
- - a049bba: chore(tests): temp folder naming
32
-
33
- ## 8.0.0-next-8.4
34
-
35
- ### Patch Changes
36
-
37
- - 48aa89f: chore: request header constants
38
- - 58e0d95: fix(middleware): error 404 when getting scoped tarballs
39
-
40
- ## 8.0.0-next-8.3
41
-
42
- ## 8.0.0-next-8.2
43
-
44
- ### Minor Changes
45
-
46
- - 6a8154c: feat: update logger pino to latest
47
-
48
- ## 8.0.0-next-8.1
49
-
50
- ## 8.0.0-next-8.0
51
-
52
- ### Major Changes
53
-
54
- - chore: move v7 next to v8 next
55
-
56
- ## 7.0.0
57
-
58
- ### Major Changes
59
-
60
- - 47f61c6: feat!: bump to v7
61
- - e7ebccb: update major dependencies, remove old nodejs support
62
-
63
- ### Minor Changes
64
-
65
- - daceb6d: restore legacy support
66
- - f047cc8: refactor: auth with legacy sign support
67
- - bd8703e: feat: add migrateToSecureLegacySignature and remove enhancedLegacySignature property
68
-
69
- ### Patch Changes
70
-
71
- - 6e764e3: feat: add support for npm owner
72
- - 7c9f3cf: chore: improve startup logging
73
-
74
- ## 7.0.0-next-8.21
75
-
76
- ### Patch Changes
77
-
78
- - 7c9f3cf: chore: improve startup logging
79
-
80
- ## 7.0.0-next-7.20
81
-
82
- ## 7.0.0-next-7.19
83
-
84
- ## 7.0.0-next-7.18
85
-
86
- ## 7.0.0-next-7.17
87
-
88
- ### Patch Changes
89
-
90
- - 6e764e3: feat: add support for npm owner
91
-
92
- ## 7.0.0-next-7.16
93
-
94
- ## 7.0.0-next-7.15
95
-
96
- ### Minor Changes
97
-
98
- - bd8703e: feat: add migrateToSecureLegacySignature and remove enhancedLegacySignature property
99
-
100
- ## 7.0.0-next-7.14
101
-
102
- ## 7.0.0-next-7.13
103
-
104
- ## 7.0.0-next-7.12
105
-
106
- ## 7.0.0-next-7.11
107
-
108
- ## 7.0.0-next-7.10
109
-
110
- ## 7.0.0-next-7.9
111
-
112
- ## 7.0.0-next-7.8
113
-
114
- ## 7.0.0-next-7.7
115
-
116
- ## 7.0.0-next.6
117
-
118
- ## 7.0.0-next.5
119
-
120
- ### Minor Changes
121
-
122
- - f047cc8: refactor: auth with legacy sign support
123
-
124
- ## 7.0.0-next.4
125
-
126
- ## 7.0.0-next.3
127
-
128
- ### Major Changes
129
-
130
- - e7ebccb61: update major dependencies, remove old nodejs support
131
-
132
- ### Minor Changes
133
-
134
- - daceb6d87: restore legacy support
135
-
136
- ## 7.0.0-next.2
137
-
138
- ## 7.0.0-next.1
139
-
140
- ## 7.0.0-next.0
141
-
142
- ### Major Changes
143
-
144
- - feat!: bump to v7
145
-
146
- ## 6.0.0
147
-
148
- ### Major Changes
149
-
150
- - 292c0a37f: feat!: replace deprecated request dependency by got
151
-
152
- This is a big refactoring of the core, fetching dependencies, improve code, more tests and better stability. This is essential for the next release, will take some time but would allow modularize more the core.
153
-
154
- ## Notes
155
-
156
- - Remove deprecated `request` by other `got`, retry improved, custom Agent ( got does not include it built-in)
157
- - Remove `async` dependency from storage (used by core) it was linked with proxy somehow safe to remove now
158
- - Refactor with promises instead callback wherever is possible
159
- - ~Document the API~
160
- - Improve testing, integration tests
161
- - Bugfix
162
- - Clean up old validations
163
- - Improve performance
164
-
165
- ## 💥 Breaking changes
166
-
167
- - Plugin API methods were callbacks based are returning promises, this will break current storage plugins, check documentation for upgrade.
168
- - Write Tarball, Read Tarball methods parameters change, a new set of options like `AbortController` signals are being provided to the `addAbortSignal` can be internally used with Streams when a request is aborted. eg: `addAbortSignal(signal, fs.createReadStream(pathName));`
169
- - `@verdaccio/streams` stream abort support is legacy is being deprecated removed
170
- - Remove AWS and Google Cloud packages for future refactoring [#2574](https://github.com/verdaccio/verdaccio/pull/2574).
171
-
172
- - a3a209b5e: feat: migrate to pino.js 8
173
- - 459b6fa72: refactor: search v1 endpoint and local-database
174
-
175
- - refactor search `api v1` endpoint, improve performance
176
- - remove usage of `async` dependency https://github.com/verdaccio/verdaccio/issues/1225
177
- - refactor method storage class
178
- - create new module `core` to reduce the ammount of modules with utilities
179
- - use `undici` instead `node-fetch`
180
- - use `fastify` instead `express` for functional test
181
-
182
- ### Breaking changes
183
-
184
- - plugin storage API changes
185
- - remove old search endpoint (return 404)
186
- - filter local private packages at plugin level
187
-
188
- The storage api changes for methods `get`, `add`, `remove` as promise base. The `search` methods also changes and recieves a `query` object that contains all query params from the client.
189
-
190
- ```ts
191
- export interface IPluginStorage<T> extends IPlugin {
192
- add(name: string): Promise<void>;
193
- remove(name: string): Promise<void>;
194
- get(): Promise<any>;
195
- init(): Promise<void>;
196
- getSecret(): Promise<string>;
197
- setSecret(secret: string): Promise<any>;
198
- getPackageStorage(packageInfo: string): IPackageStorage;
199
- search(query: searchUtils.SearchQuery): Promise<searchUtils.SearchItem[]>;
200
- saveToken(token: Token): Promise<any>;
201
- deleteToken(user: string, tokenKey: string): Promise<any>;
202
- readTokens(filter: TokenFilter): Promise<Token[]>;
203
- }
204
- ```
205
-
206
- - 794af76c5: Remove Node 12 support
207
-
208
- - We need move to the new `undici` and does not support Node.js 12
209
-
210
- - 82cb0f2bf: feat!: config.logs throw an error, logging config not longer accept array or logs property
211
-
212
- ### 💥 Breaking change
213
-
214
- This is valid
215
-
216
- ```yaml
217
- log: { type: stdout, format: pretty, level: http }
218
- ```
219
-
220
- This is invalid
221
-
222
- ```yaml
223
- logs: { type: stdout, format: pretty, level: http }
224
- ```
225
-
226
- or
227
-
228
- ```yaml
229
- logs:
230
- - [{ type: stdout, format: pretty, level: http }]
231
- ```
232
-
233
- ### Minor Changes
234
-
235
- - 974cd8c19: fix: startup messages improved and logs support on types
236
- - ef88da3b4: feat: improve support for fs promises older nodejs
237
- - 24b9be020: refactor: improve docker image build with strict dependencies and prod build
238
- - 00d1d2a17: chore: env variable for launch fastify
239
-
240
- - Update fastify to major release `v4.3.0`
241
- - Update CLI launcher
242
-
243
- via CLI
244
-
245
- ```
246
- VERDACCIO_SERVER=fastify verdaccio
247
- ```
248
-
249
- with docker
250
-
251
- ```
252
- docker run -it --rm --name verdaccio \
253
- -e "VERDACCIO_SERVER=8080" -p 8080:8080 \
254
- -e "VERDACCIO_SERVER=fastify" \
255
- verdaccio/verdaccio
256
- ```
257
-
258
- - 154b2ecd3: refactor: remove @verdaccio/commons-api in favor @verdaccio/core and remove duplications
259
- - 16e38df8a: feat: trustProxy property
260
- - dc571aabd: feat: add forceEnhancedLegacySignature
261
- - 6c1eb021b: feat: use warning codes for deprecation warnings
262
- - 62c24b632: feat: add passwordValidationRegex property
263
- - 5167bb528: feat: ui search support for remote, local and private packages
264
-
265
- The command `npm search` search globally and return all matches, with this improvement the user interface
266
- is powered with the same capabilities.
267
-
268
- The UI also tag where is the origin the package with a tag, also provide the latest version and description of the package.
269
-
270
- - c9d1af0e5: feat: async bcrypt hash
271
- - 4b29d715b: chore: move improvements from v5 to v6
272
-
273
- Migrate improvements form v5 to v6:
274
-
275
- - https://github.com/verdaccio/verdaccio/pull/3158
276
- - https://github.com/verdaccio/verdaccio/pull/3151
277
- - https://github.com/verdaccio/verdaccio/pull/2271
278
- - https://github.com/verdaccio/verdaccio/pull/2787
279
- - https://github.com/verdaccio/verdaccio/pull/2791
280
- - https://github.com/verdaccio/verdaccio/pull/2205
281
-
282
- ### Patch Changes
283
-
284
- - 43f32687c: fix: abbreviated headers handle quality values
285
- - 351aeeaa8: fix(deps): @verdaccio/utils should be a prod dep of local-storage
286
- - 9718e0330: fix: build targets for 5x modules
287
- - a1da11308: fix: minor typo on warning message
288
- - 378e907d5: fix(core): fix `isObject` function.`isObject(true)` should return false.
289
- - f859d2b1a: fix: official package "-" cannot be synced
290
- - 0a6412ca9: refactor: got instead undici
291
- - b849128de: fix: handle upload scoped tarball
292
-
293
- ## 6.0.0-6-next.76
294
-
295
- ## 6.0.0-6-next.75
296
-
297
- ### Patch Changes
298
-
299
- - 0a6412ca9: refactor: got instead undici
300
-
301
- ## 6.0.0-6-next.74
302
-
303
- ## 6.0.0-6-next.73
304
-
305
- ### Patch Changes
306
-
307
- - f859d2b1a: fix: official package "-" cannot be synced
308
-
309
- ## 6.0.0-6-next.72
310
-
311
- ## 6.0.0-6-next.71
312
-
313
- ## 6.0.0-6-next.70
314
-
315
- ## 6.0.0-6-next.69
316
-
317
- ### Minor Changes
318
-
319
- - c9d1af0e: feat: async bcrypt hash
320
-
321
- ## 6.0.0-6-next.68
322
-
323
- ## 6.0.0-6-next.67
324
-
325
- ### Minor Changes
326
-
327
- - 16e38df8: feat: trustProxy property
328
-
329
- ## 6.0.0-6-next.66
330
-
331
- ## 6.0.0-6-next.65
332
-
333
- ### Patch Changes
334
-
335
- - a1da1130: fix: minor typo on warning message
336
-
337
- ## 6.0.0-6-next.64
338
-
339
- ### Minor Changes
340
-
341
- - 974cd8c1: fix: startup messages improved and logs support on types
342
-
343
- ## 6.0.0-6-next.63
344
-
345
- ### Minor Changes
346
-
347
- - dc571aab: feat: add forceEnhancedLegacySignature
348
-
349
- ## 6.0.0-6-next.62
350
-
351
- ### Patch Changes
352
-
353
- - 378e907d: fix(core): fix `isObject` function.`isObject(true)` should return false.
354
-
355
- ## 6.0.0-6-next.61
356
-
357
- ## 6.0.0-6-next.60
358
-
359
- ## 6.0.0-6-next.59
360
-
361
- ## 6.0.0-6-next.58
362
-
363
- ## 6.0.0-6-next.57
364
-
365
- ## 6.0.0-6-next.56
366
-
367
- ## 6.0.0-6-next.55
368
-
369
- ### Patch Changes
370
-
371
- - 9718e033: fix: build targets for 5x modules
372
-
373
- ## 6.0.0-6-next.54
374
-
375
- ### Minor Changes
376
-
377
- - ef88da3b: feat: improve support for fs promises older nodejs
378
-
379
- ## 6.0.0-6-next.53
380
-
381
- ## 6.0.0-6-next.52
382
-
383
- ## 6.0.0-6-next.51
384
-
385
- ### Minor Changes
386
-
387
- - 4b29d715: chore: move improvements from v5 to v6
388
-
389
- Migrate improvements form v5 to v6:
390
-
391
- - https://github.com/verdaccio/verdaccio/pull/3158
392
- - https://github.com/verdaccio/verdaccio/pull/3151
393
- - https://github.com/verdaccio/verdaccio/pull/2271
394
- - https://github.com/verdaccio/verdaccio/pull/2787
395
- - https://github.com/verdaccio/verdaccio/pull/2791
396
- - https://github.com/verdaccio/verdaccio/pull/2205
397
-
398
- ## 6.0.0-6-next.50
399
-
400
- ## 6.0.0-6-next.49
401
-
402
- ## 6.0.0-6-next.48
403
-
404
- ### Minor Changes
405
-
406
- - 62c24b63: feat: add passwordValidationRegex property
407
-
408
- ### Patch Changes
409
-
410
- - 43f32687: fix: abbreviated headers handle quality values
411
-
412
- ## 6.0.0-6-next.47
413
-
414
- ## 6.0.0-6-next.8
415
-
416
- ### Patch Changes
417
-
418
- - b849128d: fix: handle upload scoped tarball
419
-
420
- ## 6.0.0-6-next.7
421
-
422
- ### Patch Changes
423
-
424
- - 351aeeaa: fix(deps): @verdaccio/utils should be a prod dep of local-storage
425
-
426
- ## 6.0.0-6-next.6
427
-
428
- ### Major Changes
429
-
430
- - 292c0a37: feat!: replace deprecated request dependency by got
431
-
432
- This is a big refactoring of the core, fetching dependencies, improve code, more tests and better stability. This is essential for the next release, will take some time but would allow modularize more the core.
433
-
434
- ## Notes
435
-
436
- - Remove deprecated `request` by other `got`, retry improved, custom Agent ( got does not include it built-in)
437
- - Remove `async` dependency from storage (used by core) it was linked with proxy somehow safe to remove now
438
- - Refactor with promises instead callback wherever is possible
439
- - ~Document the API~
440
- - Improve testing, integration tests
441
- - Bugfix
442
- - Clean up old validations
443
- - Improve performance
444
-
445
- ## 💥 Breaking changes
446
-
447
- - Plugin API methods were callbacks based are returning promises, this will break current storage plugins, check documentation for upgrade.
448
- - Write Tarball, Read Tarball methods parameters change, a new set of options like `AbortController` signals are being provided to the `addAbortSignal` can be internally used with Streams when a request is aborted. eg: `addAbortSignal(signal, fs.createReadStream(pathName));`
449
- - `@verdaccio/streams` stream abort support is legacy is being deprecated removed
450
- - Remove AWS and Google Cloud packages for future refactoring [#2574](https://github.com/verdaccio/verdaccio/pull/2574).
451
-
452
- - a3a209b5: feat: migrate to pino.js 8
453
-
454
- ### Minor Changes
455
-
456
- - 00d1d2a1: chore: env variable for launch fastify
457
-
458
- - Update fastify to major release `v4.3.0`
459
- - Update CLI launcher
460
-
461
- via CLI
462
-
463
- ```
464
- VERDACCIO_SERVER=fastify verdaccio
465
- ```
466
-
467
- with docker
468
-
469
- ```
470
- docker run -it --rm --name verdaccio \
471
- -e "VERDACCIO_SERVER=8080" -p 8080:8080 \
472
- -e "VERDACCIO_SERVER=fastify" \
473
- verdaccio/verdaccio
474
- ```
475
-
476
- ## 6.0.0-6-next.5
477
-
478
- ### Major Changes
479
-
480
- - 82cb0f2b: feat!: config.logs throw an error, logging config not longer accept array or logs property
481
-
482
- ### 💥 Breaking change
483
-
484
- This is valid
485
-
486
- ```yaml
487
- log: { type: stdout, format: pretty, level: http }
488
- ```
489
-
490
- This is invalid
491
-
492
- ```yaml
493
- logs: { type: stdout, format: pretty, level: http }
494
- ```
495
-
496
- or
497
-
498
- ```yaml
499
- logs:
500
- - [{ type: stdout, format: pretty, level: http }]
501
- ```
502
-
503
- ### Minor Changes
504
-
505
- - 5167bb52: feat: ui search support for remote, local and private packages
506
-
507
- The command `npm search` search globally and return all matches, with this improvement the user interface
508
- is powered with the same capabilities.
509
-
510
- The UI also tag where is the origin the package with a tag, also provide the latest version and description of the package.
511
-
512
- ## 6.0.0-6-next.4
513
-
514
- ### Minor Changes
515
-
516
- - 24b9be02: refactor: improve docker image build with strict dependencies and prod build
517
-
518
- ## 6.0.0-6-next.3
519
-
520
- ### Minor Changes
521
-
522
- - 6c1eb021: feat: use warning codes for deprecation warnings
523
-
524
- ## 6.0.0-6-next.2
525
-
526
- ### Major Changes
527
-
528
- - 794af76c: Remove Node 12 support
529
-
530
- - We need move to the new `undici` and does not support Node.js 12
531
-
532
- ### Minor Changes
533
-
534
- - 154b2ecd: refactor: remove @verdaccio/commons-api in favor @verdaccio/core and remove duplications
535
-
536
- ## 6.0.0-6-next.1
537
-
538
- ### Major Changes
539
-
540
- - 459b6fa7: refactor: search v1 endpoint and local-database
541
-
542
- - refactor search `api v1` endpoint, improve performance
543
- - remove usage of `async` dependency https://github.com/verdaccio/verdaccio/issues/1225
544
- - refactor method storage class
545
- - create new module `core` to reduce the ammount of modules with utilities
546
- - use `undici` instead `node-fetch`
547
- - use `fastify` instead `express` for functional test
548
-
549
- ### Breaking changes
550
-
551
- - plugin storage API changes
552
- - remove old search endpoint (return 404)
553
- - filter local private packages at plugin level
554
-
555
- The storage api changes for methods `get`, `add`, `remove` as promise base. The `search` methods also changes and recieves a `query` object that contains all query params from the client.
556
-
557
- ```ts
558
- export interface IPluginStorage<T> extends IPlugin {
559
- add(name: string): Promise<void>;
560
- remove(name: string): Promise<void>;
561
- get(): Promise<any>;
562
- init(): Promise<void>;
563
- getSecret(): Promise<string>;
564
- setSecret(secret: string): Promise<any>;
565
- getPackageStorage(packageInfo: string): IPackageStorage;
566
- search(query: searchUtils.SearchQuery): Promise<searchUtils.SearchItem[]>;
567
- saveToken(token: Token): Promise<any>;
568
- deleteToken(user: string, tokenKey: string): Promise<any>;
569
- readTokens(filter: TokenFilter): Promise<Token[]>;
570
- }
571
- ```
package/src/constants.ts DELETED
@@ -1,134 +0,0 @@
1
- import httpCodes from 'http-status-codes';
2
-
3
- export const DEFAULT_PASSWORD_VALIDATION = /.{3}$/;
4
- export const TIME_EXPIRATION_24H = '24h';
5
- export const TIME_EXPIRATION_1H = '1h';
6
- export const DIST_TAGS = 'dist-tags';
7
- export const LATEST = 'latest';
8
- export const USERS = 'users';
9
- export const MAINTAINERS = 'maintainers';
10
- export const DEFAULT_USER = 'Anonymous';
11
-
12
- export const HEADER_TYPE = {
13
- CONTENT_ENCODING: 'content-encoding',
14
- CONTENT_TYPE: 'content-type',
15
- CONTENT_LENGTH: 'content-length',
16
- ACCEPT_ENCODING: 'accept-encoding',
17
- AUTHORIZATION: 'authorization',
18
- };
19
-
20
- export const CHARACTER_ENCODING = {
21
- UTF8: 'utf8',
22
- };
23
-
24
- // @deprecated use Bearer instead
25
- export const TOKEN_BASIC = 'Basic';
26
- export const TOKEN_BEARER = 'Bearer';
27
-
28
- export const HEADERS = {
29
- ACCEPT: 'Accept',
30
- ACCEPT_ENCODING: 'Accept-Encoding',
31
- USER_AGENT: 'User-Agent',
32
- JSON: 'application/json',
33
- CONTENT_TYPE: 'Content-type',
34
- CONTENT_LENGTH: 'content-length',
35
- TEXT_PLAIN: 'text/plain',
36
- TEXT_PLAIN_UTF8: 'text/plain; charset=utf-8',
37
- TEXT_HTML_UTF8: 'text/html; charset=utf-8',
38
- TEXT_HTML: 'text/html',
39
- AUTHORIZATION: 'authorization',
40
- CACHE_CONTROL: 'Cache-Control',
41
- // only set with proxy that setup HTTPS
42
- // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Proto
43
- FORWARDED_PROTO: 'X-Forwarded-Proto',
44
- FORWARDED_FOR: 'X-Forwarded-For',
45
- FRAMES_OPTIONS: 'X-Frame-Options',
46
- CSP: 'Content-Security-Policy',
47
- CTO: 'X-Content-Type-Options',
48
- XSS: 'X-XSS-Protection',
49
- CLIENT: 'X-Client',
50
- POWERED_BY: 'X-Powered-By',
51
- RATELIMIT_LIMIT: 'X-RateLimit-Limit',
52
- RATELIMIT_REMAINING: 'X-RateLimit-Remaining',
53
- NONE_MATCH: 'If-None-Match',
54
- ETAG: 'ETag',
55
- JSON_CHARSET: 'application/json; charset=utf-8',
56
- JSON_INSTALL_CHARSET: 'application/vnd.npm.install-v1+json; charset=utf-8',
57
- OCTET_STREAM: 'application/octet-stream; charset=utf-8',
58
- TEXT_CHARSET: 'text/plain; charset=utf-8',
59
- WWW_AUTH: 'WWW-Authenticate',
60
- GZIP: 'gzip',
61
- HOST: 'host',
62
- };
63
-
64
- export const HTTP_STATUS = {
65
- OK: httpCodes.OK,
66
- CREATED: httpCodes.CREATED,
67
- MULTIPLE_CHOICES: httpCodes.MULTIPLE_CHOICES,
68
- NOT_MODIFIED: httpCodes.NOT_MODIFIED,
69
- BAD_REQUEST: httpCodes.BAD_REQUEST,
70
- UNAUTHORIZED: httpCodes.UNAUTHORIZED,
71
- FORBIDDEN: httpCodes.FORBIDDEN,
72
- NOT_FOUND: httpCodes.NOT_FOUND,
73
- CONFLICT: httpCodes.CONFLICT,
74
- NOT_IMPLEMENTED: httpCodes.NOT_IMPLEMENTED,
75
- UNSUPPORTED_MEDIA: httpCodes.UNSUPPORTED_MEDIA_TYPE,
76
- BAD_DATA: httpCodes.UNPROCESSABLE_ENTITY,
77
- INTERNAL_ERROR: httpCodes.INTERNAL_SERVER_ERROR,
78
- SERVICE_UNAVAILABLE: httpCodes.SERVICE_UNAVAILABLE,
79
- LOOP_DETECTED: 508,
80
- CANNOT_HANDLE: 590,
81
- };
82
-
83
- export const ERROR_CODE = {
84
- token_required: 'token is required',
85
- };
86
-
87
- export const API_MESSAGE = {
88
- PKG_CREATED: 'created new package',
89
- PKG_CHANGED: 'package changed',
90
- PKG_REMOVED: 'package removed',
91
- PKG_PUBLISHED: 'package published',
92
- TARBALL_UPLOADED: 'tarball uploaded successfully',
93
- TARBALL_REMOVED: 'tarball removed',
94
- TAG_UPDATED: 'tags updated',
95
- TAG_REMOVED: 'tag removed',
96
- TAG_ADDED: 'package tagged',
97
- OK: 'ok',
98
- LOGGED_OUT: 'Logged out',
99
- };
100
-
101
- export const LOG_STATUS_MESSAGE =
102
- "@{status}, user: @{user}(@{remoteIP}), req: '@{request.method} @{request.url}'";
103
- export const LOG_VERDACCIO_ERROR = `${LOG_STATUS_MESSAGE}, error: @{!error}`;
104
- export const LOG_VERDACCIO_BYTES = `${LOG_STATUS_MESSAGE}, bytes: @{bytes.in}/@{bytes.out}`;
105
-
106
- export const ROLES = {
107
- $ALL: '$all',
108
- ALL: 'all',
109
- $AUTH: '$authenticated',
110
- $ANONYMOUS: '$anonymous',
111
- DEPRECATED_ALL: '@all',
112
- DEPRECATED_AUTH: '@authenticated',
113
- DEPRECATED_ANONYMOUS: '@anonymous',
114
- };
115
-
116
- export const PACKAGE_ACCESS = {
117
- SCOPE: '@*/*',
118
- ALL: '**',
119
- };
120
-
121
- export enum HtpasswdHashAlgorithm {
122
- md5 = 'md5',
123
- sha1 = 'sha1',
124
- crypt = 'crypt',
125
- bcrypt = 'bcrypt',
126
- }
127
-
128
- export const PLUGIN_CATEGORY = {
129
- AUTHENTICATION: 'authentication',
130
- MIDDLEWARE: 'middleware',
131
- STORAGE: 'storage',
132
- FILTER: 'filter',
133
- THEME: 'theme',
134
- };