Compare commits
11 Commits
@verdaccio
...
@verdaccio
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
66e4c89d3e | ||
|
|
521040847c | ||
|
|
c8b70a5be4 | ||
|
|
a90b19302f | ||
|
|
1bae2c431a | ||
|
|
82ae08e3c8 | ||
|
|
bf3ae08646 | ||
|
|
e4e1171af8 | ||
|
|
8ace3245ff | ||
|
|
487e2f77fe | ||
|
|
1d96983c24 |
@@ -72,6 +72,7 @@
|
||||
"shy-garlics-cry",
|
||||
"spicy-birds-flow",
|
||||
"strange-points-repair",
|
||||
"thirty-toes-swim",
|
||||
"weak-fans-explain",
|
||||
"wild-otters-talk",
|
||||
"young-donuts-own"
|
||||
|
||||
6
.changeset/thirty-toes-swim.md
Normal file
6
.changeset/thirty-toes-swim.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
'@verdaccio/ui-theme': patch
|
||||
'@verdaccio/ui-components': patch
|
||||
---
|
||||
|
||||
fix: ui dialog break pages on open due remark error
|
||||
2
.github/workflows/changesets.yml
vendored
2
.github/workflows/changesets.yml
vendored
@@ -25,7 +25,7 @@ jobs:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: setup node.js
|
||||
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v3
|
||||
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
env:
|
||||
|
||||
10
.github/workflows/ci-windows.yml
vendored
10
.github/workflows/ci-windows.yml
vendored
@@ -20,7 +20,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
|
||||
- name: Node
|
||||
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v3
|
||||
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Install pnpm
|
||||
@@ -49,7 +49,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
|
||||
- name: Node
|
||||
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v3
|
||||
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Install pnpm
|
||||
@@ -73,7 +73,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
|
||||
- name: Use Node
|
||||
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v3
|
||||
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Install pnpm
|
||||
@@ -102,7 +102,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
|
||||
- name: Use Node ${{ matrix.node_version }}
|
||||
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v3
|
||||
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
|
||||
with:
|
||||
node-version: ${{ matrix.node_version }}
|
||||
- name: Install pnpm
|
||||
@@ -127,7 +127,7 @@ jobs:
|
||||
name: UI Test E2E
|
||||
steps:
|
||||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
|
||||
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v3
|
||||
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Install pnpm
|
||||
|
||||
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@@ -29,7 +29,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
|
||||
- name: Node
|
||||
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v3
|
||||
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Install pnpm
|
||||
@@ -56,7 +56,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
|
||||
- name: Node
|
||||
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v3
|
||||
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Install pnpm
|
||||
@@ -81,7 +81,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
|
||||
- name: Use Node
|
||||
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v3
|
||||
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Install pnpm
|
||||
@@ -111,7 +111,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
|
||||
- name: Use Node ${{ matrix.node_version }}
|
||||
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v3
|
||||
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
|
||||
with:
|
||||
node-version: ${{ matrix.node_version }}
|
||||
- name: Install pnpm
|
||||
@@ -138,7 +138,7 @@ jobs:
|
||||
if: (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'workflow_dispatch'
|
||||
steps:
|
||||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
|
||||
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v3
|
||||
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Install pnpm
|
||||
|
||||
@@ -22,7 +22,7 @@ jobs:
|
||||
run: docker-compose -f "./e2e/docker/apache-verdaccio/docker-compose.yaml" up -d --build
|
||||
|
||||
- name: Install node
|
||||
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v3
|
||||
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
- name: npm setup
|
||||
|
||||
2
.github/workflows/docker-proxy-nginx-e2e.yml
vendored
2
.github/workflows/docker-proxy-nginx-e2e.yml
vendored
@@ -19,7 +19,7 @@ jobs:
|
||||
run: docker-compose -f "./e2e/docker/proxy-nginx/docker-compose.yaml" up -d --build
|
||||
|
||||
- name: Install node
|
||||
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v3
|
||||
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
- name: npm setup
|
||||
|
||||
15
.github/workflows/e2e-ci.yml
vendored
15
.github/workflows/e2e-ci.yml
vendored
@@ -3,6 +3,9 @@ name: E2E CLI
|
||||
on: [pull_request]
|
||||
permissions:
|
||||
contents: read
|
||||
concurrency:
|
||||
group: e2e-ci-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
prepare:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -17,7 +20,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
|
||||
- name: Use Node
|
||||
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v3
|
||||
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Install pnpm
|
||||
@@ -43,7 +46,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
|
||||
- name: Use Node 16
|
||||
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v3
|
||||
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Install pnpm
|
||||
@@ -80,7 +83,7 @@ jobs:
|
||||
e2e-cli-npm:
|
||||
needs: [prepare, build]
|
||||
strategy:
|
||||
fail-fast: false
|
||||
fail-fast: false
|
||||
matrix:
|
||||
pkg:
|
||||
[
|
||||
@@ -95,7 +98,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
|
||||
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v3
|
||||
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
|
||||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
- name: Install pnpm
|
||||
@@ -140,7 +143,7 @@ jobs:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
|
||||
# - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v3
|
||||
# - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
|
||||
# with:
|
||||
# node-version: ${{ matrix.node }}
|
||||
# - name: Install pnpm
|
||||
@@ -185,7 +188,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
|
||||
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v3
|
||||
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
|
||||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
- name: Install pnpm
|
||||
|
||||
5
.github/workflows/e2e-ui.yml
vendored
5
.github/workflows/e2e-ui.yml
vendored
@@ -3,6 +3,9 @@ name: E2E UI
|
||||
on: [pull_request]
|
||||
permissions:
|
||||
contents: read
|
||||
concurrency:
|
||||
group: e2e-ui-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -17,7 +20,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
|
||||
- name: Use Node
|
||||
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v3
|
||||
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Install pnpm
|
||||
|
||||
2
.github/workflows/static-data.yml
vendored
2
.github/workflows/static-data.yml
vendored
@@ -23,7 +23,7 @@ jobs:
|
||||
with:
|
||||
persist-credentials: false
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v3
|
||||
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
|
||||
with:
|
||||
node-version: 18.x
|
||||
- name: install pnpm
|
||||
|
||||
2
.github/workflows/ui-components.yml
vendored
2
.github/workflows/ui-components.yml
vendored
@@ -23,7 +23,7 @@ jobs:
|
||||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
|
||||
|
||||
- name: Use Node
|
||||
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v3
|
||||
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
|
||||
|
||||
2
.github/workflows/website.yml
vendored
2
.github/workflows/website.yml
vendored
@@ -37,7 +37,7 @@ jobs:
|
||||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
|
||||
|
||||
- name: Node
|
||||
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v3
|
||||
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v3
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Install pnpm
|
||||
|
||||
40
README.md
40
README.md
@@ -87,7 +87,7 @@ Learn more [here](https://verdaccio.org/docs/dev-plugins) how to develop plugins
|
||||
|
||||
## Donations
|
||||
|
||||
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 do a long support donation - **and your logo will be on this section of the readme.**
|
||||
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 doing a long support donation - **and your logo will be on this section of the readme.**
|
||||
|
||||
**[Donate](https://github.com/sponsors/verdaccio)** 💵👍🏻 starting from _$1/month_ or just one single contribution.
|
||||
|
||||
@@ -113,7 +113,7 @@ If you want to use a modified version of some 3rd-party package (for example, yo
|
||||
### E2E Testing
|
||||
|
||||
Verdaccio has proved to be a lightweight registry that can be
|
||||
booted in a couple of seconds, fast enough for any CI. Many open source projects use verdaccio for end to end testing, to mention some examples, **create-react-app**, **mozilla neutrino**, **pnpm**, **storybook**, **babel.js**, **angular-cli** or **docusaurus**. You can read more in [here](https://verdaccio.org/docs/e2e).
|
||||
booted in a couple of seconds, fast enough for any CI. Many open source projects use Verdaccio for end to end testing, to mention some examples, **create-react-app**, **mozilla neutrino**, **pnpm**, **storybook**, **babel.js**, **angular-cli** or **docusaurus**. You can read more in [here](https://verdaccio.org/docs/e2e).
|
||||
|
||||
Furthermore, here few examples how to start:
|
||||
|
||||
@@ -200,7 +200,7 @@ docker pull verdaccio/verdaccio:nightly-master
|
||||
|
||||
Available as [tags](https://hub.docker.com/r/verdaccio/verdaccio/tags/).
|
||||
|
||||
### Running verdaccio using Docker
|
||||
### Running Verdaccio using Docker
|
||||
|
||||
To run the docker container:
|
||||
|
||||
@@ -212,35 +212,35 @@ Docker examples are available [in this repository](https://github.com/verdaccio/
|
||||
|
||||
## Compatibility
|
||||
|
||||
Verdaccio aims to support all features of a standard npm client that make sense to support in private repository. Unfortunately, it isn't always possible.
|
||||
Verdaccio aims to support all features of a standard npm client that make sense to support in a private repository. Unfortunately, it isn't always possible.
|
||||
|
||||
### Basic features
|
||||
|
||||
- Installing packages (npm install, npm upgrade, etc.) - **supported**
|
||||
- Publishing packages (npm publish) - **supported**
|
||||
- Installing packages (`npm install`, `npm update`, etc.) - **supported**
|
||||
- Publishing packages (`npm publish`) - **supported**
|
||||
|
||||
### Advanced package control
|
||||
|
||||
- Unpublishing packages (npm unpublish) - **supported**
|
||||
- Tagging (npm tag) - **supported**
|
||||
- Deprecation (npm deprecate) - **supported**
|
||||
- Unpublishing packages (`npm unpublish`) - **supported**
|
||||
- Tagging (`npm dist-tag`) - **supported**
|
||||
- Deprecation (`npm deprecate`) - **supported**
|
||||
|
||||
### User management
|
||||
|
||||
- Registering new users (npm adduser {newuser}) - **supported**
|
||||
- Change password (npm profile set password) - **supported**
|
||||
- Transferring ownership (npm owner add {user} {pkg}) - not supported, _PR-welcome_
|
||||
- Token (npm token) - **supported**
|
||||
- Registering new users (`npm adduser {newuser}`) - **supported**
|
||||
- Change password (`npm profile set password`) - **supported**
|
||||
- Transferring ownership (`npm owner add {user} {pkg}`) - not supported, _PR-welcome_
|
||||
- Token (`npm token`) - **supported**
|
||||
|
||||
### Miscellany
|
||||
### Miscellaneous
|
||||
|
||||
- Searching (npm search) - **supported** (cli / browser)
|
||||
- Ping (npm ping) - **supported**
|
||||
- Starring (npm star, npm unstar, npm stars) - **supported**
|
||||
- Searching (`npm search`) - **supported** (cli / browser)
|
||||
- Ping (`npm ping`) - **supported**
|
||||
- Starring (`npm star`, `npm unstar`, `npm stars`) - **supported**
|
||||
|
||||
### Security
|
||||
|
||||
- npm/yarn audit - **supported**
|
||||
- Audit (`npm/yarn audit`) - **supported**
|
||||
|
||||
## Report a vulnerability
|
||||
|
||||
@@ -269,7 +269,7 @@ Thanks to the following companies to help us to achieve our goals providing free
|
||||
|  |  |
|
||||
| [@priscilawebdev](https://twitter.com/priscilawebdev) | [@DanielRufde](https://twitter.com/DanielRufde) |
|
||||
|
||||
You can find and chat with then over Discord, click [here](http://chat.verdaccio.org) or follow them at _Twitter_.
|
||||
You can find and chat with them over Discord, click [here](http://chat.verdaccio.org) or follow them at _Twitter_.
|
||||
|
||||
## Who is using Verdaccio?
|
||||
|
||||
@@ -323,7 +323,7 @@ This project exists thanks to all the people who contribute. [[Contribute](CONTR
|
||||
|
||||
### FAQ / Contact / Troubleshoot
|
||||
|
||||
If you have any issue you can try the following options, do no desist to ask or check our issues database, perhaps someone has asked already what you are looking for.
|
||||
If you have any issue you can try the following options. Do no hesitate to ask or check our issues database. Perhaps someone has asked already what you are looking for.
|
||||
|
||||
- [Blog](https://verdaccio.org/blog/)
|
||||
- [Donations](https://github.com/sponsors/verdaccio)
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
"main": "./build/index.js",
|
||||
"types": "./build/index.d.ts",
|
||||
"devDependencies": {
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/types": "workspace:12.0.0-next.2",
|
||||
"debug": "4.3.4",
|
||||
"fs-extra": "11.2.0",
|
||||
@@ -14,7 +14,7 @@
|
||||
"got": "11.8.6",
|
||||
"js-yaml": "4.1.0",
|
||||
"lodash": "4.17.21",
|
||||
"verdaccio": "workspace:7.0.0-next-7.9"
|
||||
"verdaccio": "workspace:7.0.0-next-7.10"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "jest",
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"version": "1.0.1",
|
||||
"dependencies": {
|
||||
"@verdaccio/test-cli-commons": "workspace:1.1.0",
|
||||
"npm": "10.3.0"
|
||||
"npm": "10.4.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "jest"
|
||||
|
||||
@@ -18,7 +18,7 @@ describe('audit a package yarn 2', () => {
|
||||
{
|
||||
packageName: '@scope/name',
|
||||
version: '1.0.0',
|
||||
dependencies: { jquery: '3.0.0' },
|
||||
dependencies: { aaa: 'latest' },
|
||||
devDependencies: {},
|
||||
}
|
||||
);
|
||||
@@ -27,6 +27,9 @@ describe('audit a package yarn 2', () => {
|
||||
|
||||
test('should run yarn npm audit info json body', async () => {
|
||||
await yarn(projectFolder, 'install');
|
||||
// this might fails if the dependency used above has vulnerabilities
|
||||
// always try to use ar real dependency that does not have such issues
|
||||
// yarn berry uses exit 1 if has error https://github.com/yarnpkg/berry/pull/4358
|
||||
const resp = await yarn(projectFolder, 'npm', 'audit', '--json');
|
||||
const parsedBody = JSON.parse(resp.stdout as string);
|
||||
expect(parsedBody.advisories).toBeDefined();
|
||||
|
||||
@@ -12,13 +12,13 @@ describe('audit a package yarn 3', () => {
|
||||
registry = setup.registry;
|
||||
await registry.init();
|
||||
const { tempFolder } = await yarnModernUtils.prepareYarnModernProject(
|
||||
'yarn-2',
|
||||
'yarn-3',
|
||||
registry.getRegistryUrl(),
|
||||
getYarnCommand(),
|
||||
{
|
||||
packageName: '@scope/name',
|
||||
version: '1.0.0',
|
||||
dependencies: { jquery: '3.0.0' },
|
||||
dependencies: { aaa: 'latest' },
|
||||
devDependencies: {},
|
||||
}
|
||||
);
|
||||
@@ -27,6 +27,9 @@ describe('audit a package yarn 3', () => {
|
||||
|
||||
test('should run yarn npm audit info json body', async () => {
|
||||
await yarn(projectFolder, 'install');
|
||||
// this might fails if the dependency used above has vulnerabilities
|
||||
// always try to use ar real dependency that does not have such issues
|
||||
// yarn berry uses exit 1 if has error https://github.com/yarnpkg/berry/pull/4358
|
||||
const resp = await yarn(projectFolder, 'npm', 'audit', '--json');
|
||||
const parsedBody = JSON.parse(resp.stdout as string);
|
||||
expect(parsedBody.advisories).toBeDefined();
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"version": "1.0.1",
|
||||
"dependencies": {
|
||||
"@verdaccio/test-cli-commons": "workspace:1.1.0",
|
||||
"@yarnpkg/cli-dist": "3.4.1"
|
||||
"@yarnpkg/cli-dist": "3.8.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "jest"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"name": "@verdaccio/e2e-cli-yarn4",
|
||||
"version": "1.0.1",
|
||||
"dependencies": {
|
||||
"@yarnpkg/cli-dist": "4.0.0-rc.39",
|
||||
"@yarnpkg/cli-dist": "4.1.0",
|
||||
"@verdaccio/test-cli-commons": "workspace:1.1.0"
|
||||
},
|
||||
"scripts": {
|
||||
|
||||
@@ -8,6 +8,12 @@
|
||||
- Check sidebar
|
||||
- Check protected packages works
|
||||
|
||||
## Running test locally
|
||||
|
||||
- Ensure no other verdaccio server is running, cypress will spawn it's own registry instance
|
||||
- To run all test: `pnpm test`
|
||||
- To run single test: `pnpm test -- --spec 'cypress/e2e/home.cy.ts'`
|
||||
|
||||
## Contribute
|
||||
|
||||
More tests could be added to verify UI works as expected.
|
||||
|
||||
@@ -13,6 +13,10 @@ export default defineConfig({
|
||||
runMode: 5,
|
||||
openMode: 0,
|
||||
},
|
||||
// Enable this to see debug screenshots on test failure
|
||||
// screenshotOnRunFailure: true,
|
||||
// Enable this to see debug video on test failure
|
||||
// video: true,
|
||||
e2e: {
|
||||
setupNodeEvents(on) {
|
||||
on('before:run', async () => {
|
||||
|
||||
@@ -32,4 +32,49 @@ describe('home spec', () => {
|
||||
cy.visit(`${ctx.url}/-/web/detail/@verdaccio/not-found`);
|
||||
cy.getByTestId('404').contains(`Sorry, we couldn't find it.`);
|
||||
});
|
||||
|
||||
it('should open dialog settings tabs are present', () => {
|
||||
cy.visit(ctx.url);
|
||||
cy.getByTestId('header--tooltip-settings').click();
|
||||
|
||||
cy.contains('Package Managers');
|
||||
cy.contains('Translations');
|
||||
});
|
||||
|
||||
it('should close dialog settings tabs are present', () => {
|
||||
cy.visit(ctx.url);
|
||||
cy.getByTestId('header--tooltip-settings').click();
|
||||
cy.get('#registryInfo--dialog-close').click();
|
||||
// check for content at the dialog should not be there
|
||||
cy.get('#panel1a-header').should('not.exist');
|
||||
});
|
||||
|
||||
it('should expand npm dialog registry details', () => {
|
||||
cy.visit(ctx.url);
|
||||
cy.getByTestId('header--tooltip-settings').click();
|
||||
cy.get('#panel1a-header').click();
|
||||
cy.contains(/npm set registry/);
|
||||
cy.contains(/npm adduser --registry/);
|
||||
cy.contains(/npm profile set password/);
|
||||
});
|
||||
|
||||
it('should expand pnpm dialog registry details', () => {
|
||||
cy.visit(ctx.url);
|
||||
cy.getByTestId('header--tooltip-settings').click();
|
||||
cy.get('#panel3a-header').click();
|
||||
cy.contains(/pnpm set registry/);
|
||||
cy.contains(/pnpm adduser --registry/);
|
||||
cy.contains(/pnpm profile set password/);
|
||||
});
|
||||
|
||||
it('should expand yarn dialog registry details', () => {
|
||||
cy.visit(ctx.url);
|
||||
cy.getByTestId('header--tooltip-settings').click();
|
||||
cy.get('#panel2a-header').click();
|
||||
// some initial explanation
|
||||
cy.contains(/Yarn classic configuration differs from Yarn/);
|
||||
// smoke test matches, (this is deelpy tested in the unit test)
|
||||
cy.contains(/.yarnrc.yml/);
|
||||
cy.contains(/npmRegistryServer:/);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
"name": "@verdaccio/e2e-ui",
|
||||
"version": "2.0.0",
|
||||
"devDependencies": {
|
||||
"verdaccio": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.9",
|
||||
"verdaccio": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/test-helper": "workspace:3.0.0-next-7.2",
|
||||
"debug": "4.3.4",
|
||||
"cypress": "^13.6.0",
|
||||
|
||||
@@ -47,8 +47,10 @@
|
||||
"@emotion/react": "11.10.6",
|
||||
"@emotion/styled": "11.10.6",
|
||||
"@testing-library/dom": "9.3.4",
|
||||
"@testing-library/jest-dom": "6.3.0",
|
||||
"@testing-library/react": "14.1.2",
|
||||
"@testing-library/jest-dom": "6.4.2",
|
||||
"@testing-library/user-event": "14.5.2",
|
||||
"aria-query": "5.1.3",
|
||||
"@testing-library/react": "14.2.1",
|
||||
"@trivago/prettier-plugin-sort-imports": "4.3.0",
|
||||
"@types/body-parser": "1.19.5",
|
||||
"@types/connect": "3.4.38",
|
||||
@@ -110,7 +112,7 @@
|
||||
"lint-staged": "11.2.6",
|
||||
"nock": "13.5.1",
|
||||
"nodemon": "3.0.3",
|
||||
"npm-run-all2": "5.0.0",
|
||||
"npm-run-all2": "5.0.2",
|
||||
"prettier": "3.2.2",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
# @verdaccio/api
|
||||
|
||||
## 7.0.0-next-7.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@7.0.0-next-7.10
|
||||
- @verdaccio/config@7.0.0-next-7.10
|
||||
- @verdaccio/auth@7.0.0-next-7.10
|
||||
- @verdaccio/middleware@7.0.0-next-7.10
|
||||
- @verdaccio/store@7.0.0-next-7.10
|
||||
- @verdaccio/utils@7.0.0-next-7.10
|
||||
- @verdaccio/logger@7.0.0-next-7.10
|
||||
|
||||
## 7.0.0-next-7.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/api",
|
||||
"version": "7.0.0-next-7.9",
|
||||
"version": "7.0.0-next-7.10",
|
||||
"description": "loaders logic",
|
||||
"main": "./build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -38,13 +38,13 @@
|
||||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@verdaccio/auth": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/middleware": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/store": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/auth": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/middleware": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/store": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.10",
|
||||
"abortcontroller-polyfill": "1.7.5",
|
||||
"body-parser": "1.20.2",
|
||||
"cookies": "0.9.0",
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
# @verdaccio/auth
|
||||
|
||||
## 7.0.0-next-7.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@7.0.0-next-7.10
|
||||
- @verdaccio/config@7.0.0-next-7.10
|
||||
- @verdaccio/loaders@7.0.0-next-7.10
|
||||
- verdaccio-htpasswd@12.0.0-next-7.10
|
||||
- @verdaccio/utils@7.0.0-next-7.10
|
||||
- @verdaccio/signature@7.0.0-next.3
|
||||
- @verdaccio/logger@7.0.0-next-7.10
|
||||
|
||||
## 7.0.0-next-7.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/auth",
|
||||
"version": "7.0.0-next-7.9",
|
||||
"version": "7.0.0-next-7.10",
|
||||
"description": "logger",
|
||||
"main": "./build/index.js",
|
||||
"types": "./build/index.d.ts",
|
||||
@@ -38,20 +38,20 @@
|
||||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/loaders": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/loaders": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/signature": "workspace:7.0.0-next.3",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.10",
|
||||
"debug": "4.3.4",
|
||||
"lodash": "4.17.21",
|
||||
"verdaccio-htpasswd": "workspace:12.0.0-next-7.9"
|
||||
"verdaccio-htpasswd": "workspace:12.0.0-next-7.10"
|
||||
},
|
||||
"devDependencies": {
|
||||
"express": "4.18.2",
|
||||
"supertest": "6.3.4",
|
||||
"@verdaccio/middleware": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/middleware": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/types": "workspace:12.0.0-next.2"
|
||||
},
|
||||
"funding": {
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
# @verdaccio/cli
|
||||
|
||||
## 7.0.0-next-7.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@7.0.0-next-7.10
|
||||
- @verdaccio/config@7.0.0-next-7.10
|
||||
- @verdaccio/node-api@7.0.0-next-7.10
|
||||
- @verdaccio/logger@7.0.0-next-7.10
|
||||
|
||||
## 7.0.0-next-7.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/cli",
|
||||
"version": "7.0.0-next-7.9",
|
||||
"version": "7.0.0-next-7.10",
|
||||
"author": {
|
||||
"name": "Juan Picado",
|
||||
"email": "juanpicado19@gmail.com"
|
||||
@@ -43,10 +43,10 @@
|
||||
"start": "ts-node src/index.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/node-api": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/node-api": "workspace:7.0.0-next-7.10",
|
||||
"clipanion": "3.2.1",
|
||||
"envinfo": "7.11.0",
|
||||
"kleur": "4.1.5",
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
# @verdaccio/config
|
||||
|
||||
## 7.0.0-next-7.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@7.0.0-next-7.10
|
||||
- @verdaccio/utils@7.0.0-next-7.10
|
||||
|
||||
## 7.0.0-next-7.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/config",
|
||||
"version": "7.0.0-next-7.9",
|
||||
"version": "7.0.0-next-7.10",
|
||||
"description": "logger",
|
||||
"main": "./build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -38,8 +38,8 @@
|
||||
"build": "pnpm run build:js && pnpm run build:types"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.10",
|
||||
"debug": "4.3.4",
|
||||
"js-yaml": "4.1.0",
|
||||
"lodash": "4.17.21",
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# @verdaccio/core
|
||||
|
||||
## 7.0.0-next-7.10
|
||||
|
||||
## 7.0.0-next-7.9
|
||||
|
||||
## 7.0.0-next-7.8
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/core",
|
||||
"version": "7.0.0-next-7.9",
|
||||
"version": "7.0.0-next-7.10",
|
||||
"description": "core utilities",
|
||||
"keywords": [
|
||||
"private",
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# Change Log
|
||||
|
||||
## 12.0.0-next-7.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@7.0.0-next-7.10
|
||||
- @verdaccio/url@12.0.0-next-7.10
|
||||
- @verdaccio/utils@7.0.0-next-7.10
|
||||
|
||||
## 12.0.0-next-7.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/tarball",
|
||||
"version": "12.0.0-next-7.9",
|
||||
"version": "12.0.0-next-7.10",
|
||||
"description": "tarball utilities resolver",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -34,9 +34,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"debug": "4.3.4",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/url": "workspace:12.0.0-next-7.9",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/url": "workspace:12.0.0-next-7.10",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.10",
|
||||
"lodash": "4.17.21"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# Change Log
|
||||
|
||||
## 12.0.0-next-7.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@7.0.0-next-7.10
|
||||
|
||||
## 12.0.0-next-7.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/url",
|
||||
"version": "12.0.0-next-7.9",
|
||||
"version": "12.0.0-next-7.10",
|
||||
"description": "url utilities resolver",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -33,7 +33,7 @@
|
||||
"access": "public"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.10",
|
||||
"debug": "4.3.4",
|
||||
"lodash": "4.17.21",
|
||||
"validator": "13.11.0"
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
# @verdaccio/hooks
|
||||
|
||||
## 7.0.0-next-7.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@7.0.0-next-7.10
|
||||
- @verdaccio/logger@7.0.0-next-7.10
|
||||
|
||||
## 7.0.0-next-7.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/hooks",
|
||||
"version": "7.0.0-next-7.9",
|
||||
"version": "7.0.0-next-7.10",
|
||||
"description": "loaders logic",
|
||||
"main": "./build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -29,16 +29,16 @@
|
||||
"node": ">=18"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.10",
|
||||
"core-js": "3.35.0",
|
||||
"debug": "4.3.4",
|
||||
"got-cjs": "12.5.4",
|
||||
"handlebars": "4.7.8"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/auth": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/auth": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/types": "workspace:12.0.0-next.2",
|
||||
"nock": "13.5.1"
|
||||
},
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# @verdaccio/loaders
|
||||
|
||||
## 7.0.0-next-7.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/logger@7.0.0-next-7.10
|
||||
|
||||
## 7.0.0-next-7.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/loaders",
|
||||
"version": "7.0.0-next-7.9",
|
||||
"version": "7.0.0-next-7.10",
|
||||
"description": "loaders logic",
|
||||
"main": "./build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -13,13 +13,13 @@
|
||||
"url": "https://github.com/verdaccio/verdaccio"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.10",
|
||||
"debug": "4.3.4",
|
||||
"lodash": "4.17.21"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/types": "workspace:12.0.0-next.2",
|
||||
"@verdaccio-scope/verdaccio-auth-foo": "0.0.2",
|
||||
"verdaccio-auth-memory": "workspace:*",
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# @verdaccio/logger-7
|
||||
|
||||
## 7.0.0-next-7.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/logger-commons@7.0.0-next-7.10
|
||||
|
||||
## 7.0.0-next-7.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/logger-7",
|
||||
"version": "7.0.0-next-7.9",
|
||||
"version": "7.0.0-next-7.10",
|
||||
"description": "logger for verdaccio 5.x version",
|
||||
"main": "./build/index.js",
|
||||
"types": "./build/index.d.ts",
|
||||
@@ -38,7 +38,7 @@
|
||||
"build": "pnpm run build:js && pnpm run build:types"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/logger-commons": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/logger-commons": "workspace:7.0.0-next-7.10",
|
||||
"pino": "7.11.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# @verdaccio/logger-commons
|
||||
|
||||
## 7.0.0-next-7.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@7.0.0-next-7.10
|
||||
|
||||
## 7.0.0-next-7.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/logger-commons",
|
||||
"version": "7.0.0-next-7.9",
|
||||
"version": "7.0.0-next-7.10",
|
||||
"description": "logger",
|
||||
"main": "./build/index.js",
|
||||
"types": "./build/index.d.ts",
|
||||
@@ -38,7 +38,7 @@
|
||||
"build": "pnpm run build:js && pnpm run build:types"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/logger-prettify": "workspace:7.0.0-next.1",
|
||||
"debug": "4.3.4",
|
||||
"colorette": "2.0.20"
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# @verdaccio/logger
|
||||
|
||||
## 7.0.0-next-7.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/logger-commons@7.0.0-next-7.10
|
||||
|
||||
## 7.0.0-next-7.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/logger",
|
||||
"version": "7.0.0-next-7.9",
|
||||
"version": "7.0.0-next-7.10",
|
||||
"description": "logger",
|
||||
"main": "./build/index.js",
|
||||
"types": "./build/index.d.ts",
|
||||
@@ -38,7 +38,7 @@
|
||||
"build": "pnpm run build:js && pnpm run build:types"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/logger-commons": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/logger-commons": "workspace:7.0.0-next-7.10",
|
||||
"pino": "8.17.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
# @verdaccio/middleware
|
||||
|
||||
## 7.0.0-next-7.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@7.0.0-next-7.10
|
||||
- @verdaccio/config@7.0.0-next-7.10
|
||||
- @verdaccio/url@12.0.0-next-7.10
|
||||
- @verdaccio/utils@7.0.0-next-7.10
|
||||
|
||||
## 7.0.0-next-7.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/middleware",
|
||||
"version": "7.0.0-next-7.9",
|
||||
"version": "7.0.0-next-7.10",
|
||||
"description": "express middleware utils",
|
||||
"main": "./build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -38,10 +38,10 @@
|
||||
"build": "pnpm run build:js && pnpm run build:types"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/url": "workspace:12.0.0-next-7.9",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/url": "workspace:12.0.0-next-7.10",
|
||||
"debug": "4.3.4",
|
||||
"lru-cache": "7.18.3",
|
||||
"express": "4.18.2",
|
||||
@@ -54,7 +54,7 @@
|
||||
"url": "https://opencollective.com/verdaccio"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.10",
|
||||
"body-parser": "1.20.2",
|
||||
"supertest": "6.3.4"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
# @verdaccio/node-api
|
||||
|
||||
## 7.0.0-next-7.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@7.0.0-next-7.10
|
||||
- @verdaccio/config@7.0.0-next-7.10
|
||||
- @verdaccio/server@7.0.0-next-7.10
|
||||
- @verdaccio/server-fastify@7.0.0-next-7.10
|
||||
- @verdaccio/logger@7.0.0-next-7.10
|
||||
|
||||
## 7.0.0-next-7.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/node-api",
|
||||
"version": "7.0.0-next-7.9",
|
||||
"version": "7.0.0-next-7.10",
|
||||
"description": "node API",
|
||||
"main": "build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -38,11 +38,11 @@
|
||||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/server": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/server-fastify": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/server": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/server-fastify": "workspace:7.0.0-next-7.10",
|
||||
"core-js": "3.35.0",
|
||||
"debug": "4.3.4",
|
||||
"lodash": "4.17.21"
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
# Change Log
|
||||
|
||||
## 12.0.0-next-7.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@7.0.0-next-7.10
|
||||
- @verdaccio/config@7.0.0-next-7.10
|
||||
|
||||
## 12.0.0-next-7.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "verdaccio-audit",
|
||||
"version": "12.0.0-next-7.9",
|
||||
"version": "12.0.0-next-7.10",
|
||||
"description": "Verdaccio Middleware plugin to bypass npmjs audit",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -30,15 +30,15 @@
|
||||
"node": ">=12"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.10",
|
||||
"express": "4.18.2",
|
||||
"https-proxy-agent": "5.0.1",
|
||||
"node-fetch": "cjs"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/auth": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/auth": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/types": "workspace:12.0.0-next.2",
|
||||
"nock": "13.5.1",
|
||||
"supertest": "6.3.4"
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# Change Log
|
||||
|
||||
## 12.0.0-next-7.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@7.0.0-next-7.10
|
||||
|
||||
## 12.0.0-next-7.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "verdaccio-auth-memory",
|
||||
"version": "12.0.0-next-7.9",
|
||||
"version": "12.0.0-next-7.10",
|
||||
"description": "Auth plugin for Verdaccio that keeps users in memory",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -30,12 +30,12 @@
|
||||
"node": ">=18"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.10",
|
||||
"debug": "4.3.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/debug": "^4.1.12",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/types": "workspace:12.0.0-next.2"
|
||||
},
|
||||
"scripts": {
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# Change Log
|
||||
|
||||
## 12.0.0-next-7.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@7.0.0-next-7.10
|
||||
|
||||
## 12.0.0-next-7.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "verdaccio-htpasswd",
|
||||
"version": "12.0.0-next-7.9",
|
||||
"version": "12.0.0-next-7.10",
|
||||
"description": "htpasswd auth plugin for Verdaccio",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -33,7 +33,7 @@
|
||||
"node": ">=12"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/file-locking": "workspace:12.0.0-next.1",
|
||||
"apache-md5": "1.1.8",
|
||||
"bcryptjs": "2.4.3",
|
||||
@@ -45,8 +45,8 @@
|
||||
"devDependencies": {
|
||||
"@types/bcryptjs": "2.4.6",
|
||||
"@verdaccio/types": "workspace:12.0.0-next.2",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.10",
|
||||
"mockdate": "3.0.5"
|
||||
},
|
||||
"scripts": {
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
# Change Log
|
||||
|
||||
## 12.0.0-next-7.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@7.0.0-next-7.10
|
||||
- @verdaccio/utils@7.0.0-next-7.10
|
||||
|
||||
## 12.0.0-next-7.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/local-storage",
|
||||
"version": "12.0.0-next-7.9",
|
||||
"version": "12.0.0-next-7.10",
|
||||
"description": "Local storage implementation",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -36,9 +36,9 @@
|
||||
"node": ">=18"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/file-locking": "workspace:12.0.0-next.1",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.10",
|
||||
"core-js": "3.35.0",
|
||||
"debug": "4.3.4",
|
||||
"globby": "11.1.0",
|
||||
@@ -50,8 +50,8 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/minimatch": "5.1.2",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/test-helper": "workspace:3.0.0-next-7.2",
|
||||
"@verdaccio/types": "workspace:12.0.0-next.2",
|
||||
"minimatch": "9.0.3"
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# Change Log
|
||||
|
||||
## 12.0.0-next-7.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@7.0.0-next-7.10
|
||||
|
||||
## 12.0.0-next-7.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "verdaccio-memory",
|
||||
"version": "12.0.0-next-7.9",
|
||||
"version": "12.0.0-next-7.10",
|
||||
"description": "Storage implementation in memory",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -30,15 +30,15 @@
|
||||
"node": ">=18"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.10",
|
||||
"memory-fs": "0.5.0",
|
||||
"debug": "4.3.4",
|
||||
"memfs": "3.5.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "workspace:12.0.0-next.2",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.9"
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.10"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "rimraf ./build",
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# @verdaccio/ui-theme
|
||||
|
||||
## 7.0.0-next-7.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 5210408: fix: ui dialog break pages on open due remark error
|
||||
|
||||
## 7.0.0-next-7.9
|
||||
|
||||
## 7.0.0-next-7.8
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/ui-theme",
|
||||
"version": "7.0.0-next-7.9",
|
||||
"version": "7.0.0-next-7.10",
|
||||
"description": "Verdaccio User Interface",
|
||||
"author": {
|
||||
"name": "Verdaccio Contributors",
|
||||
@@ -27,9 +27,9 @@
|
||||
"@testing-library/dom": "9.3.4",
|
||||
"@testing-library/jest-dom": "6.3.0",
|
||||
"@testing-library/react": "14.1.2",
|
||||
"@verdaccio/node-api": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/node-api": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/types": "workspace:*",
|
||||
"@verdaccio/ui-components": "workspace:3.0.0-next-7.3",
|
||||
"@verdaccio/ui-components": "workspace:3.0.0-next-7.4",
|
||||
"babel-loader": "8.3.0",
|
||||
"babel-plugin-dynamic-import-node": "2.3.3",
|
||||
"country-flag-icons": "1.5.9",
|
||||
@@ -58,7 +58,7 @@
|
||||
"raw-loader": "4.0.2",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
"react-hook-form": "7.49.3",
|
||||
"react-hook-form": "7.50.1",
|
||||
"react-hot-loader": "4.13.1",
|
||||
"react-i18next": "13.5.0",
|
||||
"react-json-view": "1.21.3",
|
||||
@@ -69,7 +69,6 @@
|
||||
"react-virtualized": "9.22.5",
|
||||
"redux": "4.2.1",
|
||||
"redux-persist": "6.0.0",
|
||||
"remark-gfm": "3.0.1",
|
||||
"rimraf": "5.0.5",
|
||||
"style-loader": "3.3.4",
|
||||
"stylelint": "15.11.0",
|
||||
|
||||
@@ -8,7 +8,6 @@ import React, { StrictMode, Suspense, useEffect } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import ReactMarkdown from 'react-markdown';
|
||||
import { Router } from 'react-router-dom';
|
||||
import remarkGfm from 'remark-gfm';
|
||||
|
||||
import {
|
||||
Footer,
|
||||
@@ -59,12 +58,12 @@ function CustomInfoDialog({ onCloseDialog, title, isOpen }) {
|
||||
{
|
||||
element: (
|
||||
<>
|
||||
<ReactMarkdown remarkPlugins={[remarkGfm]}>{about}</ReactMarkdown>
|
||||
<ReactMarkdown>{about}</ReactMarkdown>
|
||||
<Contributors />
|
||||
</>
|
||||
),
|
||||
},
|
||||
{ element: <ReactMarkdown remarkPlugins={[remarkGfm]}>{license}</ReactMarkdown> },
|
||||
{ element: <ReactMarkdown>{license}</ReactMarkdown> },
|
||||
{ element: <Support /> },
|
||||
]}
|
||||
tabs={[
|
||||
|
||||
@@ -39,6 +39,10 @@
|
||||
"username": "anikethsaha",
|
||||
"id": 26347874
|
||||
},
|
||||
{
|
||||
"username": "mbtools",
|
||||
"id": 59966492
|
||||
},
|
||||
{
|
||||
"username": "kgrubb",
|
||||
"id": 8471701
|
||||
@@ -47,10 +51,6 @@
|
||||
"username": "tmkn",
|
||||
"id": 2671613
|
||||
},
|
||||
{
|
||||
"username": "mbtools",
|
||||
"id": 59966492
|
||||
},
|
||||
{
|
||||
"username": "indiescripter",
|
||||
"id": 154585070
|
||||
@@ -523,6 +523,10 @@
|
||||
"username": "paulbrimicombe",
|
||||
"id": 10939697
|
||||
},
|
||||
{
|
||||
"username": "barrywoolgar",
|
||||
"id": 6248009
|
||||
},
|
||||
{
|
||||
"username": "AvailCat",
|
||||
"id": 19658647
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# @verdaccio/proxy
|
||||
|
||||
## 7.0.0-next-7.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@7.0.0-next-7.10
|
||||
- @verdaccio/config@7.0.0-next-7.10
|
||||
- @verdaccio/utils@7.0.0-next-7.10
|
||||
|
||||
## 7.0.0-next-7.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/proxy",
|
||||
"version": "7.0.0-next-7.9",
|
||||
"version": "7.0.0-next-7.10",
|
||||
"description": "verdaccio proxy fetcher",
|
||||
"main": "./build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -38,9 +38,9 @@
|
||||
"build": "pnpm run build:js && pnpm run build:types"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.10",
|
||||
"JSONStream": "1.3.5",
|
||||
"debug": "4.3.4",
|
||||
"got-cjs": "12.5.4",
|
||||
@@ -48,7 +48,7 @@
|
||||
"lodash": "4.17.21"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/types": "workspace:12.0.0-next.2",
|
||||
"get-stream": "^6.0.1",
|
||||
"nock": "13.5.1",
|
||||
|
||||
@@ -1,5 +1,21 @@
|
||||
# @verdaccio/server
|
||||
|
||||
## 7.0.0-next-7.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@7.0.0-next-7.10
|
||||
- @verdaccio/config@7.0.0-next-7.10
|
||||
- @verdaccio/api@7.0.0-next-7.10
|
||||
- @verdaccio/auth@7.0.0-next-7.10
|
||||
- @verdaccio/loaders@7.0.0-next-7.10
|
||||
- @verdaccio/middleware@7.0.0-next-7.10
|
||||
- verdaccio-audit@12.0.0-next-7.10
|
||||
- @verdaccio/store@7.0.0-next-7.10
|
||||
- @verdaccio/utils@7.0.0-next-7.10
|
||||
- @verdaccio/web@7.0.0-next-7.10
|
||||
- @verdaccio/logger@7.0.0-next-7.10
|
||||
|
||||
## 7.0.0-next-7.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/server",
|
||||
"version": "7.0.0-next-7.9",
|
||||
"version": "7.0.0-next-7.10",
|
||||
"description": "server logic",
|
||||
"main": "./build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -29,17 +29,17 @@
|
||||
"node": ">=18"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/api": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/auth": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/loaders": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/middleware": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/store": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/web": "workspace:7.0.0-next-7.9",
|
||||
"verdaccio-audit": "workspace:12.0.0-next-7.9",
|
||||
"@verdaccio/api": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/auth": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/loaders": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/middleware": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/store": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/web": "workspace:7.0.0-next-7.10",
|
||||
"verdaccio-audit": "workspace:12.0.0-next-7.10",
|
||||
"compression": "1.7.4",
|
||||
"cors": "2.8.5",
|
||||
"debug": "4.3.4",
|
||||
@@ -47,7 +47,7 @@
|
||||
"lodash": "4.17.21"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/proxy": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/proxy": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/test-helper": "workspace:3.0.0-next-7.2",
|
||||
"http-errors": "2.0.0"
|
||||
},
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
# @verdaccio/server-fastify
|
||||
|
||||
## 7.0.0-next-7.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@7.0.0-next-7.10
|
||||
- @verdaccio/config@7.0.0-next-7.10
|
||||
- @verdaccio/auth@7.0.0-next-7.10
|
||||
- @verdaccio/tarball@12.0.0-next-7.10
|
||||
- @verdaccio/store@7.0.0-next-7.10
|
||||
- @verdaccio/utils@7.0.0-next-7.10
|
||||
- @verdaccio/logger@7.0.0-next-7.10
|
||||
|
||||
## 7.0.0-next-7.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/server-fastify",
|
||||
"version": "7.0.0-next-7.9",
|
||||
"version": "7.0.0-next-7.10",
|
||||
"description": "fastify server api implementation",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -33,13 +33,13 @@
|
||||
"access": "public"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/auth": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/store": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/tarball": "workspace:12.0.0-next-7.9",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/auth": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/store": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/tarball": "workspace:12.0.0-next-7.10",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.10",
|
||||
"core-js": "3.35.0",
|
||||
"debug": "4.3.4",
|
||||
"fastify": "4.25.2",
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
"debug": "4.3.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/types": "workspace:12.0.0-next.2"
|
||||
},
|
||||
"funding": {
|
||||
|
||||
@@ -32,8 +32,8 @@
|
||||
"homepage": "https://verdaccio.org",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@verdaccio/cli": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/ui-theme": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/cli": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/ui-theme": "workspace:7.0.0-next-7.10",
|
||||
"fs-extra": "11.2.0",
|
||||
"webpack": "5.90.0",
|
||||
"webpack-bundle-analyzer": "4.10.1",
|
||||
|
||||
@@ -1,5 +1,20 @@
|
||||
# @verdaccio/store
|
||||
|
||||
## 7.0.0-next-7.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@7.0.0-next-7.10
|
||||
- @verdaccio/config@7.0.0-next-7.10
|
||||
- @verdaccio/tarball@12.0.0-next-7.10
|
||||
- @verdaccio/url@12.0.0-next-7.10
|
||||
- @verdaccio/hooks@7.0.0-next-7.10
|
||||
- @verdaccio/loaders@7.0.0-next-7.10
|
||||
- @verdaccio/local-storage@12.0.0-next-7.10
|
||||
- @verdaccio/proxy@7.0.0-next-7.10
|
||||
- @verdaccio/utils@7.0.0-next-7.10
|
||||
- @verdaccio/logger@7.0.0-next-7.10
|
||||
|
||||
## 7.0.0-next-7.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/store",
|
||||
"version": "7.0.0-next-7.9",
|
||||
"version": "7.0.0-next-7.10",
|
||||
"description": "loaders logic",
|
||||
"main": "./build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -38,16 +38,16 @@
|
||||
"build": "pnpm run build:js && pnpm run build:types"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/hooks": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/loaders": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/local-storage": "workspace:12.0.0-next-7.9",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/proxy": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/tarball": "workspace:12.0.0-next-7.9",
|
||||
"@verdaccio/url": "workspace:12.0.0-next-7.9",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/hooks": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/loaders": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/local-storage": "workspace:12.0.0-next-7.10",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/proxy": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/tarball": "workspace:12.0.0-next-7.10",
|
||||
"@verdaccio/url": "workspace:12.0.0-next-7.10",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.10",
|
||||
"JSONStream": "1.3.5",
|
||||
"debug": "4.3.4",
|
||||
"lodash": "4.17.21",
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
{
|
||||
"id": 558752,
|
||||
"login": "juanpicado",
|
||||
"contributions": 5215,
|
||||
"contributions": 5225,
|
||||
"repositories": [
|
||||
{
|
||||
"name": "verdaccio",
|
||||
"contributions": 2879
|
||||
"contributions": 2882
|
||||
},
|
||||
{
|
||||
"name": "verdaccio-cookbook",
|
||||
@@ -59,7 +59,7 @@
|
||||
},
|
||||
{
|
||||
"name": "monorepo",
|
||||
"contributions": 209
|
||||
"contributions": 212
|
||||
},
|
||||
{
|
||||
"name": "authentication-plugin-sample",
|
||||
@@ -127,11 +127,15 @@
|
||||
},
|
||||
{
|
||||
"name": "cdn-assets",
|
||||
"contributions": 33
|
||||
"contributions": 34
|
||||
},
|
||||
{
|
||||
"name": "e2e-tests",
|
||||
"contributions": 67
|
||||
},
|
||||
{
|
||||
"name": ".github",
|
||||
"contributions": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -386,6 +390,17 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 59966492,
|
||||
"login": "mbtools",
|
||||
"contributions": 19,
|
||||
"repositories": [
|
||||
{
|
||||
"name": "verdaccio",
|
||||
"contributions": 19
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 8471701,
|
||||
"login": "kgrubb",
|
||||
@@ -408,17 +423,6 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 59966492,
|
||||
"login": "mbtools",
|
||||
"contributions": 15,
|
||||
"repositories": [
|
||||
{
|
||||
"name": "verdaccio",
|
||||
"contributions": 15
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 154585070,
|
||||
"login": "indiescripter",
|
||||
@@ -1933,6 +1937,17 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 6248009,
|
||||
"login": "barrywoolgar",
|
||||
"contributions": 2,
|
||||
"repositories": [
|
||||
{
|
||||
"name": "monorepo",
|
||||
"contributions": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 19658647,
|
||||
"login": "AvailCat",
|
||||
@@ -4941,7 +4956,7 @@
|
||||
"full_name": "verdaccio/verdaccio",
|
||||
"html_url": "https://github.com/verdaccio/verdaccio",
|
||||
"description": "📦🔐 A lightweight Node.js private proxy registry",
|
||||
"stargazers_count": 15680,
|
||||
"stargazers_count": 15698,
|
||||
"archived": false
|
||||
},
|
||||
{
|
||||
@@ -4967,7 +4982,7 @@
|
||||
"login": "verdaccio",
|
||||
"full_name": "verdaccio/generator-verdaccio-plugin",
|
||||
"html_url": "https://github.com/verdaccio/generator-verdaccio-plugin",
|
||||
"description": " 🧩 yeoman verdaccio plugin generator",
|
||||
"description": " 🧩 yeoman verdaccio plugin generator (low maintenance)",
|
||||
"stargazers_count": 12,
|
||||
"archived": false
|
||||
},
|
||||
@@ -5231,6 +5246,15 @@
|
||||
"description": "e2e tests",
|
||||
"stargazers_count": 1,
|
||||
"archived": false
|
||||
},
|
||||
{
|
||||
"name": ".github",
|
||||
"login": "verdaccio",
|
||||
"full_name": "verdaccio/.github",
|
||||
"html_url": "https://github.com/verdaccio/.github",
|
||||
"description": null,
|
||||
"stargazers_count": 0,
|
||||
"archived": false
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -9,13 +9,13 @@
|
||||
"main": "build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
"devDependencies": {
|
||||
"@verdaccio/auth": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/middleware": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/auth": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/middleware": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/types": "workspace:12.0.0-next.2",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.10",
|
||||
"body-parser": "1.20.2",
|
||||
"debug": "4.3.4",
|
||||
"express": "4.18.2",
|
||||
|
||||
@@ -10,9 +10,9 @@
|
||||
"types": "build/index.d.ts",
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "workspace:12.0.0-next.2",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.9",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.9",
|
||||
"verdaccio": "7.0.0-next-7.9"
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.10",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.10",
|
||||
"verdaccio": "7.0.0-next-7.10"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "ts-node src/index.ts",
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
"approvalProgress": 16
|
||||
},
|
||||
"pt-BR": {
|
||||
"translationProgress": 29,
|
||||
"translationProgress": 28,
|
||||
"approvalProgress": 27
|
||||
},
|
||||
"ru": {
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# @verdaccio/ui-components
|
||||
|
||||
## 3.0.0-next-7.4
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 5210408: fix: ui dialog break pages on open due remark error
|
||||
|
||||
## 3.0.0-next-7.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
12520
packages/ui-components/jest/api/glob-sidebar.json
Normal file
12520
packages/ui-components/jest/api/glob-sidebar.json
Normal file
File diff suppressed because it is too large
Load Diff
23346
packages/ui-components/jest/api/got-sidebar.json
Normal file
23346
packages/ui-components/jest/api/got-sidebar.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -34,10 +34,10 @@ module.exports = Object.assign({}, config, {
|
||||
coverageReporters: ['text', 'html'],
|
||||
coverageThreshold: {
|
||||
global: {
|
||||
branches: 66,
|
||||
functions: 65,
|
||||
lines: 73,
|
||||
statements: 73,
|
||||
branches: 70,
|
||||
functions: 76,
|
||||
lines: 80,
|
||||
statements: 82,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
@@ -31,7 +31,18 @@ export const handlers = [
|
||||
rest.get('http://localhost:9000/-/verdaccio/data/sidebar/jquery', (req, res, ctx) => {
|
||||
return res(ctx.json(require('./api/jquery-sidebar.json')));
|
||||
}),
|
||||
|
||||
rest.get('http://localhost:9000/-/verdaccio/data/sidebar/glob', (req, res, ctx) => {
|
||||
return res(ctx.json(require('./api/glob-sidebar.json')));
|
||||
}),
|
||||
rest.get('http://localhost:9000/-/verdaccio/data/package/readme/glob', (req, res, ctx) => {
|
||||
return res(ctx.text('foo glob'));
|
||||
}),
|
||||
rest.get('http://localhost:9000/-/verdaccio/data/sidebar/got', (req, res, ctx) => {
|
||||
return res(ctx.json(require('./api/got-sidebar.json')));
|
||||
}),
|
||||
rest.get('http://localhost:9000/-/verdaccio/data/package/readme/got', (req, res, ctx) => {
|
||||
return res(ctx.text('foo got'));
|
||||
}),
|
||||
rest.get('http://localhost:9000/-/verdaccio/data/package/readme/jquery', (req, res, ctx) => {
|
||||
return res(ctx.text(require('./api/jquery-readme')()));
|
||||
}),
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/ui-components",
|
||||
"version": "3.0.0-next-7.3",
|
||||
"version": "3.0.0-next-7.4",
|
||||
"description": "theme ui component",
|
||||
"author": "Juan Picado <juanpicado19@gmail.com>",
|
||||
"license": "MIT",
|
||||
@@ -54,7 +54,6 @@
|
||||
"react-router-dom": "5.3.4",
|
||||
"react-virtualized": "9.22.5",
|
||||
"redux": "4.2.1",
|
||||
"remark-gfm": "3.0.1",
|
||||
"validator": "13.11.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -6,7 +6,6 @@ import Dependencies from './Dependencies';
|
||||
|
||||
describe('<Dependencies /> component', () => {
|
||||
test('Renders a message when there are no dependencies', () => {
|
||||
// Given
|
||||
const packageMeta = {
|
||||
latest: {
|
||||
name: 'verdaccio',
|
||||
@@ -25,15 +24,12 @@ describe('<Dependencies /> component', () => {
|
||||
_uplinks: {},
|
||||
};
|
||||
|
||||
// When
|
||||
const { getByText } = render(<Dependencies packageMeta={packageMeta} />);
|
||||
|
||||
// Then
|
||||
expect(getByText('dependencies.has-no-dependencies')).toBeDefined();
|
||||
});
|
||||
|
||||
test('Renders a link to each dependency', () => {
|
||||
// Given
|
||||
test('renders a link to each dependency', () => {
|
||||
const packageMeta = {
|
||||
latest: {
|
||||
name: 'verdaccio',
|
||||
@@ -59,18 +55,12 @@ describe('<Dependencies /> component', () => {
|
||||
_uplinks: {},
|
||||
};
|
||||
|
||||
// When
|
||||
const { getByText } = render(
|
||||
<HashRouter>
|
||||
<Dependencies packageMeta={packageMeta} />
|
||||
</HashRouter>
|
||||
);
|
||||
|
||||
// Then
|
||||
// FIXME: currently MaterialUI chips do not support the children
|
||||
// prop, therefore it is impossible to use proper links for
|
||||
// dependencies. Those are for now clickable spans
|
||||
|
||||
expect(getByText('dependencies (2)')).toBeDefined();
|
||||
expect(getByText('devDependencies (1)')).toBeDefined();
|
||||
expect(getByText('peerDependencies (1)')).toBeDefined();
|
||||
|
||||
@@ -1,63 +1,21 @@
|
||||
import Box from '@mui/material/Box';
|
||||
import styled from '@emotion/styled';
|
||||
import Card from '@mui/material/Card';
|
||||
import CardContent from '@mui/material/CardContent';
|
||||
import { useTheme } from '@mui/styles';
|
||||
import React from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { useHistory } from 'react-router-dom';
|
||||
|
||||
import { PackageDependencies } from '../../types/packageMeta';
|
||||
import { Theme } from '../../Theme';
|
||||
import NoItems from '../NoItems';
|
||||
import { CardWrap, StyledText, Tag, Tags } from './styles';
|
||||
import { DependencyBlock } from './DependencyBlock';
|
||||
import { hasKeys } from './utits';
|
||||
|
||||
interface DependencyBlockProps {
|
||||
title: string;
|
||||
dependencies: PackageDependencies;
|
||||
}
|
||||
|
||||
const DependencyBlock: React.FC<DependencyBlockProps> = ({ title, dependencies }) => {
|
||||
const history = useHistory();
|
||||
const { t } = useTranslation();
|
||||
const theme = useTheme();
|
||||
|
||||
const deps = Object.entries(dependencies);
|
||||
|
||||
function handleClick(name: string): void {
|
||||
history.push(`/-/web/detail/${name}`);
|
||||
}
|
||||
|
||||
return (
|
||||
<Box data-testid={title} sx={{ margin: theme.spacing(2) }}>
|
||||
<StyledText sx={{ marginBottom: theme.spacing(1) }} variant="subtitle1">
|
||||
{`${title} (${deps.length})`}
|
||||
</StyledText>
|
||||
<Tags>
|
||||
{deps.map(([name, version]) => (
|
||||
<Tag
|
||||
className={'dep-tag'}
|
||||
clickable={true}
|
||||
data-testid={name}
|
||||
key={name}
|
||||
label={t('dependencies.dependency-block', { package: name, version })}
|
||||
// eslint-disable-next-line
|
||||
onClick={() => handleClick(name)}
|
||||
/>
|
||||
))}
|
||||
</Tags>
|
||||
</Box>
|
||||
);
|
||||
};
|
||||
|
||||
function hasKeys(object?: { [key: string]: any }): boolean {
|
||||
return !!object && Object.keys(object).length > 0;
|
||||
}
|
||||
export const CardWrap = styled(Card)<{ theme?: Theme }>((props) => ({
|
||||
marginBottom: props.theme.spacing(2),
|
||||
}));
|
||||
|
||||
const Dependencies: React.FC<{ packageMeta: any }> = ({ packageMeta }) => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
if (!packageMeta) {
|
||||
throw new Error(t('error.package-meta-is-required-at-detail-context'));
|
||||
}
|
||||
|
||||
const { latest } = packageMeta;
|
||||
// FIXME: add dependencies to package meta type
|
||||
// @ts-ignore
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
import userEvent from '@testing-library/user-event';
|
||||
import React from 'react';
|
||||
import { MemoryRouter, Route } from 'react-router';
|
||||
|
||||
import { render, screen } from '../../test/test-react-testing-library';
|
||||
import { DependencyBlock } from './DependencyBlock';
|
||||
|
||||
describe('<DependencyBlock /> component', () => {
|
||||
test('renders dependency block', () => {
|
||||
render(<DependencyBlock dependencies={{ jquery: '1.0.0' }} title="foo" />);
|
||||
|
||||
expect(screen.getByText('foo (1)')).toBeInTheDocument();
|
||||
expect(screen.getByText('dependencies.dependency-block')).toBeInTheDocument();
|
||||
|
||||
userEvent.click(screen.getByText('dependencies.dependency-block'));
|
||||
});
|
||||
|
||||
test.todo('test the click event');
|
||||
test.skip('handle change route handler', () => {
|
||||
render(
|
||||
<MemoryRouter
|
||||
initialEntries={[`/-/web/detail/some-dep`, `/-/web/detail/jquery`]}
|
||||
initialIndex={0}
|
||||
>
|
||||
<Route exact={true} path="/-/web/detail/:package">
|
||||
<DependencyBlock dependencies={{ jquery: '1.0.0' }} title="foo" />
|
||||
</Route>
|
||||
</MemoryRouter>
|
||||
);
|
||||
|
||||
userEvent.click(screen.getByTestId('jquery'));
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,69 @@
|
||||
import styled from '@emotion/styled';
|
||||
import Box from '@mui/material/Box';
|
||||
import Chip from '@mui/material/Chip';
|
||||
import Typography from '@mui/material/Typography';
|
||||
import { useTheme } from '@mui/styles';
|
||||
import React from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { useHistory } from 'react-router-dom';
|
||||
|
||||
import { Theme } from '../../Theme';
|
||||
import { PackageDependencies } from '../../types/packageMeta';
|
||||
|
||||
interface DependencyBlockProps {
|
||||
title: string;
|
||||
dependencies: PackageDependencies;
|
||||
}
|
||||
|
||||
export const StyledText = styled(Typography)<{ theme?: Theme }>((props) => ({
|
||||
fontWeight: props.theme && props.theme.fontWeight.bold,
|
||||
textTransform: 'capitalize',
|
||||
}));
|
||||
|
||||
export const Tags = styled('div')<{ theme?: Theme }>((props) => ({
|
||||
display: 'flex',
|
||||
justifyContent: 'start',
|
||||
flexWrap: 'wrap',
|
||||
// force title to be on the same line as the title
|
||||
// could be better to avoid margin on the first element
|
||||
// but it is a bit tricky to do with flexbox
|
||||
marginLeft: props.theme.spacing(-0.6),
|
||||
}));
|
||||
|
||||
export const Tag = styled(Chip)<{ theme?: Theme }>((props) => ({
|
||||
margin: props.theme.spacing(0.6),
|
||||
}));
|
||||
|
||||
export const DependencyBlock: React.FC<DependencyBlockProps> = ({ title, dependencies }) => {
|
||||
const history = useHistory();
|
||||
const { t } = useTranslation();
|
||||
const theme = useTheme();
|
||||
const deps = Object.entries(dependencies);
|
||||
|
||||
function handleClick(name: string): void {
|
||||
history.push(`/-/web/detail/${name}`);
|
||||
}
|
||||
|
||||
return (
|
||||
<Box data-testid={title} sx={{ margin: theme.spacing(2) }}>
|
||||
<StyledText sx={{ marginBottom: theme.spacing(1) }} variant="subtitle1">
|
||||
{`${title} (${deps.length})`}
|
||||
</StyledText>
|
||||
<Tags>
|
||||
{deps.map(([name, version]) => (
|
||||
<Tag
|
||||
className={'dep-tag'}
|
||||
clickable={true}
|
||||
data-testid={name}
|
||||
key={name}
|
||||
label={t('dependencies.dependency-block', { package: name, version })}
|
||||
// eslint-disable-next-line
|
||||
onClick={() => {
|
||||
handleClick(name);
|
||||
}}
|
||||
/>
|
||||
))}
|
||||
</Tags>
|
||||
</Box>
|
||||
);
|
||||
};
|
||||
@@ -1,26 +0,0 @@
|
||||
import styled from '@emotion/styled';
|
||||
import Card from '@mui/material/Card';
|
||||
import Chip from '@mui/material/Chip';
|
||||
import Typography from '@mui/material/Typography';
|
||||
|
||||
import { Theme } from '../../Theme';
|
||||
|
||||
export const CardWrap = styled(Card)({
|
||||
margin: '0 0 16px',
|
||||
});
|
||||
|
||||
export const StyledText = styled(Typography)<{ theme?: Theme }>((props) => ({
|
||||
fontWeight: props.theme && props.theme.fontWeight.bold,
|
||||
textTransform: 'capitalize',
|
||||
}));
|
||||
|
||||
export const Tags = styled('div')({
|
||||
display: 'flex',
|
||||
justifyContent: 'start',
|
||||
flexWrap: 'wrap',
|
||||
margin: '0 -5px',
|
||||
});
|
||||
|
||||
export const Tag = styled(Chip)({
|
||||
margin: '5px',
|
||||
});
|
||||
@@ -0,0 +1,3 @@
|
||||
export function hasKeys(object?: { [key: string]: any }): boolean {
|
||||
return !!object && Object.keys(object).length > 0;
|
||||
}
|
||||
@@ -1,11 +1,12 @@
|
||||
import React from 'react';
|
||||
|
||||
import { render } from '../../test/test-react-testing-library';
|
||||
import { render, screen } from '../../test/test-react-testing-library';
|
||||
import Loading from './Loading';
|
||||
|
||||
describe('<Loading /> component', () => {
|
||||
test('should render the component in default state', () => {
|
||||
const { container } = render(<Loading />);
|
||||
expect(container.firstChild).toMatchSnapshot();
|
||||
render(<Loading />);
|
||||
screen.debug();
|
||||
expect(screen.getByTestId('loading')).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,138 +0,0 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`<Loading /> component should render the component in default state 1`] = `
|
||||
@keyframes animation-0 {
|
||||
0% {
|
||||
-webkit-transform: rotate(0deg);
|
||||
-moz-transform: rotate(0deg);
|
||||
-ms-transform: rotate(0deg);
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
100% {
|
||||
-webkit-transform: rotate(360deg);
|
||||
-moz-transform: rotate(360deg);
|
||||
-ms-transform: rotate(360deg);
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes animation-1 {
|
||||
0% {
|
||||
stroke-dasharray: 1px,200px;
|
||||
stroke-dashoffset: 0;
|
||||
}
|
||||
|
||||
50% {
|
||||
stroke-dasharray: 100px,200px;
|
||||
stroke-dashoffset: -15px;
|
||||
}
|
||||
|
||||
100% {
|
||||
stroke-dasharray: 100px,200px;
|
||||
stroke-dashoffset: -125px;
|
||||
}
|
||||
}
|
||||
|
||||
.emotion-0 {
|
||||
-webkit-transform: translate(-50%, -50%);
|
||||
-moz-transform: translate(-50%, -50%);
|
||||
-ms-transform: translate(-50%, -50%);
|
||||
transform: translate(-50%, -50%);
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.emotion-2 {
|
||||
margin: 0 0 30px 0;
|
||||
border-radius: 25px;
|
||||
box-shadow: 0 10px 20px 0 rgba(69, 58, 100, 0.2);
|
||||
background: #f7f8f6;
|
||||
}
|
||||
|
||||
.emotion-4 {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
box-sizing: border-box;
|
||||
-webkit-background-position: center;
|
||||
background-position: center;
|
||||
-webkit-background-size: contain;
|
||||
background-size: contain;
|
||||
background-image: url([object Object]);
|
||||
background-repeat: no-repeat;
|
||||
width: 90px;
|
||||
height: 90px;
|
||||
}
|
||||
|
||||
.emotion-6 {
|
||||
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: center;
|
||||
-ms-flex-pack: center;
|
||||
-webkit-justify-content: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.emotion-9 {
|
||||
display: inline-block;
|
||||
color: #4b5e40;
|
||||
-webkit-animation: animation-0 1.4s linear infinite;
|
||||
animation: animation-0 1.4s linear infinite;
|
||||
color: #4b5e40;
|
||||
}
|
||||
|
||||
.emotion-10 {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.emotion-11 {
|
||||
stroke: currentColor;
|
||||
stroke-dasharray: 80px,200px;
|
||||
stroke-dashoffset: 0;
|
||||
-webkit-animation: animation-1 1.4s ease-in-out infinite;
|
||||
animation: animation-1 1.4s ease-in-out infinite;
|
||||
}
|
||||
|
||||
<div
|
||||
class="emotion-0 emotion-1"
|
||||
data-testid="loading"
|
||||
>
|
||||
<div
|
||||
class="emotion-2 emotion-3"
|
||||
>
|
||||
<div
|
||||
class="emotion-4 emotion-5"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
class="emotion-6 emotion-7"
|
||||
>
|
||||
<span
|
||||
class="MuiCircularProgress-root MuiCircularProgress-indeterminate MuiCircularProgress-colorPrimary emotion-8 emotion-9"
|
||||
role="progressbar"
|
||||
style="width: 50px; height: 50px;"
|
||||
>
|
||||
<svg
|
||||
class="MuiCircularProgress-svg emotion-10"
|
||||
viewBox="22 22 44 44"
|
||||
>
|
||||
<circle
|
||||
class="MuiCircularProgress-circle MuiCircularProgress-circleIndeterminate emotion-11"
|
||||
cx="44"
|
||||
cy="44"
|
||||
fill="none"
|
||||
r="20.2"
|
||||
stroke-width="3.6"
|
||||
/>
|
||||
</svg>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
@@ -0,0 +1 @@
|
||||
export { default } from './SideBarTitle';
|
||||
@@ -1 +0,0 @@
|
||||
export { default } from './SideBarTittle';
|
||||
@@ -14,7 +14,7 @@ export * as Icons from './components/Icons';
|
||||
export { default as Install } from './components/Install';
|
||||
export { default as RawViewer } from './components/RawViewer';
|
||||
export { default as Readme } from './components/Readme';
|
||||
export { default as SideBarTitle } from './components/SideBarTittle';
|
||||
export { default as SideBarTitle } from './components/SideBarTitle';
|
||||
export { default as UpLinks } from './components/UpLinks';
|
||||
export { default as Versions } from './components/Versions';
|
||||
export { default as TextField } from './components/TextField';
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user