Compare commits
8 Commits
@verdaccio
...
@verdaccio
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7fb5c45243 | ||
|
|
aecbd226de | ||
|
|
9ffa205076 | ||
|
|
1b217fd346 | ||
|
|
84373c4669 | ||
|
|
c17ee46519 | ||
|
|
6791c2bcfa | ||
|
|
9a2f4a4667 |
11
.changeset/gentle-parrots-lay.md
Normal file
11
.changeset/gentle-parrots-lay.md
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
'@verdaccio/config': minor
|
||||
'@verdaccio/local-storage': minor
|
||||
'@verdaccio/e2e-ui': minor
|
||||
---
|
||||
|
||||
Some verdaccio modules depend on 'mkdirp' library which provides recursive directory creation functionality.
|
||||
NodeJS can do this out of the box since v.10.12. The last commit in 'mkdirp' was made in early 2016, and it's mid 2021 now.
|
||||
Time to stick with a built-in library solution!
|
||||
|
||||
- All 'mkdirp' calls are replaced with appropriate 'fs' calls.
|
||||
@@ -46,6 +46,7 @@
|
||||
"big-lobsters-sin",
|
||||
"few-cooks-destroy",
|
||||
"fifty-jars-rest",
|
||||
"gentle-parrots-lay",
|
||||
"gentle-trains-switch",
|
||||
"healthy-bikes-behave",
|
||||
"healthy-poets-compare",
|
||||
@@ -65,6 +66,7 @@
|
||||
"spicy-frogs-press",
|
||||
"tender-bags-call",
|
||||
"three-pots-sit",
|
||||
"two-dolls-check"
|
||||
"two-dolls-check",
|
||||
"wild-jokes-beam"
|
||||
]
|
||||
}
|
||||
|
||||
32
.changeset/wild-jokes-beam.md
Normal file
32
.changeset/wild-jokes-beam.md
Normal file
@@ -0,0 +1,32 @@
|
||||
---
|
||||
'@verdaccio/types': minor
|
||||
'@verdaccio/ui-theme': minor
|
||||
'@verdaccio/web': minor
|
||||
---
|
||||
|
||||
web: allow ui hide package managers on sidebar
|
||||
|
||||
If there is a package manager of preference over others, you can define the package managers to be displayed on the detail page and sidebar, just define in the `config.yaml` and web section the list of package managers to be displayed.
|
||||
|
||||
```
|
||||
web:
|
||||
title: Verdaccio
|
||||
sort_packages: asc
|
||||
primary_color: #cccccc
|
||||
pkgManagers:
|
||||
- pnpm
|
||||
- yarn
|
||||
# - npm
|
||||
```
|
||||
|
||||
To disable all package managers, just define empty:
|
||||
|
||||
```
|
||||
web:
|
||||
title: Verdaccio
|
||||
sort_packages: asc
|
||||
primary_color: #cccccc
|
||||
pkgManagers:
|
||||
```
|
||||
|
||||
and the section would be hidden.
|
||||
12
SECURITY.md
12
SECURITY.md
@@ -4,11 +4,13 @@
|
||||
|
||||
The following table describes the versions of this project that are currently supported with security updates:
|
||||
|
||||
| Version | Supported |
|
||||
| ------- | ------------------ |
|
||||
| 2.x | :x: |
|
||||
| 3.x | :x: |
|
||||
| 4.x | :white_check_mark: |
|
||||
| Version | Supported |
|
||||
| --------- | ---------------------------------------- |
|
||||
| 2.x | :x: |
|
||||
| 3.x | :x: |
|
||||
| 4.x | :white_check_mark: (until 1st July 2021) |
|
||||
| 5.x | :white_check_mark: |
|
||||
| 6.x alpha | :x: |
|
||||
|
||||
## Responsible disclosure security policy
|
||||
|
||||
|
||||
76
docs/migration-v5-to-v6.md
Normal file
76
docs/migration-v5-to-v6.md
Normal file
@@ -0,0 +1,76 @@
|
||||
# Migration guide from Verdaccio 5 to Verdaccio 6
|
||||
|
||||
Notes regarding breaking changes for next major release.
|
||||
|
||||
> This list might growth over the development.
|
||||
|
||||
## Breaking changes
|
||||
|
||||
### New node-api interface [#2165](https://github.com/verdaccio/verdaccio/pull/2165)
|
||||
|
||||
If you are using the node-api, the new structure is Promise based and less arguments.
|
||||
|
||||
```js
|
||||
import { runServer } from '@verdaccio/node-api';
|
||||
// or
|
||||
import { runServer } from 'verdaccio';
|
||||
const app = await runServer(); // default configuration
|
||||
const app = await runServer('./config/config.yaml');
|
||||
const app = await runServer({ configuration });
|
||||
app.listen(4000, (event) => {
|
||||
// do something
|
||||
});
|
||||
```
|
||||
|
||||
### allow other password hashing algorithms [#1917](https://github.com/verdaccio/verdaccio/pull/1917)
|
||||
|
||||
The current implementation of the `htpasswd` module supports multiple hash formats on verify, but only `crypt` on sign in.
|
||||
`crypt` is an insecure old format, so to improve the security of the new `verdaccio` release we introduce the support of multiple hash algorithms on sign in step.
|
||||
|
||||
#### New hashing algorithms
|
||||
|
||||
The new possible hash algorithms to use are `bcrypt`, `md5`, `sha1`. `bcrypt` is chosen as a default, because of its customizable complexity and overall reliability. You can read more about them [here](https://httpd.apache.org/docs/2.4/misc/password_encryptions.html).
|
||||
|
||||
Two new properties are added to `auth` section in the configuration file:
|
||||
|
||||
- `algorithm` to choose the way you want to hash passwords.
|
||||
- `rounds` is used to determine `bcrypt` complexity. So one can improve security according to increasing computational power.
|
||||
|
||||
Example of the new `auth` config file section:
|
||||
|
||||
```yaml
|
||||
auth:
|
||||
htpasswd:
|
||||
file: ./htpasswd
|
||||
max_users: 1000
|
||||
# Hash algorithm, possible options are: "bcrypt", "md5", "sha1", "crypt".
|
||||
algorithm: bcrypt
|
||||
# Rounds number for "bcrypt", will be ignored for other algorithms.
|
||||
rounds: 10
|
||||
```
|
||||
|
||||
### Refactor config module, experiments renamed to flags [#1996](https://github.com/verdaccio/verdaccio/pull/1996)
|
||||
|
||||
- The `experiments` configuration is renamed to `flags`. The functionality is exactly the same.
|
||||
|
||||
```js
|
||||
flags: token: false;
|
||||
search: false;
|
||||
```
|
||||
|
||||
- The `self_path` property from the config file is being removed in favor of `config_file` full path.
|
||||
- Refactor `config` module, better types and utilities
|
||||
|
||||
### legacy token signature by removing crypto.createDecipher is deprecated [#1953](https://github.com/verdaccio/verdaccio/pull/1953)
|
||||
|
||||
- Replace signature handler for legacy tokens by removing deprecated crypto.createDecipher by createCipheriv
|
||||
- **The new signature invalidates all previous tokens generated by Verdaccio 5 or previous versions**.
|
||||
- The secret key must have 32 characters long
|
||||
> Remediation, update `.verdaccio-db.json` secret field with a secret key with 32 characters.
|
||||
|
||||
#### New environment variables
|
||||
|
||||
Introduce environment variables for legacy tokens.
|
||||
|
||||
- `VERDACCIO_LEGACY_ALGORITHM`: Allows to define the specific algorithm for the token signature which by default is `aes-256-ctr`
|
||||
- `VERDACCIO_LEGACY_ENCRYPTION_KEY`: By default, the token stores in the database, but using this variable allows to get it from memory
|
||||
@@ -1,5 +1,16 @@
|
||||
# @verdaccio/api
|
||||
|
||||
## 6.0.0-6-next.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [1b217fd3]
|
||||
- @verdaccio/config@6.0.0-6-next.6
|
||||
- @verdaccio/auth@6.0.0-6-next.8
|
||||
- @verdaccio/hooks@6.0.0-6-next.4
|
||||
- @verdaccio/store@6.0.0-6-next.8
|
||||
- @verdaccio/middleware@6.0.0-6-next.8
|
||||
|
||||
## 6.0.0-6-next.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/api",
|
||||
"version": "6.0.0-6-next.9",
|
||||
"version": "6.0.0-6-next.10",
|
||||
"description": "loaders logic",
|
||||
"main": "./build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -39,13 +39,13 @@
|
||||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@verdaccio/auth": "workspace:6.0.0-6-next.7",
|
||||
"@verdaccio/auth": "workspace:6.0.0-6-next.8",
|
||||
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.5",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.6",
|
||||
"@verdaccio/hooks": "workspace:6.0.0-6-next.4",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.4",
|
||||
"@verdaccio/middleware": "workspace:6.0.0-6-next.7",
|
||||
"@verdaccio/store": "workspace:6.0.0-6-next.7",
|
||||
"@verdaccio/middleware": "workspace:6.0.0-6-next.8",
|
||||
"@verdaccio/store": "workspace:6.0.0-6-next.8",
|
||||
"@verdaccio/tarball": "workspace:11.0.0-6-next.5",
|
||||
"@verdaccio/utils": "workspace:6.0.0-6-next.4",
|
||||
"cookies": "0.8.0",
|
||||
@@ -56,8 +56,8 @@
|
||||
"semver": "7.3.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/server": "workspace:6.0.0-6-next.11",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.5",
|
||||
"@verdaccio/server": "workspace:6.0.0-6-next.13",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.6",
|
||||
"body-parser": "1.19.0",
|
||||
"lodash": "^4.17.20",
|
||||
"supertest": "next"
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# @verdaccio/auth
|
||||
|
||||
## 6.0.0-6-next.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [1b217fd3]
|
||||
- @verdaccio/config@6.0.0-6-next.6
|
||||
- @verdaccio/loaders@6.0.0-6-next.4
|
||||
|
||||
## 6.0.0-6-next.7
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/auth",
|
||||
"version": "6.0.0-6-next.7",
|
||||
"version": "6.0.0-6-next.8",
|
||||
"description": "logger",
|
||||
"main": "./build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -40,7 +40,7 @@
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.5",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.6",
|
||||
"@verdaccio/loaders": "workspace:6.0.0-6-next.4",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.4",
|
||||
"@verdaccio/utils": "workspace:6.0.0-6-next.4",
|
||||
@@ -51,8 +51,8 @@
|
||||
"lodash": "4.17.15"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/mock": "workspace:6.0.0-6-next.5",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.5"
|
||||
"@verdaccio/mock": "workspace:6.0.0-6-next.6",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.6"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
|
||||
@@ -1,5 +1,21 @@
|
||||
# @verdaccio/cli
|
||||
|
||||
## 6.0.0-6-next.14
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/fastify-migration@6.0.0-6-next.9
|
||||
- @verdaccio/logger@6.0.0-6-next.4
|
||||
- @verdaccio/node-api@6.0.0-6-next.14
|
||||
|
||||
## 6.0.0-6-next.13
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [1b217fd3]
|
||||
- @verdaccio/config@6.0.0-6-next.6
|
||||
- @verdaccio/node-api@6.0.0-6-next.13
|
||||
|
||||
## 6.0.0-6-next.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/cli",
|
||||
"version": "6.0.0-6-next.12",
|
||||
"version": "6.0.0-6-next.14",
|
||||
"author": {
|
||||
"name": "Juan Picado",
|
||||
"email": "juanpicado19@gmail.com"
|
||||
@@ -43,9 +43,9 @@
|
||||
"build": "pnpm run build:js && pnpm run build:types"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.5",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.6",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.4",
|
||||
"@verdaccio/node-api": "workspace:6.0.0-6-next.12",
|
||||
"@verdaccio/node-api": "workspace:6.0.0-6-next.14",
|
||||
"@verdaccio/fastify-migration": "workspace:6.0.0-6-next.9",
|
||||
"commander": "6.2.0",
|
||||
"clipanion": "3.0.0-rc.11",
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
# @verdaccio/config
|
||||
|
||||
## 6.0.0-6-next.6
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 1b217fd3: Some verdaccio modules depend on 'mkdirp' library which provides recursive directory creation functionality.
|
||||
NodeJS can do this out of the box since v.10.12. The last commit in 'mkdirp' was made in early 2016, and it's mid 2021 now.
|
||||
Time to stick with a built-in library solution!
|
||||
|
||||
- All 'mkdirp' calls are replaced with appropriate 'fs' calls.
|
||||
|
||||
## 6.0.0-6-next.5
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/config",
|
||||
"version": "6.0.0-6-next.5",
|
||||
"version": "6.0.0-6-next.6",
|
||||
"description": "logger",
|
||||
"main": "./build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -45,7 +45,6 @@
|
||||
"js-yaml": "3.14.0",
|
||||
"lodash": "^4.17.20",
|
||||
"minimatch": "3.0.4",
|
||||
"mkdirp": "0.5.5",
|
||||
"yup": "^0.29.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -2,7 +2,6 @@ import fs from 'fs';
|
||||
import path from 'path';
|
||||
import Path from 'path';
|
||||
import _ from 'lodash';
|
||||
import mkdirp from 'mkdirp';
|
||||
import buildDebug from 'debug';
|
||||
|
||||
import { CHARACTER_ENCODING } from '@verdaccio/commons-api';
|
||||
@@ -67,7 +66,7 @@ export function readDefaultConfig(): Buffer {
|
||||
}
|
||||
|
||||
function createConfigFolder(configLocation): void {
|
||||
mkdirp.sync(Path.dirname(configLocation.path));
|
||||
fs.mkdirSync(Path.dirname(configLocation.path), { recursive: true });
|
||||
debug(`Creating default config file in %o`, configLocation?.path);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
"lockfile": "1.0.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.5"
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.6"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "rimraf ./build",
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/bcryptjs": "^2.4.2",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.5",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.6",
|
||||
"mockdate": "^3.0.2"
|
||||
},
|
||||
"scripts": {
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
# Change Log
|
||||
|
||||
## 11.0.0-6-next.6
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 1b217fd3: Some verdaccio modules depend on 'mkdirp' library which provides recursive directory creation functionality.
|
||||
NodeJS can do this out of the box since v.10.12. The last commit in 'mkdirp' was made in early 2016, and it's mid 2021 now.
|
||||
Time to stick with a built-in library solution!
|
||||
|
||||
- All 'mkdirp' calls are replaced with appropriate 'fs' calls.
|
||||
|
||||
## 11.0.0-6-next.5
|
||||
|
||||
### Major Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/local-storage",
|
||||
"version": "11.0.0-6-next.5",
|
||||
"version": "11.0.0-6-next.6",
|
||||
"description": "Local storage implementation",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -43,12 +43,11 @@
|
||||
"async": "^3.2.0",
|
||||
"debug": "^4.1.1",
|
||||
"lodash": "^4.17.20",
|
||||
"lowdb": "1.0.0",
|
||||
"mkdirp": "^0.5.5"
|
||||
"lowdb": "1.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/minimatch": "^3.0.3",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.5",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.6",
|
||||
"minimatch": "^3.0.4",
|
||||
"rmdir-sync": "^1.0.1"
|
||||
},
|
||||
|
||||
@@ -4,7 +4,6 @@ import buildDebug from 'debug';
|
||||
|
||||
import _ from 'lodash';
|
||||
import async from 'async';
|
||||
import mkdirp from 'mkdirp';
|
||||
import {
|
||||
Callback,
|
||||
Config,
|
||||
@@ -276,10 +275,9 @@ class LocalDatabase extends TokenActions implements IPluginStorage<{}> {
|
||||
}
|
||||
// Uses sync to prevent ugly race condition
|
||||
try {
|
||||
// https://www.npmjs.com/package/mkdirp#mkdirpsyncdir-opts
|
||||
const folderName = Path.dirname(this.path);
|
||||
debug('creating folder %o', folderName);
|
||||
mkdirp.sync(folderName);
|
||||
fs.mkdirSync(folderName, { recursive: true });
|
||||
debug('sync folder %o created succeed', folderName);
|
||||
} catch (err) {
|
||||
debug('sync create folder has failed with error: %o', err);
|
||||
|
||||
@@ -5,7 +5,6 @@ import path from 'path';
|
||||
import buildDebug from 'debug';
|
||||
|
||||
import _ from 'lodash';
|
||||
import mkdirp from 'mkdirp';
|
||||
import { UploadTarball, ReadTarball } from '@verdaccio/streams';
|
||||
import { unlockFile, readFile } from '@verdaccio/file-locking';
|
||||
import { Callback, Logger, Package, ILocalPackageManager, IUploadTarball } from '@verdaccio/types';
|
||||
@@ -353,7 +352,7 @@ export default class LocalFS implements ILocalFSPackageManager {
|
||||
|
||||
createTempFile((err) => {
|
||||
if (err && err.code === noSuchFile) {
|
||||
mkdirp(path.dirname(dest), function (err) {
|
||||
fs.mkdir(path.dirname(dest), { recursive: true }, function (err) {
|
||||
if (err) {
|
||||
return cb(err);
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import path from 'path';
|
||||
import fs from 'fs';
|
||||
|
||||
import mkdirp from 'mkdirp';
|
||||
import rm from 'rmdir-sync';
|
||||
import { Logger, ILocalPackageManager, Package } from '@verdaccio/types';
|
||||
|
||||
@@ -113,7 +112,7 @@ describe('Local FS test', () => {
|
||||
|
||||
describe('removePackage() group', () => {
|
||||
beforeEach(() => {
|
||||
mkdirp.sync(path.join(localTempStorage, '_toDelete'));
|
||||
fs.mkdirSync(path.join(localTempStorage, '_toDelete'), { recursive: true });
|
||||
});
|
||||
|
||||
test('removePackage() success', (done) => {
|
||||
@@ -183,7 +182,7 @@ describe('Local FS test', () => {
|
||||
beforeEach(() => {
|
||||
const writeTarballFolder: string = path.join(localTempStorage, '_writeTarball');
|
||||
rm(writeTarballFolder);
|
||||
mkdirp.sync(writeTarballFolder);
|
||||
fs.mkdirSync(writeTarballFolder, { recursive: true });
|
||||
});
|
||||
|
||||
test('writeTarball() success', (done) => {
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
"marked": "1.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.5"
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.6"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "rimraf ./build",
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
"fastify": "3.14.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.5"
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.6"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "rimraf ./build",
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
"access": "public"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.5"
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.6"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "rimraf ./build",
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
"@verdaccio/utils": "workspace:6.0.0-6-next.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.5",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.6",
|
||||
"express": "^4.17.1",
|
||||
"node-mocks-http": "^1.10.1"
|
||||
},
|
||||
|
||||
@@ -1,5 +1,36 @@
|
||||
# Change Log
|
||||
|
||||
## 11.0.0-6-next.6
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- aecbd226: web: allow ui hide package managers on sidebar
|
||||
|
||||
If there is a package manager of preference over others, you can define the package managers to be displayed on the detail page and sidebar, just define in the `config.yaml` and web section the list of package managers to be displayed.
|
||||
|
||||
```
|
||||
web:
|
||||
title: Verdaccio
|
||||
sort_packages: asc
|
||||
primary_color: #cccccc
|
||||
pkgManagers:
|
||||
- pnpm
|
||||
- yarn
|
||||
# - npm
|
||||
```
|
||||
|
||||
To disable all package managers, just define empty:
|
||||
|
||||
```
|
||||
web:
|
||||
title: Verdaccio
|
||||
sort_packages: asc
|
||||
primary_color: #cccccc
|
||||
pkgManagers:
|
||||
```
|
||||
|
||||
and the section would be hidden.
|
||||
|
||||
## 11.0.0-6-next.5
|
||||
|
||||
### Patch Changes
|
||||
|
||||
61
packages/core/types/index.d.ts
vendored
61
packages/core/types/index.d.ts
vendored
@@ -15,6 +15,50 @@ declare module '@verdaccio/types' {
|
||||
url?: string;
|
||||
}
|
||||
|
||||
type PackageManagers = 'pnpm' | 'yarn' | 'npm';
|
||||
|
||||
// FUTURE: WebConf and TemplateUIOptions should be merged .
|
||||
type CommonWebConf = {
|
||||
title?: string;
|
||||
logo?: string;
|
||||
favicon?: string;
|
||||
gravatar?: boolean;
|
||||
sort_packages?: string;
|
||||
darkMode?: boolean;
|
||||
url_prefix?: string;
|
||||
language?: string;
|
||||
scope?: string;
|
||||
pkgManagers?: PackageManagers[];
|
||||
};
|
||||
|
||||
/**
|
||||
* Options are passed to the index.html
|
||||
*/
|
||||
export type TemplateUIOptions = {
|
||||
uri?: string;
|
||||
darkMode?: boolean;
|
||||
protocol?: string;
|
||||
host?: string;
|
||||
base: string;
|
||||
primaryColor?: string;
|
||||
version?: string;
|
||||
logoURI?: string;
|
||||
} & CommonWebConf;
|
||||
|
||||
/**
|
||||
* Options on config.yaml for web
|
||||
*/
|
||||
type WebConf = {
|
||||
// FIXME: rename to primaryColor and move it to CommonWebConf
|
||||
primary_color?: string;
|
||||
enable?: boolean;
|
||||
scriptsHead?: string[];
|
||||
scriptsBodyAfter?: string[];
|
||||
metaScripts?: string[];
|
||||
bodyBefore?: string[];
|
||||
bodyAfter?: string[];
|
||||
} & CommonWebConf;
|
||||
|
||||
interface Dist {
|
||||
integrity?: string;
|
||||
shasum: string;
|
||||
@@ -276,23 +320,6 @@ declare module '@verdaccio/types' {
|
||||
interface ListenAddress {
|
||||
[key: string]: string;
|
||||
}
|
||||
|
||||
interface WebConf {
|
||||
enable?: boolean;
|
||||
title?: string;
|
||||
logo?: string;
|
||||
favicon?: string;
|
||||
gravatar?: boolean;
|
||||
sort_packages?: string;
|
||||
scriptsHead?: string[];
|
||||
scriptsBodyAfter?: string[];
|
||||
metaScripts?: string[];
|
||||
bodyBefore?: string[];
|
||||
bodyAfter?: string[];
|
||||
darkMode?: boolean;
|
||||
primary_color?: string;
|
||||
}
|
||||
|
||||
interface HttpsConfKeyCert {
|
||||
key: string;
|
||||
cert: string;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/types",
|
||||
"version": "11.0.0-6-next.5",
|
||||
"version": "11.0.0-6-next.6",
|
||||
"description": "verdaccio types definitions",
|
||||
"keywords": [
|
||||
"private",
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"node-mocks-http": "^1.10.1",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.5"
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.6"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "rimraf ./build",
|
||||
|
||||
@@ -38,10 +38,10 @@
|
||||
"request": "2.87.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/auth": "workspace:6.0.0-6-next.7",
|
||||
"@verdaccio/auth": "workspace:6.0.0-6-next.8",
|
||||
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.5",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.5",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.6",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.6",
|
||||
"nock": "^13.0.4"
|
||||
},
|
||||
"scripts": {
|
||||
|
||||
@@ -19,9 +19,9 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.5",
|
||||
"@verdaccio/mock": "workspace:6.0.0-6-next.5",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.5"
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.6",
|
||||
"@verdaccio/mock": "workspace:6.0.0-6-next.6",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.6"
|
||||
},
|
||||
"homepage": "https://verdaccio.org",
|
||||
"keywords": [
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/pino": "^6.3.3",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.5"
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.6"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# @verdaccio/middleware
|
||||
|
||||
## 6.0.0-6-next.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/auth@6.0.0-6-next.8
|
||||
|
||||
## 6.0.0-6-next.7
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/middleware",
|
||||
"version": "6.0.0-6-next.7",
|
||||
"version": "6.0.0-6-next.8",
|
||||
"description": "loaders logic",
|
||||
"main": "./build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -39,7 +39,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"debug": "^4.3.1",
|
||||
"@verdaccio/auth": "workspace:6.0.0-6-next.7",
|
||||
"@verdaccio/auth": "workspace:6.0.0-6-next.8",
|
||||
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.4",
|
||||
"@verdaccio/utils": "workspace:6.0.0-6-next.4",
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
# @verdaccio/mock
|
||||
|
||||
## 6.0.0-6-next.6
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [1b217fd3]
|
||||
- @verdaccio/config@6.0.0-6-next.6
|
||||
|
||||
## 6.0.0-6-next.5
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/mock",
|
||||
"version": "6.0.0-6-next.5",
|
||||
"version": "6.0.0-6-next.6",
|
||||
"author": {
|
||||
"name": "Juan Picado",
|
||||
"email": "juanpicado19@gmail.com"
|
||||
@@ -40,7 +40,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.5",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.6",
|
||||
"@verdaccio/utils": "workspace:6.0.0-6-next.4",
|
||||
"debug": "^4.2.0",
|
||||
"fs-extra": "^8.1.0",
|
||||
@@ -49,7 +49,7 @@
|
||||
"supertest": "^4.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.5"
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.6"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
|
||||
@@ -1,5 +1,20 @@
|
||||
# @verdaccio/node-api
|
||||
|
||||
## 6.0.0-6-next.14
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/logger@6.0.0-6-next.4
|
||||
- @verdaccio/server@6.0.0-6-next.13
|
||||
|
||||
## 6.0.0-6-next.13
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [1b217fd3]
|
||||
- @verdaccio/config@6.0.0-6-next.6
|
||||
- @verdaccio/server@6.0.0-6-next.12
|
||||
|
||||
## 6.0.0-6-next.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/node-api",
|
||||
"version": "6.0.0-6-next.12",
|
||||
"version": "6.0.0-6-next.14",
|
||||
"description": "node API",
|
||||
"main": "build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -40,16 +40,16 @@
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.5",
|
||||
"@verdaccio/server": "workspace:6.0.0-6-next.11",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.6",
|
||||
"@verdaccio/server": "workspace:6.0.0-6-next.13",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.4",
|
||||
"core-js": "^3.6.5",
|
||||
"debug": "^4.2.0",
|
||||
"lodash": "^4.17.20"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/mock": "workspace:6.0.0-6-next.5",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.5",
|
||||
"@verdaccio/mock": "workspace:6.0.0-6-next.6",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.6",
|
||||
"jest-mock-process": "^1.4.0",
|
||||
"selfsigned": "1.10.7",
|
||||
"supertest": "^6.1.3"
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/activedirectory2": "^1.2.1",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.5"
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.6"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "rimraf ./build",
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
"node-fetch": "^2.6.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.5",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.6",
|
||||
"body-parser": "^1.19.0",
|
||||
"nock": "^12.0.3",
|
||||
"supertest": "^4.0.2"
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.5"
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.6"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "rimraf ./build",
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
"aws-sdk": "^2.607.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.5",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.6",
|
||||
"recursive-readdir": "2.2.2"
|
||||
},
|
||||
"scripts": {
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
"@verdaccio/streams": "workspace:11.0.0-alpha.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.5",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.6",
|
||||
"memory-fs": "0.5.0"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
"memfs": "3.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.5"
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.6"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "rimraf ./build",
|
||||
|
||||
@@ -1,5 +1,36 @@
|
||||
# @verdaccio/ui-theme
|
||||
|
||||
## 6.0.0-6-next.7
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- aecbd226: web: allow ui hide package managers on sidebar
|
||||
|
||||
If there is a package manager of preference over others, you can define the package managers to be displayed on the detail page and sidebar, just define in the `config.yaml` and web section the list of package managers to be displayed.
|
||||
|
||||
```
|
||||
web:
|
||||
title: Verdaccio
|
||||
sort_packages: asc
|
||||
primary_color: #cccccc
|
||||
pkgManagers:
|
||||
- pnpm
|
||||
- yarn
|
||||
# - npm
|
||||
```
|
||||
|
||||
To disable all package managers, just define empty:
|
||||
|
||||
```
|
||||
web:
|
||||
title: Verdaccio
|
||||
sort_packages: asc
|
||||
primary_color: #cccccc
|
||||
pkgManagers:
|
||||
```
|
||||
|
||||
and the section would be hidden.
|
||||
|
||||
## 6.0.0-6-next.6
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -15,6 +15,7 @@ global.__VERDACCIO_BASENAME_UI_OPTIONS = {
|
||||
darkMode: false,
|
||||
language: 'en-US',
|
||||
uri: 'http://localhost:4873',
|
||||
pkgManagers: ['pnpm', 'yarn', 'npm'],
|
||||
title: 'Verdaccio Dev UI',
|
||||
scope: '',
|
||||
version: 'v1.0.0',
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/ui-theme",
|
||||
"version": "6.0.0-6-next.6",
|
||||
"version": "6.0.0-6-next.7",
|
||||
"description": "Verdaccio User Interface",
|
||||
"author": {
|
||||
"name": "Verdaccio Core Team",
|
||||
@@ -29,7 +29,7 @@
|
||||
"@testing-library/dom": "^7.29.0",
|
||||
"@testing-library/jest-dom": "^5.11.6",
|
||||
"@testing-library/react": "10.4.9",
|
||||
"@verdaccio/node-api": "workspace:6.0.0-6-next.12",
|
||||
"@verdaccio/node-api": "workspace:6.0.0-6-next.14",
|
||||
"autosuggest-highlight": "3.1.1",
|
||||
"babel-loader": "^8.2.2",
|
||||
"babel-plugin-dynamic-import-node": "^2.3.3",
|
||||
|
||||
@@ -34,7 +34,7 @@ const ActionBar: React.FC = () => {
|
||||
}
|
||||
|
||||
return (
|
||||
<Box alignItems="center" display="flex" marginBottom="8px">
|
||||
<Box alignItems="center" display="flex" marginBottom="14px">
|
||||
{actions.map((action) => (
|
||||
<ActionBarAction key={action.link} {...action} />
|
||||
))}
|
||||
|
||||
@@ -16,4 +16,7 @@ const Wrapper = styled('div')<{ theme?: Theme }>(({ theme }) => ({
|
||||
background: theme?.palette.white,
|
||||
color: theme?.palette.black,
|
||||
padding: theme?.spacing(2, 3),
|
||||
ul: {
|
||||
listStyle: 'disc',
|
||||
},
|
||||
}));
|
||||
|
||||
@@ -9,6 +9,10 @@ Object {
|
||||
padding: 16px 24px;
|
||||
}
|
||||
|
||||
.emotion-0 ul {
|
||||
list-style: disc;
|
||||
}
|
||||
|
||||
<body>
|
||||
<div>
|
||||
<div
|
||||
@@ -24,6 +28,10 @@ Object {
|
||||
padding: 16px 24px;
|
||||
}
|
||||
|
||||
.emotion-0 ul {
|
||||
list-style: disc;
|
||||
}
|
||||
|
||||
<div>
|
||||
<div
|
||||
class="markdown-body emotion-0 emotion-1"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
|
||||
import { render } from 'verdaccio-ui/utils/test-react-testing-library';
|
||||
import { render, screen } from 'verdaccio-ui/utils/test-react-testing-library';
|
||||
|
||||
import { DetailContext } from '../../context';
|
||||
import { DetailContextProps } from '../../version-config';
|
||||
@@ -22,11 +22,14 @@ const ComponentToBeRendered: React.FC = () => (
|
||||
/* eslint-disable react/jsx-no-bind*/
|
||||
describe('<Install />', () => {
|
||||
test('renders correctly', () => {
|
||||
const { container } = render(<ComponentToBeRendered />);
|
||||
expect(container.firstChild).toMatchSnapshot();
|
||||
render(<ComponentToBeRendered />);
|
||||
expect(screen.getByText('pnpm install foo')).toBeInTheDocument();
|
||||
expect(screen.getByText('yarn add foo')).toBeInTheDocument();
|
||||
expect(screen.getByText('npm install foo')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
test('should have 3 children', () => {
|
||||
window.__VERDACCIO_BASENAME_UI_OPTIONS.pkgManagers = ['yarn', 'pnpm', 'npm'];
|
||||
const { getByTestId } = render(<ComponentToBeRendered />);
|
||||
const installListItems = getByTestId('installList');
|
||||
// installitems + subHeader = 4
|
||||
@@ -34,13 +37,17 @@ describe('<Install />', () => {
|
||||
});
|
||||
|
||||
test('should have the element NPM', () => {
|
||||
window.__VERDACCIO_BASENAME_UI_OPTIONS.pkgManagers = ['npm'];
|
||||
const { getByTestId, queryByText } = render(<ComponentToBeRendered />);
|
||||
expect(getByTestId('installListItem-npm')).toBeTruthy();
|
||||
expect(queryByText(`npm install ${detailContextValue.packageName}`)).toBeTruthy();
|
||||
expect(queryByText('Install using npm')).toBeTruthy();
|
||||
expect(screen.queryByText('pnpm install foo')).not.toBeInTheDocument();
|
||||
expect(screen.queryByText('yarn add foo')).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
test('should have the element YARN', () => {
|
||||
window.__VERDACCIO_BASENAME_UI_OPTIONS.pkgManagers = ['yarn'];
|
||||
const { getByTestId, queryByText } = render(<ComponentToBeRendered />);
|
||||
expect(getByTestId('installListItem-yarn')).toBeTruthy();
|
||||
expect(queryByText(`yarn add ${detailContextValue.packageName}`)).toBeTruthy();
|
||||
@@ -48,6 +55,7 @@ describe('<Install />', () => {
|
||||
});
|
||||
|
||||
test('should have the element PNPM', () => {
|
||||
window.__VERDACCIO_BASENAME_UI_OPTIONS.pkgManagers = ['pnpm'];
|
||||
const { getByTestId, queryByText } = render(<ComponentToBeRendered />);
|
||||
expect(getByTestId('installListItem-pnpm')).toBeTruthy();
|
||||
expect(queryByText(`pnpm install ${detailContextValue.packageName}`)).toBeTruthy();
|
||||
|
||||
@@ -5,18 +5,20 @@ import { useTranslation } from 'react-i18next';
|
||||
import List from 'verdaccio-ui/components/List';
|
||||
import Text from 'verdaccio-ui/components/Text';
|
||||
import { Theme } from 'verdaccio-ui/design-tokens/theme';
|
||||
import { useConfig } from 'verdaccio-ui/providers/config';
|
||||
|
||||
import { DetailContext } from '../..';
|
||||
|
||||
import InstallListItem, { DependencyManager } from './InstallListItem';
|
||||
|
||||
const StyledText = styled(Text)<{ theme?: Theme }>((props) => ({
|
||||
fontWeight: props.theme && props.theme.fontWeight.bold,
|
||||
fontWeight: props.theme?.fontWeight.bold,
|
||||
textTransform: 'capitalize',
|
||||
}));
|
||||
|
||||
const Install: React.FC = () => {
|
||||
const { t } = useTranslation();
|
||||
const { configOptions } = useConfig();
|
||||
const detailContext = useContext(DetailContext);
|
||||
|
||||
const { packageMeta, packageName } = detailContext;
|
||||
@@ -25,15 +27,26 @@ const Install: React.FC = () => {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
const hasNpm = configOptions?.pkgManagers?.includes('npm');
|
||||
const hasYarn = configOptions?.pkgManagers?.includes('yarn');
|
||||
const hasPnpm = configOptions?.pkgManagers?.includes('pnpm') ?? true;
|
||||
const hasPkgManagers = hasNpm | hasPnpm | hasYarn;
|
||||
|
||||
return hasPkgManagers ? (
|
||||
<List
|
||||
data-testid={'installList'}
|
||||
subheader={<StyledText variant={'subtitle1'}>{t('sidebar.installation.title')}</StyledText>}>
|
||||
<InstallListItem dependencyManager={DependencyManager.NPM} packageName={packageName} />
|
||||
<InstallListItem dependencyManager={DependencyManager.YARN} packageName={packageName} />
|
||||
<InstallListItem dependencyManager={DependencyManager.PNPM} packageName={packageName} />
|
||||
{hasNpm && (
|
||||
<InstallListItem dependencyManager={DependencyManager.NPM} packageName={packageName} />
|
||||
)}
|
||||
{hasYarn && (
|
||||
<InstallListItem dependencyManager={DependencyManager.YARN} packageName={packageName} />
|
||||
)}
|
||||
{hasPnpm && (
|
||||
<InstallListItem dependencyManager={DependencyManager.PNPM} packageName={packageName} />
|
||||
)}
|
||||
</List>
|
||||
);
|
||||
) : null;
|
||||
};
|
||||
|
||||
export default Install;
|
||||
|
||||
@@ -1,266 +0,0 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`<Install /> renders correctly 1`] = `
|
||||
.emotion-0 {
|
||||
font-weight: 700;
|
||||
text-transform: capitalize;
|
||||
}
|
||||
|
||||
.emotion-2 {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.emotion-2:hover {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.emotion-4 {
|
||||
border-radius: 0px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.emotion-4 img {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.emotion-6 {
|
||||
padding: 0 10px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.emotion-8 {
|
||||
display: -webkit-box;
|
||||
display: -webkit-flex;
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-webkit-align-items: center;
|
||||
-webkit-box-align: center;
|
||||
-ms-flex-align: center;
|
||||
align-items: center;
|
||||
-webkit-box-pack: justify;
|
||||
-webkit-justify-content: space-between;
|
||||
-ms-flex-pack: justify;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.emotion-10 {
|
||||
display: inline-block;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
height: 21px;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
<ul
|
||||
class="MuiList-root MuiList-padding MuiList-subheader"
|
||||
data-testid="installList"
|
||||
>
|
||||
<span
|
||||
class="MuiTypography-root emotion-0 emotion-1 MuiTypography-subtitle1"
|
||||
>
|
||||
Installation
|
||||
</span>
|
||||
<div
|
||||
aria-disabled="false"
|
||||
class="MuiButtonBase-root MuiListItem-root emotion-2 emotion-3 MuiListItem-gutters MuiListItem-button"
|
||||
data-testid="installListItem-npm"
|
||||
role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<div
|
||||
class="MuiAvatar-root MuiAvatar-circle emotion-4 emotion-5"
|
||||
>
|
||||
<img
|
||||
alt="npm"
|
||||
class="MuiAvatar-img"
|
||||
src="[object Object]"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
class="MuiListItemText-root emotion-6 emotion-7 MuiListItemText-multiline"
|
||||
>
|
||||
<span
|
||||
class="MuiTypography-root MuiListItemText-primary MuiTypography-body1 MuiTypography-displayBlock"
|
||||
>
|
||||
<div
|
||||
class="emotion-8 emotion-9"
|
||||
>
|
||||
<span
|
||||
class="emotion-10 emotion-11"
|
||||
>
|
||||
npm install foo
|
||||
</span>
|
||||
<button
|
||||
class="MuiButtonBase-root MuiIconButton-root"
|
||||
data-testid="copy-icon"
|
||||
tabindex="0"
|
||||
title="Copy to clipboard"
|
||||
type="button"
|
||||
>
|
||||
<span
|
||||
class="MuiIconButton-label"
|
||||
>
|
||||
<svg
|
||||
aria-hidden="true"
|
||||
class="MuiSvgIcon-root"
|
||||
focusable="false"
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path
|
||||
d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4l6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"
|
||||
/>
|
||||
</svg>
|
||||
</span>
|
||||
<span
|
||||
class="MuiTouchRipple-root"
|
||||
/>
|
||||
</button>
|
||||
</div>
|
||||
</span>
|
||||
<p
|
||||
class="MuiTypography-root MuiListItemText-secondary MuiTypography-body2 MuiTypography-colorTextSecondary MuiTypography-displayBlock"
|
||||
>
|
||||
Install using npm
|
||||
</p>
|
||||
</div>
|
||||
<span
|
||||
class="MuiTouchRipple-root"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
aria-disabled="false"
|
||||
class="MuiButtonBase-root MuiListItem-root emotion-2 emotion-3 MuiListItem-gutters MuiListItem-button"
|
||||
data-testid="installListItem-yarn"
|
||||
role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<div
|
||||
class="MuiAvatar-root MuiAvatar-circle emotion-4 emotion-5"
|
||||
>
|
||||
<img
|
||||
alt="yarn"
|
||||
class="MuiAvatar-img"
|
||||
src="[object Object]"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
class="MuiListItemText-root emotion-6 emotion-7 MuiListItemText-multiline"
|
||||
>
|
||||
<span
|
||||
class="MuiTypography-root MuiListItemText-primary MuiTypography-body1 MuiTypography-displayBlock"
|
||||
>
|
||||
<div
|
||||
class="emotion-8 emotion-9"
|
||||
>
|
||||
<span
|
||||
class="emotion-10 emotion-11"
|
||||
>
|
||||
yarn add foo
|
||||
</span>
|
||||
<button
|
||||
class="MuiButtonBase-root MuiIconButton-root"
|
||||
data-testid="copy-icon"
|
||||
tabindex="0"
|
||||
title="Copy to clipboard"
|
||||
type="button"
|
||||
>
|
||||
<span
|
||||
class="MuiIconButton-label"
|
||||
>
|
||||
<svg
|
||||
aria-hidden="true"
|
||||
class="MuiSvgIcon-root"
|
||||
focusable="false"
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path
|
||||
d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4l6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"
|
||||
/>
|
||||
</svg>
|
||||
</span>
|
||||
<span
|
||||
class="MuiTouchRipple-root"
|
||||
/>
|
||||
</button>
|
||||
</div>
|
||||
</span>
|
||||
<p
|
||||
class="MuiTypography-root MuiListItemText-secondary MuiTypography-body2 MuiTypography-colorTextSecondary MuiTypography-displayBlock"
|
||||
>
|
||||
Install using yarn
|
||||
</p>
|
||||
</div>
|
||||
<span
|
||||
class="MuiTouchRipple-root"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
aria-disabled="false"
|
||||
class="MuiButtonBase-root MuiListItem-root emotion-2 emotion-3 MuiListItem-gutters MuiListItem-button"
|
||||
data-testid="installListItem-pnpm"
|
||||
role="button"
|
||||
tabindex="0"
|
||||
>
|
||||
<div
|
||||
class="MuiAvatar-root MuiAvatar-circle emotion-4 emotion-5"
|
||||
>
|
||||
<img
|
||||
alt="pnpm"
|
||||
class="MuiAvatar-img"
|
||||
src="[object Object]"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
class="MuiListItemText-root emotion-6 emotion-7 MuiListItemText-multiline"
|
||||
>
|
||||
<span
|
||||
class="MuiTypography-root MuiListItemText-primary MuiTypography-body1 MuiTypography-displayBlock"
|
||||
>
|
||||
<div
|
||||
class="emotion-8 emotion-9"
|
||||
>
|
||||
<span
|
||||
class="emotion-10 emotion-11"
|
||||
>
|
||||
pnpm install foo
|
||||
</span>
|
||||
<button
|
||||
class="MuiButtonBase-root MuiIconButton-root"
|
||||
data-testid="copy-icon"
|
||||
tabindex="0"
|
||||
title="Copy to clipboard"
|
||||
type="button"
|
||||
>
|
||||
<span
|
||||
class="MuiIconButton-label"
|
||||
>
|
||||
<svg
|
||||
aria-hidden="true"
|
||||
class="MuiSvgIcon-root"
|
||||
focusable="false"
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path
|
||||
d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4l6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"
|
||||
/>
|
||||
</svg>
|
||||
</span>
|
||||
<span
|
||||
class="MuiTouchRipple-root"
|
||||
/>
|
||||
</button>
|
||||
</div>
|
||||
</span>
|
||||
<p
|
||||
class="MuiTypography-root MuiListItemText-secondary MuiTypography-body2 MuiTypography-colorTextSecondary MuiTypography-displayBlock"
|
||||
>
|
||||
Install using pnpm
|
||||
</p>
|
||||
</div>
|
||||
<span
|
||||
class="MuiTouchRipple-root"
|
||||
/>
|
||||
</div>
|
||||
</ul>
|
||||
`;
|
||||
@@ -1,26 +1,12 @@
|
||||
import { TemplateUIOptions } from '@verdaccio/types';
|
||||
import isEmpty from 'lodash/isEmpty';
|
||||
import isNil from 'lodash/isNil';
|
||||
import React, { createContext, FunctionComponent, useContext, useMemo, useState } from 'react';
|
||||
|
||||
import { PRIMARY_COLOR } from 'verdaccio-ui/utils/colors';
|
||||
|
||||
export type VerdaccioOptions = {
|
||||
url_prefix: string;
|
||||
base: string;
|
||||
scope: string;
|
||||
title: string;
|
||||
primaryColor: string;
|
||||
darkMode: boolean;
|
||||
uri?: string;
|
||||
language?: string;
|
||||
version?: string;
|
||||
protocol?: string;
|
||||
host?: string;
|
||||
logo?: string;
|
||||
};
|
||||
|
||||
type ConfigProviderProps = {
|
||||
configOptions: VerdaccioOptions;
|
||||
configOptions: TemplateUIOptions;
|
||||
setConfigOptions: Function;
|
||||
};
|
||||
|
||||
@@ -28,6 +14,7 @@ const defaultValues: ConfigProviderProps = {
|
||||
configOptions: {
|
||||
primaryColor: PRIMARY_COLOR,
|
||||
darkMode: false,
|
||||
pkgManagers: ['yarn', 'pnpm', 'npm'],
|
||||
scope: '',
|
||||
base: '',
|
||||
url_prefix: '',
|
||||
|
||||
@@ -2,6 +2,9 @@ web:
|
||||
title: Verdaccio Local Dev
|
||||
sort_packages: asc
|
||||
primary_color: #CCC
|
||||
pkgManagers:
|
||||
- npm
|
||||
- yarn
|
||||
|
||||
plugins: ../
|
||||
|
||||
|
||||
@@ -8,10 +8,11 @@ import config from './webpack.dev.config.babel';
|
||||
|
||||
const compiler = webpack(config);
|
||||
const spinner = ora('Compiler is running...').start();
|
||||
const port = 4873;
|
||||
compiler.hooks.done.tap('Verdaccio Dev Server', () => {
|
||||
if (!global.rebuild) {
|
||||
spinner.stop();
|
||||
console.log('Dev Server Listening at http://localhost:4873/');
|
||||
console.log(`Dev Server Listening at http://localhost:${port}/`);
|
||||
global.rebuild = true;
|
||||
}
|
||||
});
|
||||
@@ -40,7 +41,7 @@ new WebpackDevServer(compiler, {
|
||||
target: 'http://localhost:8000',
|
||||
},
|
||||
],
|
||||
}).listen(4873, 'localhost', function (err) {
|
||||
}).listen(port, 'localhost', function (err) {
|
||||
if (err) {
|
||||
return console.log(err);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
import fs from 'fs';
|
||||
|
||||
import FriendlyErrorsPlugin from 'friendly-errors-webpack-plugin';
|
||||
import HTMLWebpackPlugin from 'html-webpack-plugin';
|
||||
import yalm from 'js-yaml';
|
||||
import StyleLintPlugin from 'stylelint-webpack-plugin';
|
||||
import webpack from 'webpack';
|
||||
|
||||
@@ -8,6 +11,7 @@ import env from '../config/env';
|
||||
import getPackageJson from './getPackageJson';
|
||||
import baseConfig from './webpack.config';
|
||||
|
||||
const configJsonFormat = yalm.safeLoad(fs.readFileSync('./tools/_verdaccio.config.yaml', 'utf8'));
|
||||
export default {
|
||||
...baseConfig,
|
||||
mode: 'development',
|
||||
@@ -35,8 +39,7 @@ export default {
|
||||
}),
|
||||
new HTMLWebpackPlugin({
|
||||
__UI_OPTIONS: JSON.stringify({
|
||||
title: 'Verdaccio Dev UI',
|
||||
scope: '',
|
||||
...configJsonFormat.web,
|
||||
filename: 'index.html',
|
||||
verdaccioURL: '//localhost:4873',
|
||||
base: new URL('/', 'http://localhost:4873'),
|
||||
|
||||
@@ -1,13 +1,20 @@
|
||||
// FIXME: this should comes from @verdaccio/types
|
||||
|
||||
type PackageManagers = 'pnpm' | 'yarn' | 'npm';
|
||||
export interface VerdaccioOptions {
|
||||
// @deprecated
|
||||
url_prefix: string;
|
||||
// @deprecated
|
||||
base: string;
|
||||
basePath: string;
|
||||
basename: string;
|
||||
scope: string;
|
||||
title: string;
|
||||
primaryColor: string;
|
||||
darkMode: boolean;
|
||||
uri?: string;
|
||||
language?: string;
|
||||
darkMode?: boolean;
|
||||
version?: string;
|
||||
protocol?: string;
|
||||
host?: string;
|
||||
logo?: string;
|
||||
pkgManagers?: PackageManagers[];
|
||||
}
|
||||
|
||||
declare global {
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# @verdaccio/proxy
|
||||
|
||||
## 6.0.0-6-next.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [1b217fd3]
|
||||
- @verdaccio/config@6.0.0-6-next.6
|
||||
- @verdaccio/local-storage@11.0.0-6-next.6
|
||||
|
||||
## 6.0.0-6-next.7
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/proxy",
|
||||
"version": "6.0.0-6-next.7",
|
||||
"version": "6.0.0-6-next.8",
|
||||
"description": "verdaccio proxy fetcher",
|
||||
"main": "./build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -40,8 +40,8 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.5",
|
||||
"@verdaccio/local-storage": "workspace:11.0.0-6-next.5",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.6",
|
||||
"@verdaccio/local-storage": "workspace:11.0.0-6-next.6",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.4",
|
||||
"@verdaccio/streams": "workspace:11.0.0-alpha.3",
|
||||
"@verdaccio/utils": "workspace:6.0.0-6-next.4",
|
||||
@@ -50,7 +50,7 @@
|
||||
"request": "2.87.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.5"
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.6"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
|
||||
@@ -1,5 +1,31 @@
|
||||
# @verdaccio/server
|
||||
|
||||
## 6.0.0-6-next.13
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [aecbd226]
|
||||
- @verdaccio/web@6.0.0-6-next.12
|
||||
- @verdaccio/api@6.0.0-6-next.10
|
||||
- @verdaccio/auth@6.0.0-6-next.8
|
||||
- @verdaccio/loaders@6.0.0-6-next.4
|
||||
- @verdaccio/logger@6.0.0-6-next.4
|
||||
- verdaccio-audit@11.0.0-alpha.4
|
||||
- @verdaccio/store@6.0.0-6-next.8
|
||||
|
||||
## 6.0.0-6-next.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [1b217fd3]
|
||||
- @verdaccio/config@6.0.0-6-next.6
|
||||
- @verdaccio/api@6.0.0-6-next.10
|
||||
- @verdaccio/auth@6.0.0-6-next.8
|
||||
- @verdaccio/loaders@6.0.0-6-next.4
|
||||
- @verdaccio/store@6.0.0-6-next.8
|
||||
- @verdaccio/web@6.0.0-6-next.11
|
||||
- @verdaccio/middleware@6.0.0-6-next.8
|
||||
|
||||
## 6.0.0-6-next.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/server",
|
||||
"version": "6.0.0-6-next.11",
|
||||
"version": "6.0.0-6-next.13",
|
||||
"description": "server logic",
|
||||
"main": "./build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -30,16 +30,16 @@
|
||||
"npm": ">=6"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/api": "workspace:6.0.0-6-next.9",
|
||||
"@verdaccio/auth": "workspace:6.0.0-6-next.7",
|
||||
"@verdaccio/api": "workspace:6.0.0-6-next.10",
|
||||
"@verdaccio/auth": "workspace:6.0.0-6-next.8",
|
||||
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.5",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.6",
|
||||
"@verdaccio/loaders": "workspace:6.0.0-6-next.4",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.4",
|
||||
"@verdaccio/middleware": "workspace:6.0.0-6-next.7",
|
||||
"@verdaccio/store": "workspace:6.0.0-6-next.7",
|
||||
"@verdaccio/middleware": "workspace:6.0.0-6-next.8",
|
||||
"@verdaccio/store": "workspace:6.0.0-6-next.8",
|
||||
"@verdaccio/utils": "workspace:6.0.0-6-next.4",
|
||||
"@verdaccio/web": "workspace:6.0.0-6-next.10",
|
||||
"@verdaccio/web": "workspace:6.0.0-6-next.12",
|
||||
"verdaccio-audit": "workspace:11.0.0-alpha.4",
|
||||
"compression": "1.7.4",
|
||||
"cors": "2.8.5",
|
||||
@@ -48,8 +48,8 @@
|
||||
"lodash": "4.17.15"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/mock": "workspace:6.0.0-6-next.5",
|
||||
"@verdaccio/proxy": "workspace:6.0.0-6-next.7",
|
||||
"@verdaccio/mock": "workspace:6.0.0-6-next.6",
|
||||
"@verdaccio/proxy": "workspace:6.0.0-6-next.8",
|
||||
"http-errors": "1.7.3",
|
||||
"request": "2.87.0"
|
||||
},
|
||||
|
||||
@@ -32,8 +32,8 @@
|
||||
"homepage": "https://verdaccio.org",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@verdaccio/cli": "workspace:6.0.0-6-next.12",
|
||||
"@verdaccio/ui-theme": "workspace:6.0.0-6-next.6",
|
||||
"@verdaccio/cli": "workspace:6.0.0-6-next.14",
|
||||
"@verdaccio/ui-theme": "workspace:6.0.0-6-next.7",
|
||||
"fs-extra": "9.0.1",
|
||||
"webpack": "^5.11.1",
|
||||
"webpack-cli": "^4.3.1",
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
# @verdaccio/store
|
||||
|
||||
## 6.0.0-6-next.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [1b217fd3]
|
||||
- @verdaccio/config@6.0.0-6-next.6
|
||||
- @verdaccio/local-storage@11.0.0-6-next.6
|
||||
- @verdaccio/loaders@6.0.0-6-next.4
|
||||
- @verdaccio/proxy@6.0.0-6-next.8
|
||||
|
||||
## 6.0.0-6-next.7
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/store",
|
||||
"version": "6.0.0-6-next.7",
|
||||
"version": "6.0.0-6-next.8",
|
||||
"description": "loaders logic",
|
||||
"main": "./build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -40,11 +40,11 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.5",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.6",
|
||||
"@verdaccio/loaders": "workspace:6.0.0-6-next.4",
|
||||
"@verdaccio/local-storage": "workspace:11.0.0-6-next.5",
|
||||
"@verdaccio/local-storage": "workspace:11.0.0-6-next.6",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.4",
|
||||
"@verdaccio/proxy": "workspace:6.0.0-6-next.7",
|
||||
"@verdaccio/proxy": "workspace:6.0.0-6-next.8",
|
||||
"@verdaccio/streams": "workspace:11.0.0-alpha.3",
|
||||
"@verdaccio/utils": "workspace:6.0.0-6-next.4",
|
||||
"async": "3.1.1",
|
||||
@@ -54,8 +54,8 @@
|
||||
"semver": "7.1.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/mock": "workspace:6.0.0-6-next.5",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.5"
|
||||
"@verdaccio/mock": "workspace:6.0.0-6-next.6",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.6"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
|
||||
@@ -1,5 +1,27 @@
|
||||
# verdaccio
|
||||
|
||||
## 6.0.0-6-next.15
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [aecbd226]
|
||||
- @verdaccio/ui-theme@6.0.0-6-next.7
|
||||
- @verdaccio/hooks@6.0.0-6-next.4
|
||||
- @verdaccio/logger@6.0.0-6-next.4
|
||||
- @verdaccio/mock@6.0.0-6-next.6
|
||||
- @verdaccio/node-api@6.0.0-6-next.14
|
||||
- @verdaccio/cli@6.0.0-6-next.14
|
||||
|
||||
## 6.0.0-6-next.14
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/cli@6.0.0-6-next.13
|
||||
- @verdaccio/hooks@6.0.0-6-next.4
|
||||
- @verdaccio/mock@6.0.0-6-next.6
|
||||
- @verdaccio/node-api@6.0.0-6-next.13
|
||||
- @verdaccio/ui-theme@6.0.0-6-next.6
|
||||
|
||||
## 6.0.0-6-next.13
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "verdaccio",
|
||||
"version": "6.0.0-6-next.13",
|
||||
"version": "6.0.0-6-next.15",
|
||||
"description": "A lightweight private npm proxy registry",
|
||||
"main": "build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -36,21 +36,21 @@
|
||||
},
|
||||
"homepage": "https://verdaccio.org",
|
||||
"dependencies": {
|
||||
"@verdaccio/cli": "workspace:6.0.0-6-next.12",
|
||||
"@verdaccio/cli": "workspace:6.0.0-6-next.14",
|
||||
"@verdaccio/hooks": "workspace:6.0.0-6-next.4",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.4",
|
||||
"@verdaccio/mock": "workspace:6.0.0-6-next.5",
|
||||
"@verdaccio/node-api": "workspace:6.0.0-6-next.12",
|
||||
"@verdaccio/ui-theme": "workspace:6.0.0-6-next.6",
|
||||
"@verdaccio/mock": "workspace:6.0.0-6-next.6",
|
||||
"@verdaccio/node-api": "workspace:6.0.0-6-next.14",
|
||||
"@verdaccio/ui-theme": "workspace:6.0.0-6-next.7",
|
||||
"@verdaccio/utils": "workspace:6.0.0-6-next.4",
|
||||
"verdaccio-audit": "11.0.0-alpha.4",
|
||||
"verdaccio-htpasswd": "11.0.0-alpha.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/auth": "workspace:6.0.0-6-next.7",
|
||||
"@verdaccio/auth": "workspace:6.0.0-6-next.8",
|
||||
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.5",
|
||||
"@verdaccio/store": "workspace:6.0.0-6-next.7"
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.6",
|
||||
"@verdaccio/store": "workspace:6.0.0-6-next.8"
|
||||
},
|
||||
"keywords": [
|
||||
"private",
|
||||
|
||||
@@ -1,5 +1,57 @@
|
||||
# @verdaccio/web
|
||||
|
||||
## 6.0.0-6-next.12
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- aecbd226: web: allow ui hide package managers on sidebar
|
||||
|
||||
If there is a package manager of preference over others, you can define the package managers to be displayed on the detail page and sidebar, just define in the `config.yaml` and web section the list of package managers to be displayed.
|
||||
|
||||
```
|
||||
web:
|
||||
title: Verdaccio
|
||||
sort_packages: asc
|
||||
primary_color: #cccccc
|
||||
pkgManagers:
|
||||
- pnpm
|
||||
- yarn
|
||||
# - npm
|
||||
```
|
||||
|
||||
To disable all package managers, just define empty:
|
||||
|
||||
```
|
||||
web:
|
||||
title: Verdaccio
|
||||
sort_packages: asc
|
||||
primary_color: #cccccc
|
||||
pkgManagers:
|
||||
```
|
||||
|
||||
and the section would be hidden.
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/auth@6.0.0-6-next.8
|
||||
- @verdaccio/readme@11.0.0-alpha.3
|
||||
- @verdaccio/tarball@11.0.0-6-next.5
|
||||
- @verdaccio/url@11.0.0-6-next.4
|
||||
- @verdaccio/loaders@6.0.0-6-next.4
|
||||
- @verdaccio/logger@6.0.0-6-next.4
|
||||
- @verdaccio/store@6.0.0-6-next.8
|
||||
|
||||
## 6.0.0-6-next.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [1b217fd3]
|
||||
- @verdaccio/config@6.0.0-6-next.6
|
||||
- @verdaccio/auth@6.0.0-6-next.8
|
||||
- @verdaccio/loaders@6.0.0-6-next.4
|
||||
- @verdaccio/store@6.0.0-6-next.8
|
||||
- @verdaccio/middleware@6.0.0-6-next.8
|
||||
|
||||
## 6.0.0-6-next.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/web",
|
||||
"version": "6.0.0-6-next.10",
|
||||
"version": "6.0.0-6-next.12",
|
||||
"description": "web ui middleware",
|
||||
"main": "./build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -25,14 +25,14 @@
|
||||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@verdaccio/auth": "workspace:6.0.0-6-next.7",
|
||||
"@verdaccio/auth": "workspace:6.0.0-6-next.8",
|
||||
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.5",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.6",
|
||||
"@verdaccio/loaders": "workspace:6.0.0-6-next.4",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.4",
|
||||
"@verdaccio/middleware": "workspace:6.0.0-6-next.7",
|
||||
"@verdaccio/middleware": "workspace:6.0.0-6-next.8",
|
||||
"@verdaccio/readme": "workspace:11.0.0-alpha.3",
|
||||
"@verdaccio/store": "workspace:6.0.0-6-next.7",
|
||||
"@verdaccio/store": "workspace:6.0.0-6-next.8",
|
||||
"@verdaccio/utils": "workspace:6.0.0-6-next.4",
|
||||
"@verdaccio/url": "workspace:11.0.0-6-next.4",
|
||||
"@verdaccio/tarball": "workspace:11.0.0-6-next.5",
|
||||
@@ -44,7 +44,7 @@
|
||||
"lodash": "^4.17.20"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.5",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.6",
|
||||
"verdaccio-auth-memory": "workspace:11.0.0-alpha.3",
|
||||
"verdaccio-memory": "workspace:11.0.0-6-next.4",
|
||||
"supertest": "^6.1.3",
|
||||
|
||||
@@ -29,6 +29,7 @@ export default function renderHTML(config, manifest, manifestFiles, req, res) {
|
||||
const scope = config?.web?.scope ?? '';
|
||||
// FIXME: logo URI is incomplete
|
||||
let logoURI = config?.web?.logo ?? '';
|
||||
const pkgManagers = config?.web?.pkgManagers ?? ['yarn', 'pnpm', 'npm'];
|
||||
const version = pkgJSON.version;
|
||||
const primaryColor = validatePrimaryColor(config?.web?.primary_color) ?? '#4b5e40';
|
||||
const { scriptsBodyAfter, metaScripts, scriptsbodyBefore } = Object.assign(
|
||||
@@ -48,6 +49,7 @@ export default function renderHTML(config, manifest, manifestFiles, req, res) {
|
||||
primaryColor,
|
||||
version,
|
||||
logoURI,
|
||||
pkgManagers,
|
||||
title,
|
||||
scope,
|
||||
language,
|
||||
|
||||
@@ -1,23 +1,9 @@
|
||||
import buildDebug from 'debug';
|
||||
import { TemplateUIOptions } from '@verdaccio/types';
|
||||
import { getManifestValue, Manifest } from './utils/manifest';
|
||||
|
||||
const debug = buildDebug('verdaccio:web:render:template');
|
||||
|
||||
export type TemplateUIOptions = {
|
||||
title?: string;
|
||||
uri?: string;
|
||||
darkMode?: boolean;
|
||||
protocol?: string;
|
||||
host?: string;
|
||||
url_prefix?: string;
|
||||
base: string;
|
||||
primaryColor?: string;
|
||||
version?: string;
|
||||
logoURI?: string;
|
||||
scope?: string;
|
||||
language?: string;
|
||||
};
|
||||
|
||||
export type Template = {
|
||||
manifest: Manifest;
|
||||
options: TemplateUIOptions;
|
||||
|
||||
148
pnpm-lock.yaml
generated
148
pnpm-lock.yaml
generated
@@ -218,16 +218,16 @@ importers:
|
||||
|
||||
packages/api:
|
||||
specifiers:
|
||||
'@verdaccio/auth': workspace:6.0.0-6-next.7
|
||||
'@verdaccio/auth': workspace:6.0.0-6-next.8
|
||||
'@verdaccio/commons-api': workspace:11.0.0-alpha.3
|
||||
'@verdaccio/config': workspace:6.0.0-6-next.5
|
||||
'@verdaccio/config': workspace:6.0.0-6-next.6
|
||||
'@verdaccio/hooks': workspace:6.0.0-6-next.4
|
||||
'@verdaccio/logger': workspace:6.0.0-6-next.4
|
||||
'@verdaccio/middleware': workspace:6.0.0-6-next.7
|
||||
'@verdaccio/server': workspace:6.0.0-6-next.11
|
||||
'@verdaccio/store': workspace:6.0.0-6-next.7
|
||||
'@verdaccio/middleware': workspace:6.0.0-6-next.8
|
||||
'@verdaccio/server': workspace:6.0.0-6-next.13
|
||||
'@verdaccio/store': workspace:6.0.0-6-next.8
|
||||
'@verdaccio/tarball': workspace:11.0.0-6-next.5
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.5
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.6
|
||||
'@verdaccio/utils': workspace:6.0.0-6-next.4
|
||||
body-parser: 1.19.0
|
||||
cookies: 0.8.0
|
||||
@@ -262,11 +262,11 @@ importers:
|
||||
packages/auth:
|
||||
specifiers:
|
||||
'@verdaccio/commons-api': workspace:11.0.0-alpha.3
|
||||
'@verdaccio/config': workspace:6.0.0-6-next.5
|
||||
'@verdaccio/config': workspace:6.0.0-6-next.6
|
||||
'@verdaccio/loaders': workspace:6.0.0-6-next.4
|
||||
'@verdaccio/logger': workspace:6.0.0-6-next.4
|
||||
'@verdaccio/mock': workspace:6.0.0-6-next.5
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.5
|
||||
'@verdaccio/mock': workspace:6.0.0-6-next.6
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.6
|
||||
'@verdaccio/utils': workspace:6.0.0-6-next.4
|
||||
debug: ^4.1.1
|
||||
express: 4.17.1
|
||||
@@ -290,10 +290,10 @@ importers:
|
||||
|
||||
packages/cli:
|
||||
specifiers:
|
||||
'@verdaccio/config': workspace:6.0.0-6-next.5
|
||||
'@verdaccio/config': workspace:6.0.0-6-next.6
|
||||
'@verdaccio/fastify-migration': workspace:6.0.0-6-next.9
|
||||
'@verdaccio/logger': workspace:6.0.0-6-next.4
|
||||
'@verdaccio/node-api': workspace:6.0.0-6-next.12
|
||||
'@verdaccio/node-api': workspace:6.0.0-6-next.14
|
||||
clipanion: 3.0.0-rc.11
|
||||
commander: 6.2.0
|
||||
envinfo: 7.4.0
|
||||
@@ -320,7 +320,6 @@ importers:
|
||||
js-yaml: 3.14.0
|
||||
lodash: ^4.17.20
|
||||
minimatch: 3.0.4
|
||||
mkdirp: 0.5.5
|
||||
yup: ^0.29.3
|
||||
dependencies:
|
||||
'@verdaccio/commons-api': link:../core/commons-api
|
||||
@@ -329,7 +328,6 @@ importers:
|
||||
js-yaml: 3.14.0
|
||||
lodash: 4.17.20
|
||||
minimatch: 3.0.4
|
||||
mkdirp: 0.5.5
|
||||
yup: 0.29.3
|
||||
devDependencies:
|
||||
'@types/minimatch': 3.0.3
|
||||
@@ -345,7 +343,7 @@ importers:
|
||||
|
||||
packages/core/file-locking:
|
||||
specifiers:
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.5
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.6
|
||||
lockfile: 1.0.4
|
||||
dependencies:
|
||||
lockfile: 1.0.4
|
||||
@@ -357,7 +355,7 @@ importers:
|
||||
'@types/bcryptjs': ^2.4.2
|
||||
'@verdaccio/commons-api': workspace:11.0.0-alpha.3
|
||||
'@verdaccio/file-locking': workspace:11.0.0-alpha.3
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.5
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.6
|
||||
apache-md5: 1.1.2
|
||||
bcryptjs: 2.4.3
|
||||
http-errors: 1.8.0
|
||||
@@ -381,13 +379,12 @@ importers:
|
||||
'@verdaccio/commons-api': workspace:11.0.0-alpha.3
|
||||
'@verdaccio/file-locking': workspace:11.0.0-alpha.3
|
||||
'@verdaccio/streams': workspace:11.0.0-alpha.3
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.5
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.6
|
||||
async: ^3.2.0
|
||||
debug: ^4.1.1
|
||||
lodash: ^4.17.20
|
||||
lowdb: 1.0.0
|
||||
minimatch: ^3.0.4
|
||||
mkdirp: ^0.5.5
|
||||
rmdir-sync: ^1.0.1
|
||||
dependencies:
|
||||
'@verdaccio/commons-api': link:../commons-api
|
||||
@@ -397,7 +394,6 @@ importers:
|
||||
debug: 4.1.1
|
||||
lodash: 4.17.20
|
||||
lowdb: 1.0.0
|
||||
mkdirp: 0.5.5
|
||||
devDependencies:
|
||||
'@types/minimatch': 3.0.3
|
||||
'@verdaccio/types': link:../types
|
||||
@@ -406,7 +402,7 @@ importers:
|
||||
|
||||
packages/core/readme:
|
||||
specifiers:
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.5
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.6
|
||||
dompurify: 2.0.8
|
||||
jsdom: 15.2.1
|
||||
marked: 1.1.1
|
||||
@@ -419,7 +415,7 @@ importers:
|
||||
|
||||
packages/core/server:
|
||||
specifiers:
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.5
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.6
|
||||
fastify: 3.14.2
|
||||
dependencies:
|
||||
fastify: 3.14.2
|
||||
@@ -428,14 +424,14 @@ importers:
|
||||
|
||||
packages/core/streams:
|
||||
specifiers:
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.5
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.6
|
||||
devDependencies:
|
||||
'@verdaccio/types': link:../types
|
||||
|
||||
packages/core/tarball:
|
||||
specifiers:
|
||||
'@verdaccio/commons-api': workspace:11.0.0-alpha.3
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.5
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.6
|
||||
'@verdaccio/url': workspace:11.0.0-6-next.4
|
||||
'@verdaccio/utils': workspace:6.0.0-6-next.4
|
||||
debug: ^4.3.1
|
||||
@@ -462,7 +458,7 @@ importers:
|
||||
packages/core/url:
|
||||
specifiers:
|
||||
'@verdaccio/commons-api': workspace:11.0.0-alpha.3
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.5
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.6
|
||||
debug: ^4.3.1
|
||||
lodash: ^4.17.21
|
||||
node-mocks-http: ^1.10.1
|
||||
@@ -478,11 +474,11 @@ importers:
|
||||
|
||||
packages/hooks:
|
||||
specifiers:
|
||||
'@verdaccio/auth': workspace:6.0.0-6-next.7
|
||||
'@verdaccio/auth': workspace:6.0.0-6-next.8
|
||||
'@verdaccio/commons-api': workspace:11.0.0-alpha.3
|
||||
'@verdaccio/config': workspace:6.0.0-6-next.5
|
||||
'@verdaccio/config': workspace:6.0.0-6-next.6
|
||||
'@verdaccio/logger': workspace:6.0.0-6-next.4
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.5
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.6
|
||||
debug: ^4.2.0
|
||||
handlebars: 4.5.3
|
||||
nock: ^13.0.4
|
||||
@@ -504,10 +500,10 @@ importers:
|
||||
packages/loaders:
|
||||
specifiers:
|
||||
'@verdaccio/commons-api': workspace:11.0.0-alpha.3
|
||||
'@verdaccio/config': workspace:6.0.0-6-next.5
|
||||
'@verdaccio/config': workspace:6.0.0-6-next.6
|
||||
'@verdaccio/logger': workspace:6.0.0-6-next.4
|
||||
'@verdaccio/mock': workspace:6.0.0-6-next.5
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.5
|
||||
'@verdaccio/mock': workspace:6.0.0-6-next.6
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.6
|
||||
debug: ^4.1.1
|
||||
lodash: 4.17.15
|
||||
dependencies:
|
||||
@@ -524,7 +520,7 @@ importers:
|
||||
specifiers:
|
||||
'@types/pino': ^6.3.3
|
||||
'@verdaccio/logger-prettify': workspace:6.0.0-alpha.3
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.5
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.6
|
||||
debug: ^4.2.0
|
||||
lodash: ~4.17.20
|
||||
pino: ^6.7.0
|
||||
@@ -560,7 +556,7 @@ importers:
|
||||
|
||||
packages/middleware:
|
||||
specifiers:
|
||||
'@verdaccio/auth': workspace:6.0.0-6-next.7
|
||||
'@verdaccio/auth': workspace:6.0.0-6-next.8
|
||||
'@verdaccio/commons-api': workspace:11.0.0-alpha.3
|
||||
'@verdaccio/logger': workspace:6.0.0-6-next.4
|
||||
'@verdaccio/utils': workspace:6.0.0-6-next.4
|
||||
@@ -577,8 +573,8 @@ importers:
|
||||
packages/mock:
|
||||
specifiers:
|
||||
'@verdaccio/commons-api': workspace:11.0.0-alpha.3
|
||||
'@verdaccio/config': workspace:6.0.0-6-next.5
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.5
|
||||
'@verdaccio/config': workspace:6.0.0-6-next.6
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.6
|
||||
'@verdaccio/utils': workspace:6.0.0-6-next.4
|
||||
debug: ^4.2.0
|
||||
fs-extra: ^8.1.0
|
||||
@@ -600,11 +596,11 @@ importers:
|
||||
packages/node-api:
|
||||
specifiers:
|
||||
'@verdaccio/commons-api': workspace:11.0.0-alpha.3
|
||||
'@verdaccio/config': workspace:6.0.0-6-next.5
|
||||
'@verdaccio/config': workspace:6.0.0-6-next.6
|
||||
'@verdaccio/logger': workspace:6.0.0-6-next.4
|
||||
'@verdaccio/mock': workspace:6.0.0-6-next.5
|
||||
'@verdaccio/server': workspace:6.0.0-6-next.11
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.5
|
||||
'@verdaccio/mock': workspace:6.0.0-6-next.6
|
||||
'@verdaccio/server': workspace:6.0.0-6-next.13
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.6
|
||||
core-js: ^3.6.5
|
||||
debug: ^4.2.0
|
||||
jest-mock-process: ^1.4.0
|
||||
@@ -630,7 +626,7 @@ importers:
|
||||
specifiers:
|
||||
'@types/activedirectory2': ^1.2.1
|
||||
'@verdaccio/commons-api': workspace:11.0.0-alpha.3
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.5
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.6
|
||||
activedirectory2: ^1.3.0
|
||||
dependencies:
|
||||
'@verdaccio/commons-api': link:../../core/commons-api
|
||||
@@ -641,7 +637,7 @@ importers:
|
||||
|
||||
packages/plugins/audit:
|
||||
specifiers:
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.5
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.6
|
||||
body-parser: ^1.19.0
|
||||
express: ^4.17.1
|
||||
https-proxy-agent: ^5.0.0
|
||||
@@ -661,7 +657,7 @@ importers:
|
||||
packages/plugins/auth-memory:
|
||||
specifiers:
|
||||
'@verdaccio/commons-api': workspace:11.0.0-alpha.3
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.5
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.6
|
||||
debug: ^4.3.1
|
||||
dependencies:
|
||||
'@verdaccio/commons-api': link:../../core/commons-api
|
||||
@@ -673,7 +669,7 @@ importers:
|
||||
specifiers:
|
||||
'@verdaccio/commons-api': workspace:11.0.0-alpha.3
|
||||
'@verdaccio/streams': workspace:11.0.0-alpha.3
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.5
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.6
|
||||
aws-sdk: ^2.607.0
|
||||
recursive-readdir: 2.2.2
|
||||
dependencies:
|
||||
@@ -690,7 +686,7 @@ importers:
|
||||
'@google-cloud/storage': ^5.3.0
|
||||
'@verdaccio/commons-api': ^11.0.0-alpha.3
|
||||
'@verdaccio/streams': workspace:11.0.0-alpha.3
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.5
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.6
|
||||
fast-crc32c: 1.0.4
|
||||
memory-fs: 0.5.0
|
||||
dependencies:
|
||||
@@ -708,7 +704,7 @@ importers:
|
||||
specifiers:
|
||||
'@verdaccio/commons-api': workspace:11.0.0-alpha.3
|
||||
'@verdaccio/streams': workspace:11.0.0-alpha.3
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.5
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.6
|
||||
debug: ^4.3.1
|
||||
memfs: 3.2.0
|
||||
memory-fs: ^0.5.0
|
||||
@@ -735,7 +731,7 @@ importers:
|
||||
'@testing-library/dom': ^7.29.0
|
||||
'@testing-library/jest-dom': ^5.11.6
|
||||
'@testing-library/react': 10.4.9
|
||||
'@verdaccio/node-api': workspace:6.0.0-6-next.12
|
||||
'@verdaccio/node-api': workspace:6.0.0-6-next.14
|
||||
autosuggest-highlight: 3.1.1
|
||||
babel-loader: ^8.2.2
|
||||
babel-plugin-dynamic-import-node: ^2.3.3
|
||||
@@ -882,11 +878,11 @@ importers:
|
||||
packages/proxy:
|
||||
specifiers:
|
||||
'@verdaccio/commons-api': workspace:11.0.0-alpha.3
|
||||
'@verdaccio/config': workspace:6.0.0-6-next.5
|
||||
'@verdaccio/local-storage': workspace:11.0.0-6-next.5
|
||||
'@verdaccio/config': workspace:6.0.0-6-next.6
|
||||
'@verdaccio/local-storage': workspace:11.0.0-6-next.6
|
||||
'@verdaccio/logger': workspace:6.0.0-6-next.4
|
||||
'@verdaccio/streams': workspace:11.0.0-alpha.3
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.5
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.6
|
||||
'@verdaccio/utils': workspace:6.0.0-6-next.4
|
||||
JSONStream: 1.3.5
|
||||
lodash: ^4.17.20
|
||||
@@ -906,18 +902,18 @@ importers:
|
||||
|
||||
packages/server:
|
||||
specifiers:
|
||||
'@verdaccio/api': workspace:6.0.0-6-next.9
|
||||
'@verdaccio/auth': workspace:6.0.0-6-next.7
|
||||
'@verdaccio/api': workspace:6.0.0-6-next.10
|
||||
'@verdaccio/auth': workspace:6.0.0-6-next.8
|
||||
'@verdaccio/commons-api': workspace:11.0.0-alpha.3
|
||||
'@verdaccio/config': workspace:6.0.0-6-next.5
|
||||
'@verdaccio/config': workspace:6.0.0-6-next.6
|
||||
'@verdaccio/loaders': workspace:6.0.0-6-next.4
|
||||
'@verdaccio/logger': workspace:6.0.0-6-next.4
|
||||
'@verdaccio/middleware': workspace:6.0.0-6-next.7
|
||||
'@verdaccio/mock': workspace:6.0.0-6-next.5
|
||||
'@verdaccio/proxy': workspace:6.0.0-6-next.7
|
||||
'@verdaccio/store': workspace:6.0.0-6-next.7
|
||||
'@verdaccio/middleware': workspace:6.0.0-6-next.8
|
||||
'@verdaccio/mock': workspace:6.0.0-6-next.6
|
||||
'@verdaccio/proxy': workspace:6.0.0-6-next.8
|
||||
'@verdaccio/store': workspace:6.0.0-6-next.8
|
||||
'@verdaccio/utils': workspace:6.0.0-6-next.4
|
||||
'@verdaccio/web': workspace:6.0.0-6-next.10
|
||||
'@verdaccio/web': workspace:6.0.0-6-next.12
|
||||
compression: 1.7.4
|
||||
cors: 2.8.5
|
||||
express: 4.17.1
|
||||
@@ -951,8 +947,8 @@ importers:
|
||||
|
||||
packages/standalone:
|
||||
specifiers:
|
||||
'@verdaccio/cli': workspace:6.0.0-6-next.12
|
||||
'@verdaccio/ui-theme': workspace:6.0.0-6-next.6
|
||||
'@verdaccio/cli': workspace:6.0.0-6-next.14
|
||||
'@verdaccio/ui-theme': workspace:6.0.0-6-next.7
|
||||
fs-extra: 9.0.1
|
||||
webpack: ^5.11.1
|
||||
webpack-bundle-analyzer: 3.8.0
|
||||
@@ -970,14 +966,14 @@ importers:
|
||||
packages/store:
|
||||
specifiers:
|
||||
'@verdaccio/commons-api': workspace:11.0.0-alpha.3
|
||||
'@verdaccio/config': workspace:6.0.0-6-next.5
|
||||
'@verdaccio/config': workspace:6.0.0-6-next.6
|
||||
'@verdaccio/loaders': workspace:6.0.0-6-next.4
|
||||
'@verdaccio/local-storage': workspace:11.0.0-6-next.5
|
||||
'@verdaccio/local-storage': workspace:11.0.0-6-next.6
|
||||
'@verdaccio/logger': workspace:6.0.0-6-next.4
|
||||
'@verdaccio/mock': workspace:6.0.0-6-next.5
|
||||
'@verdaccio/proxy': workspace:6.0.0-6-next.7
|
||||
'@verdaccio/mock': workspace:6.0.0-6-next.6
|
||||
'@verdaccio/proxy': workspace:6.0.0-6-next.8
|
||||
'@verdaccio/streams': workspace:11.0.0-alpha.3
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.5
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.6
|
||||
'@verdaccio/utils': workspace:6.0.0-6-next.4
|
||||
async: 3.1.1
|
||||
debug: ^4.1.1
|
||||
@@ -1021,16 +1017,16 @@ importers:
|
||||
|
||||
packages/verdaccio:
|
||||
specifiers:
|
||||
'@verdaccio/auth': workspace:6.0.0-6-next.7
|
||||
'@verdaccio/cli': workspace:6.0.0-6-next.12
|
||||
'@verdaccio/auth': workspace:6.0.0-6-next.8
|
||||
'@verdaccio/cli': workspace:6.0.0-6-next.14
|
||||
'@verdaccio/commons-api': workspace:11.0.0-alpha.3
|
||||
'@verdaccio/config': workspace:6.0.0-6-next.5
|
||||
'@verdaccio/config': workspace:6.0.0-6-next.6
|
||||
'@verdaccio/hooks': workspace:6.0.0-6-next.4
|
||||
'@verdaccio/logger': workspace:6.0.0-6-next.4
|
||||
'@verdaccio/mock': workspace:6.0.0-6-next.5
|
||||
'@verdaccio/node-api': workspace:6.0.0-6-next.12
|
||||
'@verdaccio/store': workspace:6.0.0-6-next.7
|
||||
'@verdaccio/ui-theme': workspace:6.0.0-6-next.6
|
||||
'@verdaccio/mock': workspace:6.0.0-6-next.6
|
||||
'@verdaccio/node-api': workspace:6.0.0-6-next.14
|
||||
'@verdaccio/store': workspace:6.0.0-6-next.8
|
||||
'@verdaccio/ui-theme': workspace:6.0.0-6-next.7
|
||||
'@verdaccio/utils': workspace:6.0.0-6-next.4
|
||||
verdaccio-audit: 11.0.0-alpha.4
|
||||
verdaccio-htpasswd: 11.0.0-alpha.6
|
||||
@@ -1052,16 +1048,16 @@ importers:
|
||||
|
||||
packages/web:
|
||||
specifiers:
|
||||
'@verdaccio/auth': workspace:6.0.0-6-next.7
|
||||
'@verdaccio/auth': workspace:6.0.0-6-next.8
|
||||
'@verdaccio/commons-api': workspace:11.0.0-alpha.3
|
||||
'@verdaccio/config': workspace:6.0.0-6-next.5
|
||||
'@verdaccio/config': workspace:6.0.0-6-next.6
|
||||
'@verdaccio/loaders': workspace:6.0.0-6-next.4
|
||||
'@verdaccio/logger': workspace:6.0.0-6-next.4
|
||||
'@verdaccio/middleware': workspace:6.0.0-6-next.7
|
||||
'@verdaccio/middleware': workspace:6.0.0-6-next.8
|
||||
'@verdaccio/readme': workspace:11.0.0-alpha.3
|
||||
'@verdaccio/store': workspace:6.0.0-6-next.7
|
||||
'@verdaccio/store': workspace:6.0.0-6-next.8
|
||||
'@verdaccio/tarball': workspace:11.0.0-6-next.5
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.5
|
||||
'@verdaccio/types': workspace:11.0.0-6-next.6
|
||||
'@verdaccio/url': workspace:11.0.0-6-next.4
|
||||
'@verdaccio/utils': workspace:6.0.0-6-next.4
|
||||
body-parse: 0.1.0
|
||||
@@ -1121,11 +1117,10 @@ importers:
|
||||
test/e2e-ui:
|
||||
specifiers:
|
||||
'@verdaccio/commons-api': workspace:11.0.0-alpha.3
|
||||
'@verdaccio/ui-theme': workspace:6.0.0-6-next.6
|
||||
'@verdaccio/ui-theme': workspace:6.0.0-6-next.7
|
||||
debug: 4.3.1
|
||||
kleur: ^4.1.3
|
||||
lodash: ^4.17.20
|
||||
mkdirp: ^1.0.4
|
||||
puppeteer: ^7.1.0
|
||||
request: ^2.88.2
|
||||
rimraf: ^3.0.2
|
||||
@@ -1135,7 +1130,6 @@ importers:
|
||||
debug: 4.3.1
|
||||
kleur: 4.1.3
|
||||
lodash: 4.17.20
|
||||
mkdirp: 1.0.4
|
||||
puppeteer: 7.1.0
|
||||
request: 2.88.2
|
||||
rimraf: 3.0.2
|
||||
|
||||
@@ -1,6 +1,17 @@
|
||||
# @verdaccio/e2e-ui
|
||||
|
||||
## 1.1.0-6-next.1
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 1b217fd3: Some verdaccio modules depend on 'mkdirp' library which provides recursive directory creation functionality.
|
||||
NodeJS can do this out of the box since v.10.12. The last commit in 'mkdirp' was made in early 2016, and it's mid 2021 now.
|
||||
Time to stick with a built-in library solution!
|
||||
|
||||
- All 'mkdirp' calls are replaced with appropriate 'fs' calls.
|
||||
|
||||
## 1.0.1-alpha.0
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- fecbb9be: chore: add release step to private regisry on merge changeset pr
|
||||
|
||||
@@ -1,15 +1,14 @@
|
||||
{
|
||||
"name": "@verdaccio/e2e-ui",
|
||||
"private": true,
|
||||
"version": "1.0.1-alpha.0",
|
||||
"version": "1.1.0-6-next.1",
|
||||
"devDependencies": {
|
||||
"@verdaccio/ui-theme": "workspace:6.0.0-6-next.6",
|
||||
"@verdaccio/ui-theme": "workspace:6.0.0-6-next.7",
|
||||
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
||||
"debug": "4.3.1",
|
||||
"kleur": "^4.1.3",
|
||||
"request": "^2.88.2",
|
||||
"lodash": "^4.17.20",
|
||||
"mkdirp": "^1.0.4",
|
||||
"rimraf": "^3.0.2",
|
||||
"puppeteer": "^7.1.0"
|
||||
},
|
||||
|
||||
@@ -3,7 +3,6 @@ const os = require('os');
|
||||
const path = require('path');
|
||||
|
||||
const { green } = require('kleur');
|
||||
const mkdirp = require('mkdirp');
|
||||
const puppeteer = require('puppeteer');
|
||||
|
||||
const DIR = path.join(os.tmpdir(), 'jest_puppeteer_global_setup');
|
||||
@@ -21,6 +20,6 @@ module.exports = async function () {
|
||||
args: ['--no-sandbox'],
|
||||
});
|
||||
global.__BROWSER__ = browser;
|
||||
mkdirp.sync(DIR);
|
||||
fs.mkdirSync(DIR, { recursive: true });
|
||||
fs.writeFileSync(path.join(DIR, 'wsEndpoint'), browser.wsEndpoint());
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user