@verdaccio/loaders 8.0.0-next-8.28 → 8.0.1
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 +32 -0
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -15,6 +15,38 @@
|
|
|
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/loaders` package provides the plugin discovery and loading mechanism for Verdaccio. It searches for plugins across multiple locations including configured plugin paths, `node_modules`, and global installations, supporting both scoped (`@scope/name`) and unscoped packages.
|
|
23
|
+
|
|
24
|
+
## Installation
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
npm install @verdaccio/loaders
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Usage
|
|
31
|
+
|
|
32
|
+
```typescript
|
|
33
|
+
import { asyncLoadPlugin } from '@verdaccio/loaders';
|
|
34
|
+
|
|
35
|
+
// Load authentication plugins
|
|
36
|
+
const plugins = await asyncLoadPlugin(
|
|
37
|
+
pluginConfigs,
|
|
38
|
+
pluginOptions,
|
|
39
|
+
sanityCheck,
|
|
40
|
+
legacyMergeConfigs,
|
|
41
|
+
'verdaccio',
|
|
42
|
+
'auth'
|
|
43
|
+
);
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### API
|
|
47
|
+
|
|
48
|
+
- **`asyncLoadPlugin<T>(pluginConfigs, pluginOptions, sanityCheck, legacyMergeConfigs, prefix, pluginCategory)`** - Asynchronously discovers and loads Verdaccio plugins. Searches config.plugins paths, `node_modules`, and global locations. Validates each plugin with the provided sanity check function and returns an array of loaded plugin instances.
|
|
49
|
+
|
|
18
50
|
## Donations
|
|
19
51
|
|
|
20
52
|
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/loaders",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.1",
|
|
4
4
|
"description": "Verdaccio Loader Logic",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
"url": "https://github.com/verdaccio/verdaccio/issues"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@verdaccio/core": "8.
|
|
20
|
+
"@verdaccio/core": "8.1.0",
|
|
21
21
|
"debug": "4.4.3",
|
|
22
22
|
"lodash": "4.18.1"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@verdaccio/logger": "8.0.
|
|
26
|
-
"@verdaccio/config": "8.
|
|
27
|
-
"@verdaccio/core": "8.
|
|
25
|
+
"@verdaccio/logger": "8.0.1",
|
|
26
|
+
"@verdaccio/config": "8.1.0",
|
|
27
|
+
"@verdaccio/core": "8.1.0",
|
|
28
28
|
"@verdaccio-scope/verdaccio-auth-foo": "0.0.2",
|
|
29
|
-
"vitest": "
|
|
30
|
-
"verdaccio-auth-memory": "13.0.
|
|
29
|
+
"vitest": "4.1.2",
|
|
30
|
+
"verdaccio-auth-memory": "13.0.1"
|
|
31
31
|
},
|
|
32
32
|
"homepage": "https://verdaccio.org",
|
|
33
33
|
"keywords": [
|