@verdaccio/core 8.0.0-next-8.37 → 8.0.0
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/README.md +53 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -15,6 +15,59 @@
|
|
|
15
15
|
[](https://hub.docker.com/r/verdaccio/verdaccio)
|
|
16
16
|
[](https://github.com/verdaccio/verdaccio/stargazers)
|
|
17
17
|
|
|
18
|
+
> **Note:** This package is mostly for internal use by Verdaccio and is only intended to be used with Verdaccio 6.x.
|
|
19
|
+
|
|
20
|
+
## Overview
|
|
21
|
+
|
|
22
|
+
The `@verdaccio/core` package provides the foundational constants, error utilities, and shared modules used throughout the Verdaccio ecosystem. It serves as the base dependency for most other Verdaccio packages.
|
|
23
|
+
|
|
24
|
+
## Installation
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npm install @verdaccio/core
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Usage
|
|
31
|
+
|
|
32
|
+
```typescript
|
|
33
|
+
import {
|
|
34
|
+
API_ERROR,
|
|
35
|
+
DIST_TAGS,
|
|
36
|
+
HEADERS,
|
|
37
|
+
HTTP_STATUS,
|
|
38
|
+
constants,
|
|
39
|
+
errorUtils,
|
|
40
|
+
validationUtils,
|
|
41
|
+
} from '@verdaccio/core';
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Constants
|
|
45
|
+
|
|
46
|
+
- **`HTTP_STATUS`** - HTTP status code constants
|
|
47
|
+
- **`API_ERROR`** - API error message constants
|
|
48
|
+
- **`API_MESSAGE`** - API response message constants
|
|
49
|
+
- **`HEADERS`** - HTTP header constants
|
|
50
|
+
- **`DIST_TAGS`** - Distribution tag constants (`latest`, etc.)
|
|
51
|
+
- **`TOKEN_BASIC`**, **`TOKEN_BEARER`** - Authentication token types
|
|
52
|
+
- **`PLUGIN_CATEGORY`**, **`PLUGIN_PREFIX`** - Plugin system constants
|
|
53
|
+
- **`DEFAULT_USER`**, **`ANONYMOUS_USER`** - Default user constants
|
|
54
|
+
- **`HtpasswdHashAlgorithm`** - Supported hash algorithms for htpasswd
|
|
55
|
+
|
|
56
|
+
### Utility Modules
|
|
57
|
+
|
|
58
|
+
- **`errorUtils`** - Error creation and handling utilities
|
|
59
|
+
- **`validationUtils`** - Package name and manifest validation
|
|
60
|
+
- **`cryptoUtils`** - Hashing and random generation
|
|
61
|
+
- **`fileUtils`** - Temporary folder and storage creation
|
|
62
|
+
- **`pkgUtils`** - Package operations
|
|
63
|
+
- **`searchUtils`** - Search indexing utilities
|
|
64
|
+
- **`streamUtils`** - Stream handling utilities
|
|
65
|
+
- **`stringUtils`** - String manipulation utilities
|
|
66
|
+
- **`authUtils`** - Package access matching, token creation
|
|
67
|
+
- **`pluginUtils`** - Plugin types and interfaces
|
|
68
|
+
- **`tarballUtils`** - Tarball operations
|
|
69
|
+
- **`warningUtils`** - Warning emission
|
|
70
|
+
|
|
18
71
|
## Donations
|
|
19
72
|
|
|
20
73
|
Verdaccio is run by **volunteers**; nobody is working full-time on it. If you find this project to be useful and would like to support its development, consider making a donation - **your logo might end up in this readme.** 😉
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verdaccio/core",
|
|
3
|
-
"version": "8.0.0
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "Verdaccio Core Components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"private",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"semver": "7.7.4"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@verdaccio/types": "13.0.0
|
|
44
|
+
"@verdaccio/types": "13.0.0",
|
|
45
45
|
"express": "4.22.1",
|
|
46
46
|
"typedoc": "0.28.14",
|
|
47
47
|
"vitest": "3.2.4"
|