verdaccio 7.0.0-next-8.21 → 7.0.0-next-7.22
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/LICENSE +1 -1
- package/README.md +254 -4
- package/bin/verdaccio +1 -1
- package/build/cjs/_virtual/_rolldown/runtime.cjs +23 -0
- package/build/cjs/index.cjs +34 -0
- package/build/cjs/lib/auth-utils.cjs +14 -0
- package/build/cjs/lib/auth-utils.cjs.map +1 -0
- package/build/cjs/lib/auth.cjs +11 -0
- package/build/cjs/lib/auth.cjs.map +1 -0
- package/build/cjs/lib/cli.cjs +16 -0
- package/build/cjs/lib/cli.cjs.map +1 -0
- package/build/cjs/lib/config.cjs +21 -0
- package/build/cjs/lib/config.cjs.map +1 -0
- package/build/cjs/lib/constants.cjs +77 -0
- package/build/cjs/lib/constants.cjs.map +1 -0
- package/build/cjs/lib/legacy-storage-adapter.cjs +182 -0
- package/build/cjs/lib/legacy-storage-adapter.cjs.map +1 -0
- package/build/cjs/lib/logger/index.cjs +26 -0
- package/build/cjs/lib/logger/index.cjs.map +1 -0
- package/build/cjs/lib/run-server.cjs +64 -0
- package/build/cjs/lib/run-server.cjs.map +1 -0
- package/build/cjs/lib/storage.cjs +103 -0
- package/build/cjs/lib/storage.cjs.map +1 -0
- package/build/cjs/lib/up-storage.cjs +30 -0
- package/build/cjs/lib/utils.cjs +20 -0
- package/build/cjs/lib/utils.cjs.map +1 -0
- package/build/cjs/types/index.cjs +1 -0
- package/build/esm/index.mjs +3 -0
- package/build/esm/lib/auth-utils.mjs +11 -0
- package/build/esm/lib/auth-utils.mjs.map +1 -0
- package/build/esm/lib/auth.mjs +7 -0
- package/build/esm/lib/auth.mjs.map +1 -0
- package/build/esm/lib/cli.mjs +14 -0
- package/build/esm/lib/cli.mjs.map +1 -0
- package/build/esm/lib/config.mjs +16 -0
- package/build/esm/lib/config.mjs.map +1 -0
- package/build/esm/lib/constants.mjs +11 -0
- package/build/esm/lib/constants.mjs.map +1 -0
- package/build/esm/lib/legacy-storage-adapter.mjs +178 -0
- package/build/esm/lib/legacy-storage-adapter.mjs.map +1 -0
- package/build/esm/lib/logger/index.mjs +17 -0
- package/build/esm/lib/logger/index.mjs.map +1 -0
- package/build/esm/lib/run-server.mjs +58 -0
- package/build/esm/lib/run-server.mjs.map +1 -0
- package/build/esm/lib/storage.mjs +94 -0
- package/build/esm/lib/storage.mjs.map +1 -0
- package/build/esm/lib/up-storage.mjs +2 -0
- package/build/esm/lib/utils.mjs +17 -0
- package/build/esm/lib/utils.mjs.map +1 -0
- package/build/index.d.ts +2 -2
- package/build/lib/auth-utils.d.ts +2 -0
- package/build/lib/auth.d.ts +2 -0
- package/build/lib/cli.d.ts +2 -0
- package/build/lib/config.d.ts +5 -0
- package/build/lib/constants.d.ts +16 -0
- package/build/lib/legacy-storage-adapter.d.ts +14 -0
- package/build/lib/logger/index.d.ts +6 -0
- package/build/lib/run-server.d.ts +35 -0
- package/build/lib/storage.d.ts +16 -0
- package/build/lib/up-storage.d.ts +2 -0
- package/build/lib/utils.d.ts +2 -0
- package/build/types/index.d.ts +58 -0
- package/conf/.gitkeep +0 -0
- package/index.js +1 -0
- package/package.json +113 -51
- package/pnpm-workspace.yaml +18 -0
- package/renovate.json +22 -0
- package/security.txt +5 -0
- package/systemd/verdaccio.service +11 -0
- package/types/custom.d.ts +13 -0
- package/vite.config.ts +68 -0
- package/build/index.js +0 -32
- package/build/index.js.map +0 -1
- package/build/server/index.d.ts +0 -2
- package/build/server/index.js +0 -32
- package/build/server/index.js.map +0 -1
- package/build/server/registry.d.ts +0 -39
- package/build/server/registry.js +0 -154
- package/build/server/registry.js.map +0 -1
- package/build/server/request.d.ts +0 -64
- package/build/server/request.js +0 -265
- package/build/server/request.js.map +0 -1
- package/build/start.js +0 -4
- package/build/start.js.map +0 -1
- /package/build/{start.d.ts → esm/types/index.mjs} +0 -0
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,12 +1,262 @@
|
|
|
1
|
-
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
# Version 7
|
|
6
|
+
|
|
7
|
+
[Verdaccio](https://verdaccio.org/) is a simple, **zero-configuration-required local private npm registry**.
|
|
8
|
+
Verdaccio doesn't require a full-fledged database to get started. It comes out of the box with **its own tiny database** and the ability to proxy other registries (e.g., npmjs.org), caching downloaded modules along the way.
|
|
9
|
+
For those looking to extend storage capabilities, Verdaccio **supports various community-made plugins that integrate with services such as Amazon S3, Google Cloud Storage, or custom solutions.**
|
|
10
|
+
|
|
11
|
+
[](https://www.npmjs.com/package/verdaccio)
|
|
12
|
+
[](https://www.npmjs.com/package/verdaccio)
|
|
13
|
+
[](https://verdaccio.org/docs/en/docker.html)
|
|
14
|
+
[](https://opencollective.com/verdaccio)
|
|
15
|
+
|
|
16
|
+
[](https://discord.gg/7qWJxBf)
|
|
17
|
+
[](https://github.com/verdaccio/verdaccio/blob/master/LICENSE)
|
|
18
|
+
[](https://crowdin.com/project/verdaccio)
|
|
19
|
+
|
|
20
|
+
[](https://github.com/verdaccio/verdaccio/stargazers)
|
|
21
|
+
[](https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md)
|
|
22
|
+
|
|
23
|
+
## Install
|
|
24
|
+
|
|
25
|
+
Install with npm:
|
|
2
26
|
|
|
3
27
|
```bash
|
|
4
28
|
npm install --global verdaccio
|
|
5
29
|
```
|
|
6
30
|
|
|
31
|
+
**Node.js v24 or higher is required.**
|
|
32
|
+
|
|
33
|
+
or pull [Docker official image](https://verdaccio.org/docs/docker)
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
docker pull verdaccio/verdaccio
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
and run
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
docker run -it --rm --name verdaccio -p 4873:4873 verdaccio/verdaccio
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
or with _helm_ [official chart](https://github.com/verdaccio/charts).
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
helm repo add verdaccio https://charts.verdaccio.org
|
|
49
|
+
helm repo update
|
|
50
|
+
helm install verdaccio/verdaccio
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Programmatic API
|
|
54
|
+
|
|
55
|
+
Verdaccio can be used as a module to launch a server programmatically. You can find more information on the website.
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
import {runServer} from 'verdaccio';
|
|
59
|
+
|
|
60
|
+
const app = await runServer(); // default configuration
|
|
61
|
+
const app = await runServer('./config/config.yaml');
|
|
62
|
+
const app = await runServer({ configuration });
|
|
63
|
+
app.listen(4873, (event) => {
|
|
64
|
+
// do something
|
|
65
|
+
});
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Plugins
|
|
69
|
+
|
|
70
|
+
You can develop your own [plugins](https://verdaccio.org/docs/plugins) using the [verdaccio generator](https://github.com/verdaccio/generator-verdaccio-plugin). [Yeoman](https://yeoman.io/) installation is required.
|
|
71
|
+
|
|
72
|
+
Learn more about [how to develop plugins](https://verdaccio.org/docs/dev-plugins) and share them with the community.
|
|
73
|
+
|
|
74
|
+
## Donations
|
|
75
|
+
|
|
76
|
+
Verdaccio is run by **volunteers**, with no one working on it full-time. If you find this project useful and would like to support its development and maintenance, consider donating.
|
|
77
|
+
|
|
78
|
+
You can donate at **[Open Collective](https://opencollective.com/verdaccio)** 💵👍🏻 starting from _$1/month_ or with a single contribution.
|
|
79
|
+
|
|
80
|
+
> **Note:** There is currently **no funding available for contributions or security research**.
|
|
81
|
+
|
|
82
|
+
## What does Verdaccio do for me?
|
|
83
|
+
|
|
84
|
+
### Use private packages
|
|
85
|
+
|
|
86
|
+
If you want to leverage all the benefits of the npm package system within your company without exposing all your code to the public, Verdaccio allows you to use your private packages as easily as public ones.
|
|
87
|
+
|
|
88
|
+
### Cache npmjs.org registry
|
|
89
|
+
|
|
90
|
+
If you have multiple servers requiring package installations, caching the npmjs.org registry can significantly decrease latency (as npmjs.org is connected only once per package/version). It also provides limited failover capabilities (if npmjs.org is down, useful packages might still be found in the cache) and helps avoid issues such as _[How one developer just broke Node, Babel and thousands of projects in 11 lines of JavaScript](https://www.theregister.co.uk/2016/03/23/npm_left_pad_chaos/)_, _[Many packages suddenly disappeared](https://github.com/npm/registry-issue-archive/issues/255)_ or _[Registry returns 404 for a package I have installed before](https://github.com/npm/registry-issue-archive/issues/329)_.
|
|
91
|
+
|
|
92
|
+
### Link multiple registries
|
|
93
|
+
|
|
94
|
+
If your organization uses multiple registries and you need to fetch packages from various sources within a single project, you can leverage Verdaccio's uplinks feature to chain multiple registries and fetch packages from a single endpoint.
|
|
95
|
+
|
|
96
|
+
### Override public packages
|
|
97
|
+
|
|
98
|
+
If you need to use a modified version of a third-party package (e.g., you found a bug, but the maintainer hasn't yet accepted a pull request), you can publish your version locally under the same name. Learn more [here](https://verdaccio.org/docs/en/best#override-public-packages).
|
|
99
|
+
|
|
100
|
+
### E2E Testing
|
|
101
|
+
|
|
102
|
+
Verdaccio has proven to be a lightweight registry that can be booted in a couple of seconds, making it fast enough for any CI environment. Many open-source projects utilize Verdaccio for end-to-end testing, including **create-react-app**, **mozilla neutrino**, **pnpm**, **storybook**, **babel.js**, **angular-cli**, and **docusaurus**. You can read more [here](https://verdaccio.org/docs/e2e).
|
|
103
|
+
|
|
104
|
+
Here are a few examples to get started:
|
|
105
|
+
|
|
106
|
+
- [e2e-ci-example-gh-actions](https://github.com/juanpicado/e2e-ci-example-gh-actions)
|
|
107
|
+
- [verdaccio-end-to-end-tests](https://github.com/juanpicado/verdaccio-end-to-end-tests)
|
|
108
|
+
- [verdaccio-fork](https://github.com/juanpicado/verdaccio-fork)
|
|
109
|
+
|
|
110
|
+
## Talks
|
|
111
|
+
|
|
112
|
+
- [**NodeTLV 2022** - Deep Dive into Verdaccio, a Lightweight Node.js Registry - Juan Picado](https://portal.gitnation.org/contents/five-ways-of-taking-advantage-of-verdaccio-your-private-and-proxy-nodejs-registry)
|
|
113
|
+
- [Five Ways of Taking Advantage of Verdaccio, Your Private and Proxy Node.js Registry - **Node Congress 2022** - Juan Picado](https://portal.gitnation.org/contents/five-ways-of-taking-advantage-of-verdaccio-your-private-and-proxy-nodejs-registry)
|
|
114
|
+
- [Using Docker and Verdaccio to Make Integration Testing Easy - **Docker All Hands #4 December 2021** - Juan Picado](https://www.youtube.com/watch?v=zRI0skF1f8I)
|
|
115
|
+
|
|
116
|
+
[View more on the YouTube channel](https://www.youtube.com/channel/UC5i20v6o7lSjXzAHOvatt0w).
|
|
117
|
+
|
|
118
|
+
## Get Started
|
|
119
|
+
|
|
120
|
+
To get started, run Verdaccio in your terminal:
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
verdaccio
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
Optionally, you can set some npm configuration:
|
|
127
|
+
|
|
128
|
+
```bash
|
|
129
|
+
$ npm set registry http://localhost:4873/
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
For one-off commands or to avoid setting the registry globally, use:
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
NPM_CONFIG_REGISTRY=http://localhost:4873 npm i
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
You can now navigate to [http://localhost:4873/](http://localhost:4873/) where your local packages will be listed and searchable.
|
|
139
|
+
|
|
140
|
+
> Warning: Verdaccio [does not currently support PM2's cluster mode](https://github.com/verdaccio/verdaccio/issues/1301#issuecomment-489302298). Running it with cluster mode may lead to unknown behavior.
|
|
141
|
+
|
|
142
|
+
## Publishing
|
|
143
|
+
|
|
144
|
+
#### 1. Create a User and Log In
|
|
145
|
+
|
|
146
|
+
```bash
|
|
147
|
+
npm adduser --registry http://localhost:4873
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
> If you use HTTPS, add appropriate CA information. ("null" indicates getting the CA list from the OS.)
|
|
151
|
+
|
|
152
|
+
```bash
|
|
153
|
+
$ npm set ca null
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
#### 2. Publish Your Package
|
|
157
|
+
|
|
158
|
+
```bash
|
|
159
|
+
npm publish --registry http://localhost:4873
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
This command will prompt you for user credentials, which will then be saved on the `verdaccio` server.
|
|
163
|
+
|
|
164
|
+
## Docker
|
|
165
|
+
|
|
166
|
+
The most commonly needed information is provided below. Every aspect of Docker and Verdaccio is [documented separately](https://www.verdaccio.org/docs/en/docker.html).
|
|
167
|
+
|
|
168
|
+
```bash
|
|
169
|
+
docker pull verdaccio/verdaccio
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
Available as [tags](https://hub.docker.com/r/verdaccio/verdaccio/tags/).
|
|
173
|
+
|
|
174
|
+
```bash
|
|
175
|
+
docker pull verdaccio/verdaccio:7.x-next
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
### Running Verdaccio using Docker
|
|
179
|
+
|
|
180
|
+
To run the Docker container:
|
|
181
|
+
|
|
182
|
+
```bash
|
|
183
|
+
docker run -it --rm --name verdaccio -p 4873:4873 verdaccio/verdaccio
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
Docker examples are available [in this repository](https://github.com/verdaccio/docker-examples).
|
|
187
|
+
|
|
188
|
+
## Compatibility
|
|
189
|
+
|
|
190
|
+
Verdaccio aims to support all relevant features of a standard npm client for private repositories. However, full compatibility isn't always possible.
|
|
191
|
+
|
|
192
|
+
### Basic features
|
|
193
|
+
|
|
194
|
+
- Installing packages (`npm install`, `npm upgrade`, etc.) - **supported**
|
|
195
|
+
- Publishing packages (`npm publish`) - **supported**
|
|
196
|
+
|
|
197
|
+
### Advanced package control
|
|
198
|
+
|
|
199
|
+
- Unpublishing packages (`npm unpublish`) - **supported**
|
|
200
|
+
- Tagging (`npm tag`) - **supported**
|
|
201
|
+
- Deprecation (`npm deprecate`) - **supported**
|
|
202
|
+
|
|
203
|
+
### User management
|
|
204
|
+
|
|
205
|
+
- Registering new users (`npm adduser {newuser}`) - **supported**
|
|
206
|
+
- Change password (`npm profile set password`) - **supported**
|
|
207
|
+
- Transferring ownership (`npm owner add {user} {pkg}`) - not supported, _PRs welcome_
|
|
208
|
+
- Token (`npm token`) - **supported** (under flag)
|
|
209
|
+
|
|
210
|
+
### Miscellany
|
|
211
|
+
|
|
212
|
+
- Search (`npm search`) - **supported** (cli (`/-/all` and `v1`) / browser)
|
|
213
|
+
- Ping (`npm ping`) - **supported**
|
|
214
|
+
- Starring (`npm star`, `npm unstar`, `npm stars`) - **supported**
|
|
215
|
+
|
|
216
|
+
### Security
|
|
217
|
+
|
|
218
|
+
- npm/yarn audit - **supported**
|
|
219
|
+
|
|
220
|
+
## Report a vulnerability
|
|
221
|
+
|
|
222
|
+
To report a security vulnerability, please follow the steps outlined in our [security policy](https://github.com/verdaccio/verdaccio/policy).
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
## Open Collective Backers
|
|
227
|
+
|
|
228
|
+
Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/verdaccio#backer)]
|
|
229
|
+
|
|
230
|
+
[](https://opencollective.com/verdaccio#backers)
|
|
231
|
+
|
|
232
|
+
## Special Thanks
|
|
233
|
+
|
|
234
|
+
Special thanks to the following companies for helping us achieve our goals by providing free open-source licenses. Each company contributes significant resources to move this project forward.
|
|
235
|
+
|
|
236
|
+
| Company | Logo | License |
|
|
237
|
+
| ------------ | ------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
|
|
238
|
+
| JetBrains | [](https://www.jetbrains.com/) | JetBrains provides licenses for products for active maintainers, renewable yearly |
|
|
239
|
+
| Crowdin | [](https://crowdin.com/) | Crowdin provides platform for translations |
|
|
240
|
+
| BrowserStack | [](https://www.browserstack.com/) | BrowserStack provides plan to run End to End testing for the UI |
|
|
241
|
+
| Docker | [](https://www.docker.com/community/open-source/application) | Docker offers unlimited pulls and unlimited egress to any and all users |
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
### FAQ / Contact / Troubleshoot
|
|
246
|
+
|
|
247
|
+
If you encounter any issues, consider the following options. Don't hesitate to ask or check our issues database; perhaps someone has already addressed what you're looking for.
|
|
248
|
+
|
|
249
|
+
- [Blog](https://verdaccio.org/blog/)
|
|
250
|
+
- [Donations](https://opencollective.com/verdaccio)
|
|
251
|
+
- [Report an Issue](https://github.com/verdaccio/verdaccio/issues/new/choose)
|
|
252
|
+
- [Discussions](https://github.com/verdaccio/verdaccio/issues?q=is%3Aissue+is%3Aopen+label%3Adiscuss)
|
|
253
|
+
- [Chat](https://discord.gg/7qWJxBf)
|
|
254
|
+
- [Logos](https://verdaccio.org/docs/en/logo)
|
|
255
|
+
- [Docker Examples](https://github.com/verdaccio/verdaccio/tree/master/docker-examples)
|
|
256
|
+
- [FAQ](https://github.com/verdaccio/verdaccio/discussions/categories/q-a)
|
|
257
|
+
|
|
7
258
|
### License
|
|
8
259
|
|
|
9
|
-
Verdaccio is [MIT licensed](https://github.com/verdaccio/verdaccio/blob/master/LICENSE)
|
|
260
|
+
Verdaccio is [MIT licensed](https://github.com/verdaccio/verdaccio/blob/master/LICENSE).
|
|
10
261
|
|
|
11
|
-
The Verdaccio documentation and logos (excluding /thanks
|
|
12
|
-
[Creative Commons licensed](https://github.com/verdaccio/verdaccio/blob/master/LICENSE-docs).
|
|
262
|
+
The Verdaccio documentation and logos (excluding `/assets/thanks` files such as `.md`, `.png`, and `.sketch`) are [Creative Commons licensed](https://creativecommons.org/licenses/by/4.0/).
|
package/bin/verdaccio
CHANGED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
10
|
+
key = keys[i];
|
|
11
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
12
|
+
get: ((k) => from[k]).bind(null, key),
|
|
13
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
19
|
+
value: mod,
|
|
20
|
+
enumerable: true
|
|
21
|
+
}) : target, mod));
|
|
22
|
+
//#endregion
|
|
23
|
+
exports.__toESM = __toESM;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
+
});
|
|
5
|
+
require("./_virtual/_rolldown/runtime.cjs");
|
|
6
|
+
const require_lib_run_server = require("./lib/run-server.cjs");
|
|
7
|
+
let _verdaccio_config = require("@verdaccio/config");
|
|
8
|
+
Object.defineProperty(exports, "Config", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function() {
|
|
11
|
+
return _verdaccio_config.Config;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(exports, "ConfigBuilder", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function() {
|
|
17
|
+
return _verdaccio_config.ConfigBuilder;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
exports.default = require_lib_run_server.runServer;
|
|
21
|
+
Object.defineProperty(exports, "getDefaultConfig", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function() {
|
|
24
|
+
return _verdaccio_config.getDefaultConfig;
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
exports.initServer = require_lib_run_server.initServer;
|
|
28
|
+
Object.defineProperty(exports, "parseConfigFile", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function() {
|
|
31
|
+
return _verdaccio_config.parseConfigFile;
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
exports.runServer = require_lib_run_server.runServer;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
let lodash_es = require("lodash-es");
|
|
4
|
+
lodash_es = require_runtime.__toESM(lodash_es);
|
|
5
|
+
let _verdaccio_config = require("@verdaccio/config");
|
|
6
|
+
//#region src/lib/auth-utils.ts
|
|
7
|
+
function getSecurity(config) {
|
|
8
|
+
if (lodash_es.isNil(config.security) === false) return lodash_es.merge(_verdaccio_config.defaultSecurity, config.security);
|
|
9
|
+
return _verdaccio_config.defaultSecurity;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
exports.getSecurity = getSecurity;
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=auth-utils.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-utils.cjs","names":[],"sources":["../../../src/lib/auth-utils.ts"],"sourcesContent":["import * as _ from 'lodash-es';\n\nimport { defaultSecurity } from '@verdaccio/config';\nimport { Config, Security } from '@verdaccio/types';\n\nexport function getSecurity(config: Config): Security {\n if (_.isNil(config.security) === false) {\n return _.merge(defaultSecurity, config.security);\n }\n\n return defaultSecurity;\n}\n"],"mappings":";;;;;;AAKA,SAAgB,YAAY,QAA0B;AACpD,KAAI,UAAE,MAAM,OAAO,SAAS,KAAK,MAC/B,QAAO,UAAE,MAAM,kBAAA,iBAAiB,OAAO,SAAS;AAGlD,QAAO,kBAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
+
});
|
|
5
|
+
require("../_virtual/_rolldown/runtime.cjs");
|
|
6
|
+
//#region src/lib/auth.ts
|
|
7
|
+
var auth_default = require("@verdaccio/auth").Auth;
|
|
8
|
+
//#endregion
|
|
9
|
+
exports.default = auth_default;
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=auth.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.cjs","names":[],"sources":["../../../src/lib/auth.ts"],"sourcesContent":["import { Auth } from '@verdaccio/auth';\n\nexport default Auth;\n"],"mappings":";;;;;;AAEA,IAAA,yCAAe,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
require("../_virtual/_rolldown/runtime.cjs");
|
|
4
|
+
const require_lib_run_server = require("./run-server.cjs");
|
|
5
|
+
let _verdaccio_cli = require("@verdaccio/cli");
|
|
6
|
+
//#region src/lib/cli.ts
|
|
7
|
+
var pkgVersion = "7.0.0-next-7.22";
|
|
8
|
+
if (pkgVersion.includes("canary")) console.warn("\n⚠️ WARNING: You are running a CANARY build of Verdaccio (v" + pkgVersion + ").\n This is an unstable pre-release version meant for testing only.\n Do not use in production. For stable releases: npm install -g verdaccio\n");
|
|
9
|
+
(0, _verdaccio_cli.runCli)({
|
|
10
|
+
startServer: require_lib_run_server.startServer,
|
|
11
|
+
version: pkgVersion,
|
|
12
|
+
pkgName: "verdaccio"
|
|
13
|
+
});
|
|
14
|
+
//#endregion
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=cli.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.cjs","names":[],"sources":["../../../src/lib/cli.ts"],"sourcesContent":["#!/usr/bin/env node\nimport { runCli } from '@verdaccio/cli';\n\nimport { startServer } from './run-server';\n\nconst pkgVersion = process.env.PACKAGE_VERSION || 'dev';\n\nif (pkgVersion.includes('canary')) {\n console.warn(\n '\\n' +\n '⚠️ WARNING: You are running a CANARY build of Verdaccio (v' +\n pkgVersion +\n ').\\n' +\n ' This is an unstable pre-release version meant for testing only.\\n' +\n ' Do not use in production. For stable releases: npm install -g verdaccio\\n'\n );\n}\n\n// Reuse @verdaccio/cli's command set, but inject 7.x's server factory so the\n// registry boots with the legacy-callback-capable Storage.\nrunCli({ startServer, version: pkgVersion, pkgName: 'verdaccio' });\n"],"mappings":";;;;;;AAKA,IAAM,aAAA;AAEN,IAAI,WAAW,SAAS,SAAS,CAC/B,SAAQ,KACN,kEAEE,aACA,uJAGH;2BAKI;CAAE,aAAA,uBAAA;CAAa,SAAS;CAAY,SAAS;CAAa,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
+
});
|
|
5
|
+
require("../_virtual/_rolldown/runtime.cjs");
|
|
6
|
+
let _verdaccio_config = require("@verdaccio/config");
|
|
7
|
+
let _verdaccio_core = require("@verdaccio/core");
|
|
8
|
+
//#region src/lib/config.ts
|
|
9
|
+
var Config = class extends _verdaccio_config.Config {
|
|
10
|
+
constructor(config) {
|
|
11
|
+
config.configPath = config.self_path;
|
|
12
|
+
super(config);
|
|
13
|
+
this.getMatchedPackagesSpec = (pkgName) => {
|
|
14
|
+
return _verdaccio_core.authUtils.getMatchedPackagesSpec(pkgName, this.packages);
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.default = Config;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=config.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.cjs","names":[],"sources":["../../../src/lib/config.ts"],"sourcesContent":["import { Config as ConfigCore } from '@verdaccio/config';\nimport { authUtils } from '@verdaccio/core';\n\nclass Config extends ConfigCore {\n public constructor(config: any) {\n config.configPath = config.self_path;\n super(config);\n // Temporary solution for plugins that depends on legacy configuration files\n this.getMatchedPackagesSpec = (pkgName) => {\n return authUtils.getMatchedPackagesSpec(pkgName, this.packages);\n };\n }\n}\n\nexport default Config;\n"],"mappings":";;;;;;;;AAGA,IAAM,SAAN,cAAqB,kBAAA,OAAW;CAC9B,YAAmB,QAAa;AAC9B,SAAO,aAAa,OAAO;AAC3B,QAAM,OAAO;AAEb,OAAK,0BAA0B,YAAY;AACzC,UAAO,gBAAA,UAAU,uBAAuB,SAAS,KAAK,SAAS"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
require("../_virtual/_rolldown/runtime.cjs");
|
|
3
|
+
let _verdaccio_core = require("@verdaccio/core");
|
|
4
|
+
//#region src/lib/constants.ts
|
|
5
|
+
var ROLES = _verdaccio_core.constants.ROLES;
|
|
6
|
+
var ERROR_CODE = { token_required: "token is required" };
|
|
7
|
+
var DEFAULT_REGISTRY = "https://registry.npmjs.org";
|
|
8
|
+
var DEFAULT_UPLINK = "npmjs";
|
|
9
|
+
var WEB_TITLE = "Verdaccio";
|
|
10
|
+
//#endregion
|
|
11
|
+
Object.defineProperty(exports, "API_ERROR", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function() {
|
|
14
|
+
return _verdaccio_core.API_ERROR;
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(exports, "API_MESSAGE", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function() {
|
|
20
|
+
return _verdaccio_core.API_MESSAGE;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
exports.DEFAULT_REGISTRY = DEFAULT_REGISTRY;
|
|
24
|
+
exports.DEFAULT_UPLINK = DEFAULT_UPLINK;
|
|
25
|
+
Object.defineProperty(exports, "DIST_TAGS", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function() {
|
|
28
|
+
return _verdaccio_core.DIST_TAGS;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
exports.ERROR_CODE = ERROR_CODE;
|
|
32
|
+
Object.defineProperty(exports, "HEADERS", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function() {
|
|
35
|
+
return _verdaccio_core.HEADERS;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
Object.defineProperty(exports, "HEADER_TYPE", {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function() {
|
|
41
|
+
return _verdaccio_core.HEADER_TYPE;
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
Object.defineProperty(exports, "HTTP_STATUS", {
|
|
45
|
+
enumerable: true,
|
|
46
|
+
get: function() {
|
|
47
|
+
return _verdaccio_core.HTTP_STATUS;
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
Object.defineProperty(exports, "LATEST", {
|
|
51
|
+
enumerable: true,
|
|
52
|
+
get: function() {
|
|
53
|
+
return _verdaccio_core.LATEST;
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
exports.ROLES = ROLES;
|
|
57
|
+
Object.defineProperty(exports, "SUPPORT_ERRORS", {
|
|
58
|
+
enumerable: true,
|
|
59
|
+
get: function() {
|
|
60
|
+
return _verdaccio_core.SUPPORT_ERRORS;
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
Object.defineProperty(exports, "TOKEN_BASIC", {
|
|
64
|
+
enumerable: true,
|
|
65
|
+
get: function() {
|
|
66
|
+
return _verdaccio_core.TOKEN_BASIC;
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
Object.defineProperty(exports, "TOKEN_BEARER", {
|
|
70
|
+
enumerable: true,
|
|
71
|
+
get: function() {
|
|
72
|
+
return _verdaccio_core.TOKEN_BEARER;
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
exports.WEB_TITLE = WEB_TITLE;
|
|
76
|
+
|
|
77
|
+
//# sourceMappingURL=constants.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.cjs","names":[],"sources":["../../../src/lib/constants.ts"],"sourcesContent":["import { constants as coreConstants } from '@verdaccio/core';\n\nexport {\n API_ERROR,\n API_MESSAGE,\n HTTP_STATUS,\n HEADERS,\n HEADER_TYPE,\n TOKEN_BASIC,\n TOKEN_BEARER,\n SUPPORT_ERRORS,\n DIST_TAGS,\n LATEST,\n} from '@verdaccio/core';\n\nexport const ROLES = coreConstants.ROLES;\n\n// verdaccio-specific values not provided by @verdaccio/core\nexport const ERROR_CODE = {\n token_required: 'token is required',\n};\nexport const DEFAULT_REGISTRY = 'https://registry.npmjs.org';\nexport const DEFAULT_UPLINK = 'npmjs';\nexport const WEB_TITLE = 'Verdaccio';\n"],"mappings":";;;;AAeA,IAAa,QAAQ,gBAAA,UAAc;AAGnC,IAAa,aAAa,EACxB,gBAAgB,qBACjB;AACD,IAAa,mBAAmB;AAChC,IAAa,iBAAiB;AAC9B,IAAa,YAAY"}
|