Compare commits
54 Commits
@verdaccio
...
@verdaccio
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7e48d714b9 | ||
|
|
ae93e039da | ||
|
|
80b1038a76 | ||
|
|
fe18df4cec | ||
|
|
75d3526b66 | ||
|
|
beb10af1e7 | ||
|
|
7e2ad88eb8 | ||
|
|
834513b56d | ||
|
|
5486cb8260 | ||
|
|
f859d2b1ae | ||
|
|
979f2ff210 | ||
|
|
ee642ff639 | ||
|
|
26842fab70 | ||
|
|
767a981819 | ||
|
|
bea7a67c8b | ||
|
|
ff1e8f5cf8 | ||
|
|
318b1dc5f2 | ||
|
|
4bb80b76ae | ||
|
|
147acc5044 | ||
|
|
c7507df68f | ||
|
|
0e5b00b670 | ||
|
|
556609dfbb | ||
|
|
1029c1993b | ||
|
|
4c123927b7 | ||
|
|
7f59f3e439 | ||
|
|
e2cd8108fe | ||
|
|
a76530b31d | ||
|
|
6aa85db22b | ||
|
|
67a966a971 | ||
|
|
68c889fb10 | ||
|
|
61fa46bb17 | ||
|
|
22159cfc49 | ||
|
|
7401fc72d6 | ||
|
|
bd16bcc248 | ||
|
|
37e2c61f63 | ||
|
|
9daf8fd3f6 | ||
|
|
ed3786aae2 | ||
|
|
52da81a23b | ||
|
|
3eead44592 | ||
|
|
593526466e | ||
|
|
f56e068b56 | ||
|
|
c5d236c8fe | ||
|
|
1812b3f106 | ||
|
|
02e59ffe19 | ||
|
|
80953e2925 | ||
|
|
62bc819d74 | ||
|
|
702d5c4971 | ||
|
|
87acf824ed | ||
|
|
6fe865397e | ||
|
|
245099c058 | ||
|
|
674be4bbbb | ||
|
|
fe1fb61438 | ||
|
|
42f98c0282 | ||
|
|
65bf07eacb |
7
.changeset/eight-clouds-look.md
Normal file
7
.changeset/eight-clouds-look.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
'@verdaccio/api': minor
|
||||
'@verdaccio/middleware': minor
|
||||
'@verdaccio/server': minor
|
||||
---
|
||||
|
||||
fix: expose middleware methods
|
||||
6
.changeset/eighty-snails-admire.md
Normal file
6
.changeset/eighty-snails-admire.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
'@verdaccio/server-fastify': patch
|
||||
'@verdaccio/web': patch
|
||||
---
|
||||
|
||||
Fix the password validation logic for the `/reset_password` route to ensure that the password is only reset if it is valid.
|
||||
@@ -81,6 +81,8 @@
|
||||
"dull-monkeys-search",
|
||||
"early-jokes-nail",
|
||||
"eight-bottles-own",
|
||||
"eight-clouds-look",
|
||||
"eighty-snails-admire",
|
||||
"eleven-brooms-hunt",
|
||||
"eleven-spoons-matter",
|
||||
"fair-lemons-beam",
|
||||
@@ -143,6 +145,7 @@
|
||||
"red-chefs-float",
|
||||
"red-yaks-sell",
|
||||
"rich-badgers-begin",
|
||||
"rich-bananas-chew",
|
||||
"rich-ghosts-rule",
|
||||
"shaggy-carrots-unite",
|
||||
"shaggy-parrots-smash",
|
||||
|
||||
7
.changeset/rich-bananas-chew.md
Normal file
7
.changeset/rich-bananas-chew.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
'@verdaccio/api': patch
|
||||
'@verdaccio/core': patch
|
||||
'@verdaccio/middleware': patch
|
||||
---
|
||||
|
||||
fix: official package "-" cannot be synced
|
||||
4
.github/workflows/changesets.yml
vendored
4
.github/workflows/changesets.yml
vendored
@@ -20,12 +20,12 @@ jobs:
|
||||
if: github.ref == 'refs/heads/master' && github.repository == 'verdaccio/verdaccio'
|
||||
steps:
|
||||
- name: checkout code repository
|
||||
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
|
||||
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: setup node.js
|
||||
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3
|
||||
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # tag=v3
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
env:
|
||||
|
||||
20
.github/workflows/ci-windows.yml
vendored
20
.github/workflows/ci-windows.yml
vendored
@@ -18,9 +18,9 @@ jobs:
|
||||
env:
|
||||
NODE_ENV: production
|
||||
steps:
|
||||
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
|
||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
|
||||
- name: Node
|
||||
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3
|
||||
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # tag=v3
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Install pnpm
|
||||
@@ -47,9 +47,9 @@ jobs:
|
||||
name: Lint
|
||||
needs: prepare
|
||||
steps:
|
||||
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
|
||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
|
||||
- name: Node
|
||||
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3
|
||||
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # tag=v3
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Install pnpm
|
||||
@@ -71,9 +71,9 @@ jobs:
|
||||
name: Format
|
||||
needs: prepare
|
||||
steps:
|
||||
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
|
||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
|
||||
- name: Use Node
|
||||
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3
|
||||
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # tag=v3
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Install pnpm
|
||||
@@ -100,9 +100,9 @@ jobs:
|
||||
name: ${{ matrix.os }} / Node ${{ matrix.node_version }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
|
||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
|
||||
- name: Use Node ${{ matrix.node_version }}
|
||||
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3
|
||||
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # tag=v3
|
||||
with:
|
||||
node-version: ${{ matrix.node_version }}
|
||||
- name: Install pnpm
|
||||
@@ -126,8 +126,8 @@ jobs:
|
||||
runs-on: windows-latest
|
||||
name: UI Test E2E
|
||||
steps:
|
||||
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
|
||||
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3
|
||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
|
||||
- uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # tag=v3
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Install pnpm
|
||||
|
||||
20
.github/workflows/ci.yml
vendored
20
.github/workflows/ci.yml
vendored
@@ -27,9 +27,9 @@ jobs:
|
||||
env:
|
||||
NODE_ENV: production
|
||||
steps:
|
||||
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
|
||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
|
||||
- name: Node
|
||||
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3
|
||||
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # tag=v3
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Install pnpm
|
||||
@@ -54,9 +54,9 @@ jobs:
|
||||
name: Lint
|
||||
needs: prepare
|
||||
steps:
|
||||
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
|
||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
|
||||
- name: Node
|
||||
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3
|
||||
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # tag=v3
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Install pnpm
|
||||
@@ -79,9 +79,9 @@ jobs:
|
||||
name: Format
|
||||
needs: prepare
|
||||
steps:
|
||||
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
|
||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
|
||||
- name: Use Node
|
||||
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3
|
||||
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # tag=v3
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Install pnpm
|
||||
@@ -109,9 +109,9 @@ jobs:
|
||||
name: ${{ matrix.os }} / Node ${{ matrix.node_version }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
|
||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
|
||||
- name: Use Node ${{ matrix.node_version }}
|
||||
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3
|
||||
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # tag=v3
|
||||
with:
|
||||
node-version: ${{ matrix.node_version }}
|
||||
- name: Install pnpm
|
||||
@@ -137,8 +137,8 @@ jobs:
|
||||
name: synchronize translations
|
||||
if: (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'workflow_dispatch'
|
||||
steps:
|
||||
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
|
||||
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3
|
||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
|
||||
- uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # tag=v3
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Install pnpm
|
||||
|
||||
8
.github/workflows/codeql-analysis.yml
vendored
8
.github/workflows/codeql-analysis.yml
vendored
@@ -21,7 +21,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
|
||||
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
|
||||
with:
|
||||
# We must fetch at least the immediate parents so that if this is
|
||||
# a pull request then we can checkout the head.
|
||||
@@ -34,7 +34,7 @@ jobs:
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@0225834cc549ee0ca93cb085b92954821a145866 # v2
|
||||
uses: github/codeql-action/init@46ed16ded91731b2df79a2893d3aea8e9f03b5c4 # v2
|
||||
|
||||
# Override language selection by uncommenting this and choosing your languages
|
||||
# with:
|
||||
@@ -42,7 +42,7 @@ jobs:
|
||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||
# If this step fails, then you should remove it and run the build manually (see below)
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@0225834cc549ee0ca93cb085b92954821a145866 # v2
|
||||
uses: github/codeql-action/autobuild@46ed16ded91731b2df79a2893d3aea8e9f03b5c4 # v2
|
||||
|
||||
# ℹ️ Command-line programs to run using the OS shell.
|
||||
# 📚 https://git.io/JvXDl
|
||||
@@ -56,4 +56,4 @@ jobs:
|
||||
# make release
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@0225834cc549ee0ca93cb085b92954821a145866 # v2
|
||||
uses: github/codeql-action/analyze@46ed16ded91731b2df79a2893d3aea8e9f03b5c4 # v2
|
||||
|
||||
@@ -15,13 +15,13 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3
|
||||
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
|
||||
|
||||
- name: Start containers
|
||||
run: docker-compose -f "./e2e/docker/apache-verdaccio/docker-compose.yaml" up -d --build
|
||||
|
||||
- name: Install node
|
||||
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
|
||||
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3
|
||||
with:
|
||||
node-version: 18
|
||||
- name: verdaccio cli
|
||||
|
||||
4
.github/workflows/docker-proxy-nginx-e2e.yml
vendored
4
.github/workflows/docker-proxy-nginx-e2e.yml
vendored
@@ -12,13 +12,13 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3
|
||||
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
|
||||
|
||||
- name: Start containers
|
||||
run: docker-compose -f "./e2e/docker/proxy-nginx/docker-compose.yaml" up -d --build
|
||||
|
||||
- name: Install node
|
||||
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
|
||||
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3
|
||||
with:
|
||||
node-version: 18
|
||||
- name: npm setup
|
||||
|
||||
4
.github/workflows/docker-publish.yml
vendored
4
.github/workflows/docker-publish.yml
vendored
@@ -23,8 +23,8 @@ jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
|
||||
- uses: docker/setup-qemu-action@e81a89b1732b9c48d79cd809d8d81d79c4647a18 # tag=v1
|
||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
|
||||
- uses: docker/setup-qemu-action@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7 # tag=v1
|
||||
- uses: docker/setup-buildx-action@v1
|
||||
with:
|
||||
driver-opts: network=host
|
||||
|
||||
12
.github/workflows/e2e-ci.yml
vendored
12
.github/workflows/e2e-ci.yml
vendored
@@ -15,9 +15,9 @@ jobs:
|
||||
env:
|
||||
NODE_ENV: production
|
||||
steps:
|
||||
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
|
||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
|
||||
- name: Use Node
|
||||
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3
|
||||
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # tag=v3
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Install pnpm
|
||||
@@ -39,9 +39,9 @@ jobs:
|
||||
needs: [prepare]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
|
||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
|
||||
- name: Use Node 16
|
||||
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3
|
||||
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # tag=v3
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Install pnpm
|
||||
@@ -83,8 +83,8 @@ jobs:
|
||||
name: ${{ matrix.pkg }}/ ubuntu-latest / ${{ matrix.node }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
|
||||
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3
|
||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
|
||||
- uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # tag=v3
|
||||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
- name: Install pnpm
|
||||
|
||||
4
.github/workflows/e2e-ui.yml
vendored
4
.github/workflows/e2e-ui.yml
vendored
@@ -15,9 +15,9 @@ jobs:
|
||||
env:
|
||||
NODE_ENV: production
|
||||
steps:
|
||||
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
|
||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
|
||||
- name: Use Node
|
||||
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3
|
||||
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # tag=v3
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Install pnpm
|
||||
|
||||
4
.github/workflows/static-data.yml
vendored
4
.github/workflows/static-data.yml
vendored
@@ -19,11 +19,11 @@ jobs:
|
||||
name: Run script
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
|
||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
|
||||
with:
|
||||
persist-credentials: false
|
||||
fetch-depth: 0
|
||||
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3
|
||||
- uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # tag=v3
|
||||
with:
|
||||
node-version: 18.x
|
||||
- name: install pnpm
|
||||
|
||||
6
.github/workflows/ui-components.yml
vendored
6
.github/workflows/ui-components.yml
vendored
@@ -27,10 +27,10 @@ jobs:
|
||||
env:
|
||||
NODE_OPTIONS: --max_old_space_size=4096
|
||||
steps:
|
||||
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
|
||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
|
||||
|
||||
- name: Use Node
|
||||
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3
|
||||
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # tag=v3
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
|
||||
@@ -65,7 +65,7 @@ jobs:
|
||||
build-dir: './packages/ui-components/storybook-static'
|
||||
- name: 🤖 Deploy Preview UI Components Netlify
|
||||
if: github.repository == 'verdaccio/verdaccio'
|
||||
uses: verdaccio/action-netlify-deploy@1c086d59169edeec9254672c7de17d2ceac3928f # v2.0.0
|
||||
uses: semoal/action-netlify-deploy@1a53f098745bf78555d11b436f5ee3af87e6b566
|
||||
id: netlify_preview_ui
|
||||
with:
|
||||
draft: true
|
||||
|
||||
4
.github/workflows/website.yml
vendored
4
.github/workflows/website.yml
vendored
@@ -23,10 +23,10 @@ jobs:
|
||||
env:
|
||||
NODE_OPTIONS: --max_old_space_size=4096
|
||||
steps:
|
||||
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
|
||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
|
||||
|
||||
- name: Use Node 16
|
||||
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3
|
||||
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # tag=v3
|
||||
with:
|
||||
node-version: 16
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
"main": "./build/index.js",
|
||||
"types": "./build/index.d.ts",
|
||||
"devDependencies": {
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.25",
|
||||
"debug": "4.3.4",
|
||||
"fs-extra": "10.1.0",
|
||||
@@ -14,7 +14,7 @@
|
||||
"js-yaml": "4.1.0",
|
||||
"get-port": "5.1.1",
|
||||
"lodash": "4.17.21",
|
||||
"verdaccio": "workspace:6.0.0-6-next.71"
|
||||
"verdaccio": "workspace:6.0.0-6-next.74"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "jest",
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"version": "1.0.1-6-next.7",
|
||||
"dependencies": {
|
||||
"@verdaccio/test-cli-commons": "workspace:1.1.0-6-next.7",
|
||||
"npm": "9.6.6"
|
||||
"npm": "9.7.1"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "jest"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"version": "1.0.1-6-next.7",
|
||||
"dependencies": {
|
||||
"@verdaccio/test-cli-commons": "workspace:1.1.0-6-next.7",
|
||||
"npm": "9.6.6"
|
||||
"npm": "9.7.1"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "jest"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"version": "1.0.1-6-next.7",
|
||||
"dependencies": {
|
||||
"@verdaccio/test-cli-commons": "workspace:1.1.0-6-next.7",
|
||||
"npm": "9.6.6"
|
||||
"npm": "9.7.1"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "jest"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"version": "1.0.1-6-next.7",
|
||||
"dependencies": {
|
||||
"@verdaccio/test-cli-commons": "workspace:1.1.0-6-next.7",
|
||||
"npm": "9.6.6"
|
||||
"npm": "9.7.1"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "jest"
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
"name": "@verdaccio/e2e-ui",
|
||||
"version": "2.0.0-6-next.4",
|
||||
"devDependencies": {
|
||||
"verdaccio": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.71",
|
||||
"verdaccio": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/test-helper": "workspace:2.0.0-6-next.8",
|
||||
"debug": "4.3.4",
|
||||
"cypress": "^11.2.0",
|
||||
|
||||
24
package.json
24
package.json
@@ -41,7 +41,7 @@
|
||||
"@babel/runtime": "7.21.5",
|
||||
"@changesets/changelog-github": "0.4.8",
|
||||
"@changesets/cli": "2.24.4",
|
||||
"@changesets/get-dependents-graph": "1.3.5",
|
||||
"@changesets/get-dependents-graph": "1.3.6",
|
||||
"@crowdin/cli": "3.10.1",
|
||||
"@dianmora/contributors": "5.0.0",
|
||||
"@emotion/react": "11.10.6",
|
||||
@@ -60,11 +60,11 @@
|
||||
"@types/http-errors": "1.8.2",
|
||||
"@types/jest": "27.5.2",
|
||||
"@types/jsonwebtoken": "8.5.9",
|
||||
"@types/lodash": "4.14.194",
|
||||
"@types/lodash": "4.14.195",
|
||||
"@types/mime": "2.0.3",
|
||||
"@types/minimatch": "3.0.5",
|
||||
"@types/node": "16.18.10",
|
||||
"@types/node-fetch": "2.6.2",
|
||||
"@types/node": "16.18.38",
|
||||
"@types/node-fetch": "2.6.4",
|
||||
"@types/qs": "6.9.7",
|
||||
"@types/range-parser": "1.2.4",
|
||||
"@types/react": "18.0.26",
|
||||
@@ -73,16 +73,16 @@
|
||||
"@types/react-virtualized": "9.21.21",
|
||||
"@types/redux": "3.6.0",
|
||||
"@types/request": "2.48.8",
|
||||
"@types/semver": "7.3.13",
|
||||
"@types/semver": "7.5.0",
|
||||
"@types/serve-static": "1.13.10",
|
||||
"@types/superagent": "4.1.10",
|
||||
"@types/superagent": "4.1.18",
|
||||
"@types/supertest": "2.0.12",
|
||||
"@types/testing-library__jest-dom": "5.14.5",
|
||||
"@types/validator": "13.7.12",
|
||||
"@types/testing-library__jest-dom": "5.14.7",
|
||||
"@types/validator": "13.7.17",
|
||||
"@types/webpack": "5.28.1",
|
||||
"@types/webpack-env": "1.18.0",
|
||||
"@typescript-eslint/eslint-plugin": "5.59.7",
|
||||
"@typescript-eslint/parser": "5.59.7",
|
||||
"@types/webpack-env": "1.18.1",
|
||||
"@typescript-eslint/eslint-plugin": "5.59.8",
|
||||
"@typescript-eslint/parser": "5.59.8",
|
||||
"@verdaccio/crowdin-translations": "workspace:*",
|
||||
"@verdaccio/eslint-config": "workspace:*",
|
||||
"@verdaccio/types": "workspace:*",
|
||||
@@ -95,7 +95,7 @@
|
||||
"cross-env": "7.0.3",
|
||||
"debug": "4.3.4",
|
||||
"detect-secrets": "1.0.6",
|
||||
"eslint": "8.41.0",
|
||||
"eslint": "8.42.0",
|
||||
"fs-extra": "10.1.0",
|
||||
"got": "11.8.6",
|
||||
"husky": "7.0.4",
|
||||
|
||||
@@ -1,5 +1,48 @@
|
||||
# @verdaccio/api
|
||||
|
||||
## 6.0.0-6-next.57
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- ae93e039d: fix: expose middleware methods
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [ae93e039d]
|
||||
- @verdaccio/middleware@6.0.0-6-next.53
|
||||
- @verdaccio/core@6.0.0-6-next.74
|
||||
- @verdaccio/config@6.0.0-6-next.74
|
||||
- @verdaccio/auth@6.0.0-6-next.53
|
||||
- @verdaccio/store@6.0.0-6-next.54
|
||||
- @verdaccio/utils@6.0.0-6-next.42
|
||||
- @verdaccio/logger@6.0.0-6-next.42
|
||||
|
||||
## 6.0.0-6-next.56
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- f859d2b1a: fix: official package "-" cannot be synced
|
||||
- Updated dependencies [f859d2b1a]
|
||||
- @verdaccio/core@6.0.0-6-next.73
|
||||
- @verdaccio/middleware@6.0.0-6-next.52
|
||||
- @verdaccio/auth@6.0.0-6-next.52
|
||||
- @verdaccio/config@6.0.0-6-next.73
|
||||
- @verdaccio/store@6.0.0-6-next.53
|
||||
- @verdaccio/utils@6.0.0-6-next.41
|
||||
- @verdaccio/logger@6.0.0-6-next.41
|
||||
|
||||
## 6.0.0-6-next.55
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@6.0.0-6-next.72
|
||||
- @verdaccio/config@6.0.0-6-next.72
|
||||
- @verdaccio/auth@6.0.0-6-next.51
|
||||
- @verdaccio/middleware@6.0.0-6-next.51
|
||||
- @verdaccio/store@6.0.0-6-next.52
|
||||
- @verdaccio/utils@6.0.0-6-next.40
|
||||
- @verdaccio/logger@6.0.0-6-next.40
|
||||
|
||||
## 6.0.0-6-next.54
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/api",
|
||||
"version": "6.0.0-6-next.54",
|
||||
"version": "6.0.0-6-next.57",
|
||||
"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.50",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.39",
|
||||
"@verdaccio/middleware": "workspace:6.0.0-6-next.50",
|
||||
"@verdaccio/store": "workspace:6.0.0-6-next.51",
|
||||
"@verdaccio/utils": "workspace:6.0.0-6-next.39",
|
||||
"@verdaccio/auth": "workspace:6.0.0-6-next.53",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.42",
|
||||
"@verdaccio/middleware": "workspace:6.0.0-6-next.53",
|
||||
"@verdaccio/store": "workspace:6.0.0-6-next.54",
|
||||
"@verdaccio/utils": "workspace:6.0.0-6-next.42",
|
||||
"abortcontroller-polyfill": "1.7.5",
|
||||
"cookies": "0.8.0",
|
||||
"debug": "4.3.4",
|
||||
@@ -53,11 +53,10 @@
|
||||
"express": "4.18.2",
|
||||
"lodash": "4.17.21",
|
||||
"mime": "2.6.0",
|
||||
"semver": "7.5.0"
|
||||
"semver": "7.5.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "16.18.10",
|
||||
"@verdaccio/server": "workspace:6.0.0-6-next.60",
|
||||
"@verdaccio/server": "workspace:6.0.0-6-next.63",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.25",
|
||||
"@verdaccio/test-helper": "workspace:2.0.0-6-next.8",
|
||||
"supertest": "6.3.3",
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import bodyParser from 'body-parser';
|
||||
import express, { Router } from 'express';
|
||||
|
||||
import { Auth } from '@verdaccio/auth';
|
||||
@@ -43,24 +42,22 @@ export default function (config: Config, auth: Auth, storage: Storage): Router {
|
||||
app.param('_rev', match(/^-rev$/));
|
||||
app.param('org_couchdb_user', match(/^org\.couchdb\.user:/));
|
||||
app.use(auth.apiJWTmiddleware());
|
||||
app.use(bodyParser.json({ strict: false, limit: config.max_body_size || '10mb' }));
|
||||
app.use(express.json({ strict: false, limit: config.max_body_size || '10mb' }));
|
||||
// @ts-ignore
|
||||
app.use(antiLoop(config));
|
||||
// encode / in a scoped package name to be matched as a single parameter in routes
|
||||
app.use(encodeScopePackage);
|
||||
// for "npm whoami"
|
||||
whoami(app);
|
||||
pkg(app, auth, storage);
|
||||
profile(app, auth, config);
|
||||
// @deprecated endpoint, 404 by default
|
||||
search(app);
|
||||
user(app, auth, config);
|
||||
distTags(app, auth, storage);
|
||||
publish(app, auth, storage);
|
||||
ping(app);
|
||||
stars(app, storage);
|
||||
// @ts-ignore
|
||||
v1Search(app, auth, storage);
|
||||
token(app, auth, storage, config);
|
||||
pkg(app, auth, storage);
|
||||
return app;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,42 @@
|
||||
# @verdaccio/auth
|
||||
|
||||
## 6.0.0-6-next.53
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@6.0.0-6-next.74
|
||||
- @verdaccio/config@6.0.0-6-next.74
|
||||
- @verdaccio/loaders@6.0.0-6-next.43
|
||||
- verdaccio-htpasswd@11.0.0-6-next.44
|
||||
- @verdaccio/utils@6.0.0-6-next.42
|
||||
- @verdaccio/signature@6.0.0-6-next.2
|
||||
- @verdaccio/logger@6.0.0-6-next.42
|
||||
|
||||
## 6.0.0-6-next.52
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [f859d2b1a]
|
||||
- @verdaccio/core@6.0.0-6-next.73
|
||||
- @verdaccio/config@6.0.0-6-next.73
|
||||
- @verdaccio/loaders@6.0.0-6-next.42
|
||||
- verdaccio-htpasswd@11.0.0-6-next.43
|
||||
- @verdaccio/utils@6.0.0-6-next.41
|
||||
- @verdaccio/signature@6.0.0-6-next.2
|
||||
- @verdaccio/logger@6.0.0-6-next.41
|
||||
|
||||
## 6.0.0-6-next.51
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@6.0.0-6-next.72
|
||||
- @verdaccio/config@6.0.0-6-next.72
|
||||
- @verdaccio/loaders@6.0.0-6-next.41
|
||||
- verdaccio-htpasswd@11.0.0-6-next.42
|
||||
- @verdaccio/utils@6.0.0-6-next.40
|
||||
- @verdaccio/signature@6.0.0-6-next.2
|
||||
- @verdaccio/logger@6.0.0-6-next.40
|
||||
|
||||
## 6.0.0-6-next.50
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/auth",
|
||||
"version": "6.0.0-6-next.50",
|
||||
"version": "6.0.0-6-next.53",
|
||||
"description": "logger",
|
||||
"main": "./build/index.js",
|
||||
"types": "./build/index.d.ts",
|
||||
@@ -39,16 +39,16 @@
|
||||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/loaders": "workspace:6.0.0-6-next.40",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.39",
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/loaders": "workspace:6.0.0-6-next.43",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.42",
|
||||
"@verdaccio/signature": "workspace:6.0.0-6-next.2",
|
||||
"@verdaccio/utils": "workspace:6.0.0-6-next.39",
|
||||
"@verdaccio/utils": "workspace:6.0.0-6-next.42",
|
||||
"debug": "4.3.4",
|
||||
"express": "4.18.2",
|
||||
"lodash": "4.17.21",
|
||||
"verdaccio-htpasswd": "workspace:11.0.0-6-next.41"
|
||||
"verdaccio-htpasswd": "workspace:11.0.0-6-next.44"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.25"
|
||||
|
||||
@@ -1,5 +1,33 @@
|
||||
# @verdaccio/cli
|
||||
|
||||
## 6.0.0-6-next.74
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/node-api@6.0.0-6-next.74
|
||||
- @verdaccio/core@6.0.0-6-next.74
|
||||
- @verdaccio/config@6.0.0-6-next.74
|
||||
- @verdaccio/logger@6.0.0-6-next.42
|
||||
|
||||
## 6.0.0-6-next.73
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [f859d2b1a]
|
||||
- @verdaccio/core@6.0.0-6-next.73
|
||||
- @verdaccio/config@6.0.0-6-next.73
|
||||
- @verdaccio/node-api@6.0.0-6-next.73
|
||||
- @verdaccio/logger@6.0.0-6-next.41
|
||||
|
||||
## 6.0.0-6-next.72
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/node-api@6.0.0-6-next.72
|
||||
- @verdaccio/core@6.0.0-6-next.72
|
||||
- @verdaccio/config@6.0.0-6-next.72
|
||||
- @verdaccio/logger@6.0.0-6-next.40
|
||||
|
||||
## 6.0.0-6-next.71
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/cli",
|
||||
"version": "6.0.0-6-next.71",
|
||||
"version": "6.0.0-6-next.74",
|
||||
"author": {
|
||||
"name": "Juan Picado",
|
||||
"email": "juanpicado19@gmail.com"
|
||||
@@ -44,14 +44,14 @@
|
||||
"start": "ts-node src/index.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.39",
|
||||
"@verdaccio/node-api": "workspace:6.0.0-6-next.71",
|
||||
"clipanion": "3.2.0",
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.42",
|
||||
"@verdaccio/node-api": "workspace:6.0.0-6-next.74",
|
||||
"clipanion": "3.2.1",
|
||||
"envinfo": "7.8.1",
|
||||
"kleur": "4.1.5",
|
||||
"semver": "7.5.0"
|
||||
"semver": "7.5.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"ts-node": "10.9.1"
|
||||
|
||||
@@ -1,5 +1,27 @@
|
||||
# @verdaccio/config
|
||||
|
||||
## 6.0.0-6-next.74
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@6.0.0-6-next.74
|
||||
- @verdaccio/utils@6.0.0-6-next.42
|
||||
|
||||
## 6.0.0-6-next.73
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [f859d2b1a]
|
||||
- @verdaccio/core@6.0.0-6-next.73
|
||||
- @verdaccio/utils@6.0.0-6-next.41
|
||||
|
||||
## 6.0.0-6-next.72
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@6.0.0-6-next.72
|
||||
- @verdaccio/utils@6.0.0-6-next.40
|
||||
|
||||
## 6.0.0-6-next.71
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/config",
|
||||
"version": "6.0.0-6-next.71",
|
||||
"version": "6.0.0-6-next.74",
|
||||
"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:6.0.0-6-next.71",
|
||||
"@verdaccio/utils": "workspace:6.0.0-6-next.39",
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/utils": "workspace:6.0.0-6-next.42",
|
||||
"debug": "4.3.4",
|
||||
"js-yaml": "4.1.0",
|
||||
"lodash": "4.17.21",
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
# @verdaccio/core
|
||||
|
||||
## 6.0.0-6-next.74
|
||||
|
||||
## 6.0.0-6-next.73
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- f859d2b1a: fix: official package "-" cannot be synced
|
||||
|
||||
## 6.0.0-6-next.72
|
||||
|
||||
## 6.0.0-6-next.71
|
||||
|
||||
## 6.0.0-6-next.70
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/core",
|
||||
"version": "6.0.0-6-next.71",
|
||||
"version": "6.0.0-6-next.74",
|
||||
"description": "core utilities",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -35,7 +35,7 @@
|
||||
"dependencies": {
|
||||
"http-errors": "2.0.0",
|
||||
"http-status-codes": "2.2.0",
|
||||
"semver": "7.5.0",
|
||||
"semver": "7.5.4",
|
||||
"ajv": "8.12.0",
|
||||
"process-warning": "1.0.0",
|
||||
"core-js": "3.30.2"
|
||||
|
||||
@@ -10,6 +10,10 @@ import {
|
||||
|
||||
describe('validatePackage', () => {
|
||||
test('should validate package names', () => {
|
||||
expect(validatePackage('-')).toBeTruthy();
|
||||
expect(validatePackage('--')).toBeTruthy();
|
||||
expect(validatePackage('a')).toBeTruthy();
|
||||
expect(validatePackage('a-')).toBeTruthy();
|
||||
expect(validatePackage('package-name')).toBeTruthy();
|
||||
expect(validatePackage('@scope/package-name')).toBeTruthy();
|
||||
});
|
||||
@@ -21,6 +25,7 @@ describe('validatePackage', () => {
|
||||
expect(validatePackage('node_modules')).toBeFalsy();
|
||||
expect(validatePackage('__proto__')).toBeFalsy();
|
||||
expect(validatePackage('favicon.ico')).toBeFalsy();
|
||||
expect(validatePackage('%')).toBeFalsy();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -75,6 +80,7 @@ describe('validateName', () => {
|
||||
test('good ones', () => {
|
||||
expect(validateName('verdaccio')).toBeTruthy();
|
||||
expect(validateName('some.weird.package-zzz')).toBeTruthy();
|
||||
expect(validateName('--0.0.1.tgz')).toBeTruthy();
|
||||
expect(validateName('old-package@0.1.2.tgz')).toBeTruthy();
|
||||
// fix https://github.com/verdaccio/verdaccio/issues/1400
|
||||
expect(validateName('-build-infra')).toBeTruthy();
|
||||
|
||||
@@ -1,5 +1,30 @@
|
||||
# Change Log
|
||||
|
||||
## 11.0.0-6-next.43
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@6.0.0-6-next.74
|
||||
- @verdaccio/url@11.0.0-6-next.40
|
||||
- @verdaccio/utils@6.0.0-6-next.42
|
||||
|
||||
## 11.0.0-6-next.42
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [f859d2b1a]
|
||||
- @verdaccio/core@6.0.0-6-next.73
|
||||
- @verdaccio/url@11.0.0-6-next.39
|
||||
- @verdaccio/utils@6.0.0-6-next.41
|
||||
|
||||
## 11.0.0-6-next.41
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@6.0.0-6-next.72
|
||||
- @verdaccio/url@11.0.0-6-next.38
|
||||
- @verdaccio/utils@6.0.0-6-next.40
|
||||
|
||||
## 11.0.0-6-next.40
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/tarball",
|
||||
"version": "11.0.0-6-next.40",
|
||||
"version": "11.0.0-6-next.43",
|
||||
"description": "tarball utilities resolver",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -34,9 +34,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"debug": "4.3.4",
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/url": "workspace:11.0.0-6-next.37",
|
||||
"@verdaccio/utils": "workspace:6.0.0-6-next.39",
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/url": "workspace:11.0.0-6-next.40",
|
||||
"@verdaccio/utils": "workspace:6.0.0-6-next.42",
|
||||
"lodash": "4.17.21"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -40,7 +40,6 @@
|
||||
"build": "echo 0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "16.18.10",
|
||||
"typedoc": "0.23.25"
|
||||
},
|
||||
"typedoc": {
|
||||
|
||||
@@ -1,5 +1,24 @@
|
||||
# Change Log
|
||||
|
||||
## 11.0.0-6-next.40
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@6.0.0-6-next.74
|
||||
|
||||
## 11.0.0-6-next.39
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [f859d2b1a]
|
||||
- @verdaccio/core@6.0.0-6-next.73
|
||||
|
||||
## 11.0.0-6-next.38
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@6.0.0-6-next.72
|
||||
|
||||
## 11.0.0-6-next.37
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/url",
|
||||
"version": "11.0.0-6-next.37",
|
||||
"version": "11.0.0-6-next.40",
|
||||
"description": "url utilities resolver",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -33,7 +33,7 @@
|
||||
"access": "public"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.74",
|
||||
"debug": "4.3.4",
|
||||
"lodash": "4.17.21",
|
||||
"validator": "13.9.0"
|
||||
|
||||
@@ -1,5 +1,27 @@
|
||||
# @verdaccio/hooks
|
||||
|
||||
## 6.0.0-6-next.44
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@6.0.0-6-next.74
|
||||
- @verdaccio/logger@6.0.0-6-next.42
|
||||
|
||||
## 6.0.0-6-next.43
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [f859d2b1a]
|
||||
- @verdaccio/core@6.0.0-6-next.73
|
||||
- @verdaccio/logger@6.0.0-6-next.41
|
||||
|
||||
## 6.0.0-6-next.42
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@6.0.0-6-next.72
|
||||
- @verdaccio/logger@6.0.0-6-next.40
|
||||
|
||||
## 6.0.0-6-next.41
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/hooks",
|
||||
"version": "6.0.0-6-next.41",
|
||||
"version": "6.0.0-6-next.44",
|
||||
"description": "loaders logic",
|
||||
"main": "./build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -29,17 +29,16 @@
|
||||
"node": ">=16"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.39",
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.42",
|
||||
"core-js": "3.30.2",
|
||||
"debug": "4.3.4",
|
||||
"handlebars": "4.7.7",
|
||||
"undici": "4.16.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "16.18.10",
|
||||
"@verdaccio/auth": "workspace:6.0.0-6-next.50",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/auth": "workspace:6.0.0-6-next.53",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.25"
|
||||
},
|
||||
"scripts": {
|
||||
|
||||
@@ -1,5 +1,23 @@
|
||||
# @verdaccio/loaders
|
||||
|
||||
## 6.0.0-6-next.43
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/logger@6.0.0-6-next.42
|
||||
|
||||
## 6.0.0-6-next.42
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/logger@6.0.0-6-next.41
|
||||
|
||||
## 6.0.0-6-next.41
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/logger@6.0.0-6-next.40
|
||||
|
||||
## 6.0.0-6-next.40
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/loaders",
|
||||
"version": "6.0.0-6-next.40",
|
||||
"version": "6.0.0-6-next.43",
|
||||
"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:6.0.0-6-next.39",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.42",
|
||||
"debug": "4.3.4",
|
||||
"lodash": "4.17.21"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.25",
|
||||
"@verdaccio-scope/verdaccio-auth-foo": "0.0.2",
|
||||
"verdaccio-auth-memory": "workspace:*",
|
||||
|
||||
@@ -1,5 +1,23 @@
|
||||
# @verdaccio/logger-7
|
||||
|
||||
## 6.0.0-6-next.19
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/logger-commons@6.0.0-6-next.42
|
||||
|
||||
## 6.0.0-6-next.18
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/logger-commons@6.0.0-6-next.41
|
||||
|
||||
## 6.0.0-6-next.17
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/logger-commons@6.0.0-6-next.40
|
||||
|
||||
## 6.0.0-6-next.16
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/logger-7",
|
||||
"version": "6.0.0-6-next.16",
|
||||
"version": "6.0.0-6-next.19",
|
||||
"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:6.0.0-6-next.39",
|
||||
"@verdaccio/logger-commons": "workspace:6.0.0-6-next.42",
|
||||
"pino": "7.11.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -1,5 +1,24 @@
|
||||
# @verdaccio/logger-commons
|
||||
|
||||
## 6.0.0-6-next.42
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@6.0.0-6-next.74
|
||||
|
||||
## 6.0.0-6-next.41
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [f859d2b1a]
|
||||
- @verdaccio/core@6.0.0-6-next.73
|
||||
|
||||
## 6.0.0-6-next.40
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@6.0.0-6-next.72
|
||||
|
||||
## 6.0.0-6-next.39
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/logger-commons",
|
||||
"version": "6.0.0-6-next.39",
|
||||
"version": "6.0.0-6-next.42",
|
||||
"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:6.0.0-6-next.71",
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/logger-prettify": "workspace:6.0.0-6-next.10",
|
||||
"debug": "4.3.4",
|
||||
"colorette": "2.0.20"
|
||||
|
||||
@@ -1,5 +1,23 @@
|
||||
# @verdaccio/logger
|
||||
|
||||
## 6.0.0-6-next.42
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/logger-commons@6.0.0-6-next.42
|
||||
|
||||
## 6.0.0-6-next.41
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/logger-commons@6.0.0-6-next.41
|
||||
|
||||
## 6.0.0-6-next.40
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/logger-commons@6.0.0-6-next.40
|
||||
|
||||
## 6.0.0-6-next.39
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/logger",
|
||||
"version": "6.0.0-6-next.39",
|
||||
"version": "6.0.0-6-next.42",
|
||||
"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:6.0.0-6-next.39",
|
||||
"@verdaccio/logger-commons": "workspace:6.0.0-6-next.42",
|
||||
"pino": "8.14.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -1,5 +1,38 @@
|
||||
# @verdaccio/middleware
|
||||
|
||||
## 6.0.0-6-next.53
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- ae93e039d: fix: expose middleware methods
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@6.0.0-6-next.74
|
||||
- @verdaccio/config@6.0.0-6-next.74
|
||||
- @verdaccio/url@11.0.0-6-next.40
|
||||
- @verdaccio/utils@6.0.0-6-next.42
|
||||
|
||||
## 6.0.0-6-next.52
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- f859d2b1a: fix: official package "-" cannot be synced
|
||||
- Updated dependencies [f859d2b1a]
|
||||
- @verdaccio/core@6.0.0-6-next.73
|
||||
- @verdaccio/config@6.0.0-6-next.73
|
||||
- @verdaccio/url@11.0.0-6-next.39
|
||||
- @verdaccio/utils@6.0.0-6-next.41
|
||||
|
||||
## 6.0.0-6-next.51
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@6.0.0-6-next.72
|
||||
- @verdaccio/config@6.0.0-6-next.72
|
||||
- @verdaccio/url@11.0.0-6-next.38
|
||||
- @verdaccio/utils@6.0.0-6-next.40
|
||||
|
||||
## 6.0.0-6-next.50
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/middleware",
|
||||
"version": "6.0.0-6-next.50",
|
||||
"version": "6.0.0-6-next.53",
|
||||
"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:6.0.0-6-next.71",
|
||||
"@verdaccio/utils": "workspace:6.0.0-6-next.39",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/url": "workspace:11.0.0-6-next.37",
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/utils": "workspace:6.0.0-6-next.42",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/url": "workspace:11.0.0-6-next.40",
|
||||
"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:6.0.0-6-next.39",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.42",
|
||||
"body-parser": "1.20.2",
|
||||
"supertest": "6.3.3"
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ export { final } from './middlewares/final';
|
||||
export { allow } from './middlewares/allow';
|
||||
export { rateLimit } from './middlewares/rate-limit';
|
||||
export { userAgent } from './middlewares/user-agent';
|
||||
export { webMiddleware } from './middlewares/web';
|
||||
export { webMiddleware, renderWebMiddleware } from './middlewares/web';
|
||||
export { errorReportingMiddleware, handleError } from './middlewares/error';
|
||||
export {
|
||||
log,
|
||||
|
||||
@@ -1,27 +1,31 @@
|
||||
import { errorUtils } from '@verdaccio/core';
|
||||
import {
|
||||
validateName as utilValidateName,
|
||||
validatePackage as utilValidatePackage,
|
||||
} from '@verdaccio/utils';
|
||||
import { NextFunction, Request, Response } from 'express';
|
||||
|
||||
export function validateName(_req, _res, next, value: string, name: string) {
|
||||
if (value === '-') {
|
||||
// special case in couchdb usually
|
||||
next('route');
|
||||
} else if (utilValidateName(value)) {
|
||||
import { errorUtils, validationUtils } from '@verdaccio/core';
|
||||
|
||||
export function validateName(
|
||||
_req: Request,
|
||||
_res: Response,
|
||||
next: NextFunction,
|
||||
value: string,
|
||||
name: string
|
||||
) {
|
||||
if (validationUtils.validateName(value)) {
|
||||
next();
|
||||
} else {
|
||||
next(errorUtils.getForbidden('invalid ' + name));
|
||||
next(errorUtils.getBadRequest('invalid ' + name));
|
||||
}
|
||||
}
|
||||
|
||||
export function validatePackage(_req, _res, next, value: string, name: string) {
|
||||
if (value === '-') {
|
||||
// special case in couchdb usually
|
||||
next('route');
|
||||
} else if (utilValidatePackage(value)) {
|
||||
export function validatePackage(
|
||||
_req: Request,
|
||||
_res,
|
||||
next: NextFunction,
|
||||
value: string,
|
||||
name: string
|
||||
) {
|
||||
if (validationUtils.validatePackage(value)) {
|
||||
next();
|
||||
} else {
|
||||
next(errorUtils.getForbidden('invalid ' + name));
|
||||
next(errorUtils.getBadRequest('invalid ' + name));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
export { default as webMiddleware } from './web-middleware';
|
||||
export { webAPIMiddleware } from './web-api';
|
||||
export { setSecurityWebHeaders } from './security';
|
||||
export { renderWebMiddleware } from './render-web';
|
||||
|
||||
@@ -1,10 +1,13 @@
|
||||
import express from 'express';
|
||||
import { Router } from 'express';
|
||||
import { RequestHandler, Router } from 'express';
|
||||
|
||||
import { validateName, validatePackage } from '../validation';
|
||||
import { setSecurityWebHeaders } from './security';
|
||||
|
||||
export function webMiddleware(tokenMiddleware, webEndpointsApi) {
|
||||
export function webAPIMiddleware(
|
||||
tokenMiddleware: RequestHandler,
|
||||
webEndpointsApi: RequestHandler
|
||||
): Router {
|
||||
// eslint-disable-next-line new-cap
|
||||
const route = Router();
|
||||
// validate all of these params as a package name
|
||||
@@ -13,15 +16,15 @@ export function webMiddleware(tokenMiddleware, webEndpointsApi) {
|
||||
route.param('filename', validateName);
|
||||
route.param('version', validateName);
|
||||
route.use(express.urlencoded({ extended: false }));
|
||||
route.use(setSecurityWebHeaders);
|
||||
|
||||
if (typeof tokenMiddleware === 'function') {
|
||||
route.use(tokenMiddleware);
|
||||
}
|
||||
|
||||
route.use(setSecurityWebHeaders);
|
||||
|
||||
if (webEndpointsApi) {
|
||||
if (typeof webEndpointsApi === 'function') {
|
||||
route.use(webEndpointsApi);
|
||||
}
|
||||
|
||||
return route;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import express from 'express';
|
||||
|
||||
import { renderWebMiddleware } from './render-web';
|
||||
import { webMiddleware } from './web-api';
|
||||
import { webAPIMiddleware } from './web-api';
|
||||
|
||||
export default (config, middlewares, pluginOptions): any => {
|
||||
// eslint-disable-next-line new-cap
|
||||
@@ -10,6 +10,6 @@ export default (config, middlewares, pluginOptions): any => {
|
||||
// render web
|
||||
router.use('/', renderWebMiddleware(config, tokenMiddleware, pluginOptions));
|
||||
// web endpoints, search, packages, etc
|
||||
router.use('/-/verdaccio/', webMiddleware(tokenMiddleware, webEndpointsApi));
|
||||
router.use('/-/verdaccio/', webAPIMiddleware(tokenMiddleware, webEndpointsApi));
|
||||
return router;
|
||||
};
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import bodyParser from 'body-parser';
|
||||
import express from 'express';
|
||||
import request from 'supertest';
|
||||
|
||||
@@ -6,6 +5,8 @@ import { HEADERS, HTTP_STATUS } from '@verdaccio/core';
|
||||
|
||||
import { final } from '../src';
|
||||
|
||||
const bodyParser = express;
|
||||
|
||||
test('handle error as object', async () => {
|
||||
const app = express();
|
||||
app.use(bodyParser.json({ strict: false, limit: '10mb' }));
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import bodyParser from 'body-parser';
|
||||
import express from 'express';
|
||||
import request from 'supertest';
|
||||
|
||||
import { HEADERS, HTTP_STATUS } from '@verdaccio/core';
|
||||
@@ -8,7 +8,7 @@ import { getApp } from './helper';
|
||||
|
||||
test('body is json', async () => {
|
||||
const app = getApp([]);
|
||||
app.use(bodyParser.json({ strict: false, limit: '10mb' }));
|
||||
app.use(express.json({ strict: false, limit: '10mb' }));
|
||||
// @ts-ignore
|
||||
app.put('/json', expectJson, (req, res) => {
|
||||
res.status(HTTP_STATUS.OK).json({});
|
||||
|
||||
@@ -2,55 +2,9 @@ import request from 'supertest';
|
||||
|
||||
import { HTTP_STATUS } from '@verdaccio/core';
|
||||
|
||||
import { match, validateName, validatePackage } from '../src';
|
||||
import { match } from '../src';
|
||||
import { getApp } from './helper';
|
||||
|
||||
describe('validate params', () => {
|
||||
test('should validate package name', async () => {
|
||||
const app = getApp([]);
|
||||
// @ts-ignore
|
||||
app.param('package', validatePackage);
|
||||
app.get('/pkg/:package', (req, res) => {
|
||||
res.status(HTTP_STATUS.OK).json({});
|
||||
});
|
||||
|
||||
return request(app).get('/pkg/react').expect(HTTP_STATUS.OK);
|
||||
});
|
||||
|
||||
test('should fails validate package name', async () => {
|
||||
const app = getApp([]);
|
||||
// @ts-ignore
|
||||
app.param('package', validatePackage);
|
||||
app.get('/pkg/:package', (req, res) => {
|
||||
res.status(HTTP_STATUS.OK).json({});
|
||||
});
|
||||
|
||||
return request(app).get('/pkg/node_modules').expect(HTTP_STATUS.FORBIDDEN);
|
||||
});
|
||||
|
||||
test('should fails file name package name', async () => {
|
||||
const app = getApp([]);
|
||||
// @ts-ignore
|
||||
app.param('filename', validateName);
|
||||
app.get('/file/:filename', (req, res) => {
|
||||
res.status(HTTP_STATUS.OK).json({});
|
||||
});
|
||||
|
||||
return request(app).get('/file/__proto__').expect(HTTP_STATUS.FORBIDDEN);
|
||||
});
|
||||
|
||||
test('should validate file name package name', async () => {
|
||||
const app = getApp([]);
|
||||
// @ts-ignore
|
||||
app.param('filename', validateName);
|
||||
app.get('/file/:filename', (req, res) => {
|
||||
res.status(HTTP_STATUS.OK).json({});
|
||||
});
|
||||
|
||||
return request(app).get('/file/react.tar.gz').expect(HTTP_STATUS.OK);
|
||||
});
|
||||
});
|
||||
|
||||
describe('match', () => {
|
||||
test('should not match middleware', async () => {
|
||||
const app = getApp([]);
|
||||
|
||||
92
packages/middleware/test/validation.spec.ts
Normal file
92
packages/middleware/test/validation.spec.ts
Normal file
@@ -0,0 +1,92 @@
|
||||
import request from 'supertest';
|
||||
|
||||
import { HTTP_STATUS } from '@verdaccio/core';
|
||||
|
||||
import { validateName, validatePackage } from '../src';
|
||||
import { getApp } from './helper';
|
||||
|
||||
describe('validate package name middleware', () => {
|
||||
test.each(['jquery', '-'])('%s should be valid package name', (pkg) => {
|
||||
const app = getApp([]);
|
||||
app.param('pkg', validatePackage);
|
||||
app.get('/:pkg', (_req, res) => {
|
||||
res.status(HTTP_STATUS.OK).json({});
|
||||
});
|
||||
|
||||
return request(app).get(`/${pkg}`).expect(HTTP_STATUS.OK);
|
||||
});
|
||||
|
||||
test.each(['node_modules', '%'])('%s should be invalid package name', (pkg) => {
|
||||
const app = getApp([]);
|
||||
app.param('pkg', validatePackage);
|
||||
app.get('/:pkg', (_req, res) => {
|
||||
res.status(HTTP_STATUS.OK).json({});
|
||||
});
|
||||
|
||||
return request(app).get(`/${pkg}`).expect(HTTP_STATUS.BAD_REQUEST);
|
||||
});
|
||||
|
||||
test('should validate package name double level', async () => {
|
||||
const app = getApp([]);
|
||||
// @ts-ignore
|
||||
app.param('package', validatePackage);
|
||||
app.get('/pkg/:package', (req, res) => {
|
||||
res.status(HTTP_STATUS.OK).json({});
|
||||
});
|
||||
|
||||
return request(app).get('/pkg/react').expect(HTTP_STATUS.OK);
|
||||
});
|
||||
|
||||
test('should fails validate package name double level', async () => {
|
||||
const app = getApp([]);
|
||||
// @ts-ignore
|
||||
app.param('package', validatePackage);
|
||||
app.get('/pkg/:package', (req, res) => {
|
||||
res.status(HTTP_STATUS.OK).json({});
|
||||
});
|
||||
|
||||
return request(app).get('/pkg/node_modules').expect(HTTP_STATUS.BAD_REQUEST);
|
||||
});
|
||||
});
|
||||
|
||||
describe('validate file name name middleware', () => {
|
||||
test.each(['old-package@0.1.2.tgz', '--0.0.1.tgz'])('%s should be valid file name', (pkg) => {
|
||||
const app = getApp([]);
|
||||
app.param('pkg', validateName);
|
||||
app.get('/:pkg', (_req, res) => {
|
||||
res.status(HTTP_STATUS.OK).json({});
|
||||
});
|
||||
|
||||
return request(app).get(`/${pkg}`).expect(HTTP_STATUS.OK);
|
||||
});
|
||||
|
||||
test.each(['some%2Fthing', '.bin'])('%s should be invalid package name', (pkg) => {
|
||||
const app = getApp([]);
|
||||
app.param('pkg', validateName);
|
||||
app.get('/:pkg', (_req, res) => {
|
||||
res.status(HTTP_STATUS.OK).json({});
|
||||
});
|
||||
|
||||
return request(app).get(`/${pkg}`).expect(HTTP_STATUS.BAD_REQUEST);
|
||||
});
|
||||
|
||||
test('should fails file name package name', async () => {
|
||||
const app = getApp([]);
|
||||
app.param('filename', validateName);
|
||||
app.get('/file/:filename', (req, res) => {
|
||||
res.status(HTTP_STATUS.OK).json({});
|
||||
});
|
||||
|
||||
return request(app).get('/file/__proto__').expect(HTTP_STATUS.BAD_REQUEST);
|
||||
});
|
||||
|
||||
test('should validate file name package name', async () => {
|
||||
const app = getApp([]);
|
||||
app.param('filename', validateName);
|
||||
app.get('/file/:filename', (req, res) => {
|
||||
res.status(HTTP_STATUS.OK).json({});
|
||||
});
|
||||
|
||||
return request(app).get('/file/react.tar.gz').expect(HTTP_STATUS.OK);
|
||||
});
|
||||
});
|
||||
@@ -1,5 +1,38 @@
|
||||
# @verdaccio/node-api
|
||||
|
||||
## 6.0.0-6-next.74
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [ae93e039d]
|
||||
- @verdaccio/server@6.0.0-6-next.63
|
||||
- @verdaccio/core@6.0.0-6-next.74
|
||||
- @verdaccio/config@6.0.0-6-next.74
|
||||
- @verdaccio/server-fastify@6.0.0-6-next.55
|
||||
- @verdaccio/logger@6.0.0-6-next.42
|
||||
|
||||
## 6.0.0-6-next.73
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [f859d2b1a]
|
||||
- @verdaccio/core@6.0.0-6-next.73
|
||||
- @verdaccio/server@6.0.0-6-next.62
|
||||
- @verdaccio/config@6.0.0-6-next.73
|
||||
- @verdaccio/server-fastify@6.0.0-6-next.54
|
||||
- @verdaccio/logger@6.0.0-6-next.41
|
||||
|
||||
## 6.0.0-6-next.72
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [702d5c497]
|
||||
- @verdaccio/server-fastify@6.0.0-6-next.53
|
||||
- @verdaccio/server@6.0.0-6-next.61
|
||||
- @verdaccio/core@6.0.0-6-next.72
|
||||
- @verdaccio/config@6.0.0-6-next.72
|
||||
- @verdaccio/logger@6.0.0-6-next.40
|
||||
|
||||
## 6.0.0-6-next.71
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/node-api",
|
||||
"version": "6.0.0-6-next.71",
|
||||
"version": "6.0.0-6-next.74",
|
||||
"description": "node API",
|
||||
"main": "build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -39,19 +39,17 @@
|
||||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.39",
|
||||
"@verdaccio/server": "workspace:6.0.0-6-next.60",
|
||||
"@verdaccio/server-fastify": "workspace:6.0.0-6-next.52",
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.42",
|
||||
"@verdaccio/server": "workspace:6.0.0-6-next.63",
|
||||
"@verdaccio/server-fastify": "workspace:6.0.0-6-next.55",
|
||||
"core-js": "3.30.2",
|
||||
"debug": "4.3.4",
|
||||
"lodash": "4.17.21"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "16.18.10",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.25",
|
||||
"jest-mock-process": "1.5.1",
|
||||
"selfsigned": "1.10.14",
|
||||
"supertest": "6.3.3"
|
||||
},
|
||||
|
||||
@@ -1,5 +1,27 @@
|
||||
# Change Log
|
||||
|
||||
## 11.0.0-6-next.37
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@6.0.0-6-next.74
|
||||
- @verdaccio/config@6.0.0-6-next.74
|
||||
|
||||
## 11.0.0-6-next.36
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [f859d2b1a]
|
||||
- @verdaccio/core@6.0.0-6-next.73
|
||||
- @verdaccio/config@6.0.0-6-next.73
|
||||
|
||||
## 11.0.0-6-next.35
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@6.0.0-6-next.72
|
||||
- @verdaccio/config@6.0.0-6-next.72
|
||||
|
||||
## 11.0.0-6-next.34
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "verdaccio-audit",
|
||||
"version": "11.0.0-6-next.34",
|
||||
"version": "11.0.0-6-next.37",
|
||||
"description": "Verdaccio Middleware plugin to bypass npmjs audit",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -30,16 +30,16 @@
|
||||
"node": ">=12"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.74",
|
||||
"express": "4.18.2",
|
||||
"https-proxy-agent": "5.0.1",
|
||||
"node-fetch": "cjs"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.25",
|
||||
"@verdaccio/auth": "workspace:6.0.0-6-next.50",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.39",
|
||||
"@verdaccio/auth": "workspace:6.0.0-6-next.53",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.42",
|
||||
"nock": "13.2.9",
|
||||
"supertest": "6.3.3"
|
||||
},
|
||||
|
||||
@@ -1,5 +1,24 @@
|
||||
# Change Log
|
||||
|
||||
## 11.0.0-6-next.39
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@6.0.0-6-next.74
|
||||
|
||||
## 11.0.0-6-next.38
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [f859d2b1a]
|
||||
- @verdaccio/core@6.0.0-6-next.73
|
||||
|
||||
## 11.0.0-6-next.37
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@6.0.0-6-next.72
|
||||
|
||||
## 11.0.0-6-next.36
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "verdaccio-auth-memory",
|
||||
"version": "11.0.0-6-next.36",
|
||||
"version": "11.0.0-6-next.39",
|
||||
"description": "Auth plugin for Verdaccio that keeps users in memory",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -31,12 +31,12 @@
|
||||
"npm": ">=6"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.74",
|
||||
"debug": "4.3.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/debug": "^4.1.7",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.25"
|
||||
},
|
||||
"scripts": {
|
||||
|
||||
@@ -1,5 +1,24 @@
|
||||
# Change Log
|
||||
|
||||
## 11.0.0-6-next.44
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@6.0.0-6-next.74
|
||||
|
||||
## 11.0.0-6-next.43
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [f859d2b1a]
|
||||
- @verdaccio/core@6.0.0-6-next.73
|
||||
|
||||
## 11.0.0-6-next.42
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@6.0.0-6-next.72
|
||||
|
||||
## 11.0.0-6-next.41
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "verdaccio-htpasswd",
|
||||
"version": "11.0.0-6-next.41",
|
||||
"version": "11.0.0-6-next.44",
|
||||
"description": "htpasswd auth plugin for Verdaccio",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -34,7 +34,7 @@
|
||||
"npm": ">=6"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/file-locking": "workspace:11.0.0-6-next.7",
|
||||
"apache-md5": "1.1.8",
|
||||
"bcryptjs": "2.4.3",
|
||||
@@ -46,8 +46,8 @@
|
||||
"devDependencies": {
|
||||
"@types/bcryptjs": "2.4.2",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.25",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.39",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.42",
|
||||
"mockdate": "3.0.5"
|
||||
},
|
||||
"scripts": {
|
||||
|
||||
@@ -1,5 +1,27 @@
|
||||
# Change Log
|
||||
|
||||
## 11.0.0-6-next.44
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@6.0.0-6-next.74
|
||||
- @verdaccio/utils@6.0.0-6-next.42
|
||||
|
||||
## 11.0.0-6-next.43
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [f859d2b1a]
|
||||
- @verdaccio/core@6.0.0-6-next.73
|
||||
- @verdaccio/utils@6.0.0-6-next.41
|
||||
|
||||
## 11.0.0-6-next.42
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@6.0.0-6-next.72
|
||||
- @verdaccio/utils@6.0.0-6-next.40
|
||||
|
||||
## 11.0.0-6-next.41
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/local-storage",
|
||||
"version": "11.0.0-6-next.41",
|
||||
"version": "11.0.0-6-next.44",
|
||||
"description": "Local storage implementation",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -37,9 +37,9 @@
|
||||
"npm": ">=7"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/file-locking": "workspace:11.0.0-6-next.7",
|
||||
"@verdaccio/utils": "workspace:6.0.0-6-next.39",
|
||||
"@verdaccio/utils": "workspace:6.0.0-6-next.42",
|
||||
"core-js": "3.30.2",
|
||||
"debug": "4.3.4",
|
||||
"globby": "11.1.0",
|
||||
@@ -52,8 +52,8 @@
|
||||
"devDependencies": {
|
||||
"@types/minimatch": "3.0.5",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.25",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.39",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.42",
|
||||
"@verdaccio/test-helper": "workspace:2.0.0-6-next.8",
|
||||
"minimatch": "3.1.2"
|
||||
},
|
||||
|
||||
@@ -1,5 +1,24 @@
|
||||
# Change Log
|
||||
|
||||
## 11.0.0-6-next.41
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@6.0.0-6-next.74
|
||||
|
||||
## 11.0.0-6-next.40
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [f859d2b1a]
|
||||
- @verdaccio/core@6.0.0-6-next.73
|
||||
|
||||
## 11.0.0-6-next.39
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@6.0.0-6-next.72
|
||||
|
||||
## 11.0.0-6-next.38
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "verdaccio-memory",
|
||||
"version": "11.0.0-6-next.38",
|
||||
"version": "11.0.0-6-next.41",
|
||||
"description": "Storage implementation in memory",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -31,15 +31,15 @@
|
||||
"npm": ">=6"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.74",
|
||||
"memory-fs": "0.5.0",
|
||||
"debug": "4.3.4",
|
||||
"memfs": "3.5.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.25",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.39"
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.42"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "rimraf ./build",
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# @verdaccio/ui-theme
|
||||
|
||||
## 6.0.0-6-next.74
|
||||
|
||||
## 6.0.0-6-next.73
|
||||
|
||||
## 6.0.0-6-next.72
|
||||
|
||||
## 6.0.0-6-next.71
|
||||
|
||||
### Minor Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/ui-theme",
|
||||
"version": "6.0.0-6-next.71",
|
||||
"version": "6.0.0-6-next.74",
|
||||
"description": "Verdaccio User Interface",
|
||||
"author": {
|
||||
"name": "Verdaccio Contributors",
|
||||
@@ -18,16 +18,16 @@
|
||||
"@emotion/jest": "11.10.5",
|
||||
"@emotion/react": "11.10.6",
|
||||
"@emotion/styled": "11.10.6",
|
||||
"@mui/icons-material": "5.11.16",
|
||||
"@mui/material": "5.12.0",
|
||||
"@mui/styles": "5.12.0",
|
||||
"@mui/icons-material": "5.13.7",
|
||||
"@mui/material": "5.13.7",
|
||||
"@mui/styles": "5.13.7",
|
||||
"@rematch/core": "2.2.0",
|
||||
"@rematch/loading": "2.1.2",
|
||||
"@rematch/persist": "2.1.2",
|
||||
"@testing-library/dom": "8.19.1",
|
||||
"@testing-library/jest-dom": "5.16.5",
|
||||
"@testing-library/react": "13.4.0",
|
||||
"@verdaccio/node-api": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/node-api": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/types": "workspace:*",
|
||||
"@verdaccio/ui-components": "workspace:2.0.0-6-next.10",
|
||||
"babel-loader": "8.3.0",
|
||||
@@ -37,7 +37,7 @@
|
||||
"dayjs": "1.11.7",
|
||||
"dompurify": "2.4.5",
|
||||
"friendly-errors-webpack-plugin": "1.7.0",
|
||||
"github-markdown-css": "4.0.0",
|
||||
"github-markdown-css": "5.2.0",
|
||||
"harmony-reflect": "1.6.2",
|
||||
"highlight.js": "11.7.0",
|
||||
"history": "4.10.1",
|
||||
@@ -73,7 +73,7 @@
|
||||
"remark-gfm": "3.0.1",
|
||||
"rimraf": "3.0.2",
|
||||
"style-loader": "3.3.1",
|
||||
"stylelint": "15.6.2",
|
||||
"stylelint": "15.6.3",
|
||||
"stylelint-config-recommended": "10.0.1",
|
||||
"stylelint-config-styled-components": "0.1.1",
|
||||
"stylelint-processor-styled-components": "1.10.0",
|
||||
|
||||
@@ -195,10 +195,6 @@
|
||||
"username": "markpeterfejes",
|
||||
"id": 7912231
|
||||
},
|
||||
{
|
||||
"username": "dschaller",
|
||||
"id": 1004789
|
||||
},
|
||||
{
|
||||
"username": "semoal",
|
||||
"id": 22656541
|
||||
@@ -259,6 +255,10 @@
|
||||
"username": "karfau",
|
||||
"id": 135657
|
||||
},
|
||||
{
|
||||
"username": "gkalpak",
|
||||
"id": 8604205
|
||||
},
|
||||
{
|
||||
"username": "kfatehi",
|
||||
"id": 175305
|
||||
@@ -267,6 +267,10 @@
|
||||
"username": "rmkanda",
|
||||
"id": 38713281
|
||||
},
|
||||
{
|
||||
"username": "rluvaton",
|
||||
"id": 16746759
|
||||
},
|
||||
{
|
||||
"username": "kuoruan",
|
||||
"id": 8685618
|
||||
@@ -403,10 +407,6 @@
|
||||
"username": "mysiar",
|
||||
"id": 13708162
|
||||
},
|
||||
{
|
||||
"username": "rluvaton",
|
||||
"id": 16746759
|
||||
},
|
||||
{
|
||||
"username": "innosatyam",
|
||||
"id": 85342175
|
||||
@@ -695,6 +695,10 @@
|
||||
"username": "deg",
|
||||
"id": 90383
|
||||
},
|
||||
{
|
||||
"username": "dschaller",
|
||||
"id": 1004789
|
||||
},
|
||||
{
|
||||
"username": "dafanasiev",
|
||||
"id": 5094703
|
||||
@@ -715,10 +719,6 @@
|
||||
"username": "falegh",
|
||||
"id": 49175237
|
||||
},
|
||||
{
|
||||
"username": "gkalpak",
|
||||
"id": 8604205
|
||||
},
|
||||
{
|
||||
"username": "Grabauskas",
|
||||
"id": 43740166
|
||||
@@ -1035,6 +1035,10 @@
|
||||
"username": "yannickcr",
|
||||
"id": 13209
|
||||
},
|
||||
{
|
||||
"username": "yassine-klilich",
|
||||
"id": 24640070
|
||||
},
|
||||
{
|
||||
"username": "yogevyuval",
|
||||
"id": 962869
|
||||
|
||||
@@ -1,5 +1,36 @@
|
||||
# @verdaccio/proxy
|
||||
|
||||
## 6.0.0-6-next.52
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@6.0.0-6-next.74
|
||||
- @verdaccio/config@6.0.0-6-next.74
|
||||
- @verdaccio/local-storage@11.0.0-6-next.44
|
||||
- @verdaccio/utils@6.0.0-6-next.42
|
||||
- @verdaccio/logger@6.0.0-6-next.42
|
||||
|
||||
## 6.0.0-6-next.51
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [f859d2b1a]
|
||||
- @verdaccio/core@6.0.0-6-next.73
|
||||
- @verdaccio/config@6.0.0-6-next.73
|
||||
- @verdaccio/local-storage@11.0.0-6-next.43
|
||||
- @verdaccio/utils@6.0.0-6-next.41
|
||||
- @verdaccio/logger@6.0.0-6-next.41
|
||||
|
||||
## 6.0.0-6-next.50
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@6.0.0-6-next.72
|
||||
- @verdaccio/config@6.0.0-6-next.72
|
||||
- @verdaccio/local-storage@11.0.0-6-next.42
|
||||
- @verdaccio/utils@6.0.0-6-next.40
|
||||
- @verdaccio/logger@6.0.0-6-next.40
|
||||
|
||||
## 6.0.0-6-next.49
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/proxy",
|
||||
"version": "6.0.0-6-next.49",
|
||||
"version": "6.0.0-6-next.52",
|
||||
"description": "verdaccio proxy fetcher",
|
||||
"main": "./build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -39,11 +39,11 @@
|
||||
"build": "pnpm run build:js && pnpm run build:types"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/local-storage": "workspace:11.0.0-6-next.41",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.39",
|
||||
"@verdaccio/utils": "workspace:6.0.0-6-next.39",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/local-storage": "workspace:11.0.0-6-next.44",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.42",
|
||||
"@verdaccio/utils": "workspace:6.0.0-6-next.42",
|
||||
"JSONStream": "1.3.5",
|
||||
"debug": "4.3.4",
|
||||
"lodash": "4.17.21",
|
||||
@@ -52,13 +52,12 @@
|
||||
"undici": "4.16.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "16.18.10",
|
||||
"p-cancelable": "2.1.1",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.25",
|
||||
"get-stream": "^6.0.1",
|
||||
"nock": "13.2.9",
|
||||
"node-mocks-http": "1.12.1",
|
||||
"semver": "7.5.0"
|
||||
"semver": "7.5.4"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
|
||||
@@ -38,9 +38,8 @@
|
||||
"build": "esbuild src/index.ts --bundle --outfile=build/dist.js --platform=node --target=node12 && pnpm run build:types"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "16.18.10",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.25",
|
||||
"@orama/orama": "1.0.2",
|
||||
"@orama/orama": "1.0.9",
|
||||
"debug": "4.3.4",
|
||||
"esbuild": "0.14.10"
|
||||
},
|
||||
|
||||
@@ -1,5 +1,60 @@
|
||||
# @verdaccio/server
|
||||
|
||||
## 6.0.0-6-next.63
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- ae93e039d: fix: expose middleware methods
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [ae93e039d]
|
||||
- @verdaccio/api@6.0.0-6-next.57
|
||||
- @verdaccio/middleware@6.0.0-6-next.53
|
||||
- @verdaccio/web@6.0.0-6-next.61
|
||||
- @verdaccio/core@6.0.0-6-next.74
|
||||
- @verdaccio/config@6.0.0-6-next.74
|
||||
- @verdaccio/auth@6.0.0-6-next.53
|
||||
- @verdaccio/loaders@6.0.0-6-next.43
|
||||
- verdaccio-audit@11.0.0-6-next.37
|
||||
- @verdaccio/store@6.0.0-6-next.54
|
||||
- @verdaccio/utils@6.0.0-6-next.42
|
||||
- @verdaccio/logger@6.0.0-6-next.42
|
||||
|
||||
## 6.0.0-6-next.62
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [f859d2b1a]
|
||||
- @verdaccio/api@6.0.0-6-next.56
|
||||
- @verdaccio/core@6.0.0-6-next.73
|
||||
- @verdaccio/middleware@6.0.0-6-next.52
|
||||
- @verdaccio/web@6.0.0-6-next.60
|
||||
- @verdaccio/auth@6.0.0-6-next.52
|
||||
- @verdaccio/config@6.0.0-6-next.73
|
||||
- @verdaccio/loaders@6.0.0-6-next.42
|
||||
- verdaccio-audit@11.0.0-6-next.36
|
||||
- @verdaccio/store@6.0.0-6-next.53
|
||||
- @verdaccio/utils@6.0.0-6-next.41
|
||||
- @verdaccio/logger@6.0.0-6-next.41
|
||||
|
||||
## 6.0.0-6-next.61
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [702d5c497]
|
||||
- @verdaccio/web@6.0.0-6-next.59
|
||||
- @verdaccio/api@6.0.0-6-next.55
|
||||
- @verdaccio/core@6.0.0-6-next.72
|
||||
- @verdaccio/config@6.0.0-6-next.72
|
||||
- @verdaccio/auth@6.0.0-6-next.51
|
||||
- @verdaccio/loaders@6.0.0-6-next.41
|
||||
- @verdaccio/middleware@6.0.0-6-next.51
|
||||
- verdaccio-audit@11.0.0-6-next.35
|
||||
- @verdaccio/store@6.0.0-6-next.52
|
||||
- @verdaccio/utils@6.0.0-6-next.40
|
||||
- @verdaccio/logger@6.0.0-6-next.40
|
||||
|
||||
## 6.0.0-6-next.60
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -4,7 +4,7 @@ module.exports = Object.assign({}, config, {
|
||||
coverageThreshold: {
|
||||
global: {
|
||||
// FIXME: increase to 90
|
||||
lines: 85,
|
||||
lines: 84,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/server",
|
||||
"version": "6.0.0-6-next.60",
|
||||
"version": "6.0.0-6-next.63",
|
||||
"description": "server logic",
|
||||
"main": "./build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -30,17 +30,17 @@
|
||||
"npm": ">=6"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/api": "workspace:6.0.0-6-next.54",
|
||||
"@verdaccio/auth": "workspace:6.0.0-6-next.50",
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/loaders": "workspace:6.0.0-6-next.40",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.39",
|
||||
"@verdaccio/middleware": "workspace:6.0.0-6-next.50",
|
||||
"@verdaccio/store": "workspace:6.0.0-6-next.51",
|
||||
"@verdaccio/utils": "workspace:6.0.0-6-next.39",
|
||||
"@verdaccio/web": "workspace:6.0.0-6-next.58",
|
||||
"verdaccio-audit": "workspace:11.0.0-6-next.34",
|
||||
"@verdaccio/api": "workspace:6.0.0-6-next.57",
|
||||
"@verdaccio/auth": "workspace:6.0.0-6-next.53",
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/loaders": "workspace:6.0.0-6-next.43",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.42",
|
||||
"@verdaccio/middleware": "workspace:6.0.0-6-next.53",
|
||||
"@verdaccio/store": "workspace:6.0.0-6-next.54",
|
||||
"@verdaccio/utils": "workspace:6.0.0-6-next.42",
|
||||
"@verdaccio/web": "workspace:6.0.0-6-next.61",
|
||||
"verdaccio-audit": "workspace:11.0.0-6-next.37",
|
||||
"compression": "1.7.4",
|
||||
"cors": "2.8.5",
|
||||
"debug": "4.3.4",
|
||||
@@ -48,8 +48,7 @@
|
||||
"lodash": "4.17.21"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "16.18.10",
|
||||
"@verdaccio/proxy": "workspace:6.0.0-6-next.49",
|
||||
"@verdaccio/proxy": "workspace:6.0.0-6-next.52",
|
||||
"@verdaccio/test-helper": "workspace:2.0.0-6-next.8",
|
||||
"http-errors": "2.0.0"
|
||||
},
|
||||
|
||||
@@ -89,7 +89,8 @@ const defineAPI = async function (config: IConfig, storage: Storage): Promise<an
|
||||
res.locals.app_version = version ?? '';
|
||||
next();
|
||||
});
|
||||
app.use(await webMiddleware(config, auth, storage));
|
||||
const middleware = await webMiddleware(config, auth, storage);
|
||||
app.use(middleware);
|
||||
} else {
|
||||
app.get('/', function (req: $RequestExtend, res: $ResponseExtend, next: $NextFunctionVer) {
|
||||
next(errorUtils.getNotFound(API_ERROR.WEB_DISABLED));
|
||||
|
||||
@@ -1,5 +1,43 @@
|
||||
# @verdaccio/server-fastify
|
||||
|
||||
## 6.0.0-6-next.55
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@6.0.0-6-next.74
|
||||
- @verdaccio/config@6.0.0-6-next.74
|
||||
- @verdaccio/auth@6.0.0-6-next.53
|
||||
- @verdaccio/tarball@11.0.0-6-next.43
|
||||
- @verdaccio/store@6.0.0-6-next.54
|
||||
- @verdaccio/utils@6.0.0-6-next.42
|
||||
- @verdaccio/logger@6.0.0-6-next.42
|
||||
|
||||
## 6.0.0-6-next.54
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [f859d2b1a]
|
||||
- @verdaccio/core@6.0.0-6-next.73
|
||||
- @verdaccio/auth@6.0.0-6-next.52
|
||||
- @verdaccio/config@6.0.0-6-next.73
|
||||
- @verdaccio/tarball@11.0.0-6-next.42
|
||||
- @verdaccio/store@6.0.0-6-next.53
|
||||
- @verdaccio/utils@6.0.0-6-next.41
|
||||
- @verdaccio/logger@6.0.0-6-next.41
|
||||
|
||||
## 6.0.0-6-next.53
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 702d5c497: Fix the password validation logic for the `/reset_password` route to ensure that the password is only reset if it is valid.
|
||||
- @verdaccio/core@6.0.0-6-next.72
|
||||
- @verdaccio/config@6.0.0-6-next.72
|
||||
- @verdaccio/auth@6.0.0-6-next.51
|
||||
- @verdaccio/tarball@11.0.0-6-next.41
|
||||
- @verdaccio/store@6.0.0-6-next.52
|
||||
- @verdaccio/utils@6.0.0-6-next.40
|
||||
- @verdaccio/logger@6.0.0-6-next.40
|
||||
|
||||
## 6.0.0-6-next.52
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/server-fastify",
|
||||
"version": "6.0.0-6-next.52",
|
||||
"version": "6.0.0-6-next.55",
|
||||
"description": "fastify server api implementation",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -34,13 +34,13 @@
|
||||
"access": "public"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/auth": "workspace:6.0.0-6-next.50",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.39",
|
||||
"@verdaccio/store": "workspace:6.0.0-6-next.51",
|
||||
"@verdaccio/tarball": "workspace:11.0.0-6-next.40",
|
||||
"@verdaccio/utils": "workspace:6.0.0-6-next.39",
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/auth": "workspace:6.0.0-6-next.53",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.42",
|
||||
"@verdaccio/store": "workspace:6.0.0-6-next.54",
|
||||
"@verdaccio/tarball": "workspace:11.0.0-6-next.43",
|
||||
"@verdaccio/utils": "workspace:6.0.0-6-next.42",
|
||||
"core-js": "3.30.2",
|
||||
"debug": "4.3.4",
|
||||
"fastify": "4.17.0",
|
||||
@@ -48,7 +48,6 @@
|
||||
"lodash": "4.17.21"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "16.18.10",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.25",
|
||||
"ts-node": "10.9.1"
|
||||
},
|
||||
|
||||
@@ -83,30 +83,31 @@ async function loginRoute(fastify: FastifyInstance) {
|
||||
fastify.configInstance?.server?.passwordValidationRegex
|
||||
) === false
|
||||
) {
|
||||
fastify.auth.changePassword(
|
||||
name as string,
|
||||
password.old,
|
||||
password.new,
|
||||
(err, isUpdated): void => {
|
||||
if (_.isNil(err) && isUpdated) {
|
||||
reply.code(fastify.statusCode.OK);
|
||||
} else {
|
||||
reply.send(
|
||||
fastify.errorUtils.getInternalError(
|
||||
fastify.errorUtils.API_ERROR.INTERNAL_SERVER_ERROR
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
);
|
||||
} else {
|
||||
reply.send(
|
||||
fastify.errorUtils.getCode(
|
||||
fastify.statusCode.BAD_REQUEST,
|
||||
fastify.errorUtils.APP_ERROR.PASSWORD_VALIDATION
|
||||
)
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
fastify.auth.changePassword(
|
||||
name as string,
|
||||
password.old,
|
||||
password.new,
|
||||
(err, isUpdated): void => {
|
||||
if (_.isNil(err) && isUpdated) {
|
||||
reply.code(fastify.statusCode.OK);
|
||||
} else {
|
||||
reply.send(
|
||||
fastify.errorUtils.getInternalError(
|
||||
fastify.errorUtils.API_ERROR.INTERNAL_SERVER_ERROR
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
// });
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
"lodash": "4.17.21"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.25"
|
||||
},
|
||||
"funding": {
|
||||
|
||||
@@ -32,8 +32,8 @@
|
||||
"homepage": "https://verdaccio.org",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@verdaccio/cli": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/ui-theme": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/cli": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/ui-theme": "workspace:6.0.0-6-next.74",
|
||||
"fs-extra": "10.1.0",
|
||||
"webpack": "5.82.1",
|
||||
"webpack-bundle-analyzer": "4.7.0",
|
||||
|
||||
@@ -1,5 +1,51 @@
|
||||
# @verdaccio/store
|
||||
|
||||
## 6.0.0-6-next.54
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@6.0.0-6-next.74
|
||||
- @verdaccio/config@6.0.0-6-next.74
|
||||
- @verdaccio/tarball@11.0.0-6-next.43
|
||||
- @verdaccio/url@11.0.0-6-next.40
|
||||
- @verdaccio/hooks@6.0.0-6-next.44
|
||||
- @verdaccio/loaders@6.0.0-6-next.43
|
||||
- @verdaccio/local-storage@11.0.0-6-next.44
|
||||
- @verdaccio/proxy@6.0.0-6-next.52
|
||||
- @verdaccio/utils@6.0.0-6-next.42
|
||||
- @verdaccio/logger@6.0.0-6-next.42
|
||||
|
||||
## 6.0.0-6-next.53
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [f859d2b1a]
|
||||
- @verdaccio/core@6.0.0-6-next.73
|
||||
- @verdaccio/config@6.0.0-6-next.73
|
||||
- @verdaccio/tarball@11.0.0-6-next.42
|
||||
- @verdaccio/url@11.0.0-6-next.39
|
||||
- @verdaccio/hooks@6.0.0-6-next.43
|
||||
- @verdaccio/loaders@6.0.0-6-next.42
|
||||
- @verdaccio/local-storage@11.0.0-6-next.43
|
||||
- @verdaccio/proxy@6.0.0-6-next.51
|
||||
- @verdaccio/utils@6.0.0-6-next.41
|
||||
- @verdaccio/logger@6.0.0-6-next.41
|
||||
|
||||
## 6.0.0-6-next.52
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@6.0.0-6-next.72
|
||||
- @verdaccio/config@6.0.0-6-next.72
|
||||
- @verdaccio/tarball@11.0.0-6-next.41
|
||||
- @verdaccio/url@11.0.0-6-next.38
|
||||
- @verdaccio/hooks@6.0.0-6-next.42
|
||||
- @verdaccio/loaders@6.0.0-6-next.41
|
||||
- @verdaccio/local-storage@11.0.0-6-next.42
|
||||
- @verdaccio/proxy@6.0.0-6-next.50
|
||||
- @verdaccio/utils@6.0.0-6-next.40
|
||||
- @verdaccio/logger@6.0.0-6-next.40
|
||||
|
||||
## 6.0.0-6-next.51
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/store",
|
||||
"version": "6.0.0-6-next.51",
|
||||
"version": "6.0.0-6-next.54",
|
||||
"description": "loaders logic",
|
||||
"main": "./build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -39,24 +39,23 @@
|
||||
"build": "pnpm run build:js && pnpm run build:types"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/hooks": "workspace:6.0.0-6-next.41",
|
||||
"@verdaccio/loaders": "workspace:6.0.0-6-next.40",
|
||||
"@verdaccio/local-storage": "workspace:11.0.0-6-next.41",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.39",
|
||||
"@verdaccio/proxy": "workspace:6.0.0-6-next.49",
|
||||
"@verdaccio/url": "workspace:11.0.0-6-next.37",
|
||||
"@verdaccio/utils": "workspace:6.0.0-6-next.39",
|
||||
"@verdaccio/tarball": "workspace:11.0.0-6-next.40",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/hooks": "workspace:6.0.0-6-next.44",
|
||||
"@verdaccio/loaders": "workspace:6.0.0-6-next.43",
|
||||
"@verdaccio/local-storage": "workspace:11.0.0-6-next.44",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.42",
|
||||
"@verdaccio/proxy": "workspace:6.0.0-6-next.52",
|
||||
"@verdaccio/url": "workspace:11.0.0-6-next.40",
|
||||
"@verdaccio/utils": "workspace:6.0.0-6-next.42",
|
||||
"@verdaccio/tarball": "workspace:11.0.0-6-next.43",
|
||||
"JSONStream": "1.3.5",
|
||||
"debug": "4.3.4",
|
||||
"lodash": "4.17.21",
|
||||
"merge2": "1.4.1",
|
||||
"semver": "7.5.0"
|
||||
"semver": "7.5.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "16.18.10",
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.25",
|
||||
"@verdaccio/test-helper": "workspace:2.0.0-6-next.8",
|
||||
"undici": "4.16.0",
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
{
|
||||
"id": 558752,
|
||||
"login": "juanpicado",
|
||||
"contributions": 5090,
|
||||
"contributions": 5099,
|
||||
"repositories": [
|
||||
{
|
||||
"name": "verdaccio",
|
||||
"contributions": 2776
|
||||
"contributions": 2783
|
||||
},
|
||||
{
|
||||
"name": "verdaccio-cookbook",
|
||||
@@ -131,7 +131,7 @@
|
||||
},
|
||||
{
|
||||
"name": "e2e-5.x",
|
||||
"contributions": 51
|
||||
"contributions": 53
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -903,17 +903,6 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 1004789,
|
||||
"login": "dschaller",
|
||||
"contributions": 4,
|
||||
"repositories": [
|
||||
{
|
||||
"name": "verdaccio",
|
||||
"contributions": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 22656541,
|
||||
"login": "semoal",
|
||||
@@ -1115,6 +1104,17 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 8604205,
|
||||
"login": "gkalpak",
|
||||
"contributions": 3,
|
||||
"repositories": [
|
||||
{
|
||||
"name": "verdaccio",
|
||||
"contributions": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 175305,
|
||||
"login": "kfatehi",
|
||||
@@ -1137,6 +1137,17 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 16746759,
|
||||
"login": "rluvaton",
|
||||
"contributions": 3,
|
||||
"repositories": [
|
||||
{
|
||||
"name": "verdaccio",
|
||||
"contributions": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 8685618,
|
||||
"login": "kuoruan",
|
||||
@@ -1559,17 +1570,6 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 16746759,
|
||||
"login": "rluvaton",
|
||||
"contributions": 2,
|
||||
"repositories": [
|
||||
{
|
||||
"name": "verdaccio",
|
||||
"contributions": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 85342175,
|
||||
"login": "innosatyam",
|
||||
@@ -2414,6 +2414,17 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 1004789,
|
||||
"login": "dschaller",
|
||||
"contributions": 1,
|
||||
"repositories": [
|
||||
{
|
||||
"name": "verdaccio",
|
||||
"contributions": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 5094703,
|
||||
"login": "dafanasiev",
|
||||
@@ -2469,17 +2480,6 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 8604205,
|
||||
"login": "gkalpak",
|
||||
"contributions": 1,
|
||||
"repositories": [
|
||||
{
|
||||
"name": "verdaccio",
|
||||
"contributions": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 43740166,
|
||||
"login": "Grabauskas",
|
||||
@@ -3349,6 +3349,17 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 24640070,
|
||||
"login": "yassine-klilich",
|
||||
"contributions": 1,
|
||||
"repositories": [
|
||||
{
|
||||
"name": "verdaccio",
|
||||
"contributions": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 962869,
|
||||
"login": "yogevyuval",
|
||||
@@ -4831,7 +4842,7 @@
|
||||
"full_name": "verdaccio/verdaccio",
|
||||
"html_url": "https://github.com/verdaccio/verdaccio",
|
||||
"description": "📦🔐 A lightweight Node.js private proxy registry",
|
||||
"stargazers_count": 14814,
|
||||
"stargazers_count": 14944,
|
||||
"archived": false
|
||||
},
|
||||
{
|
||||
@@ -4858,7 +4869,7 @@
|
||||
"full_name": "verdaccio/generator-verdaccio-plugin",
|
||||
"html_url": "https://github.com/verdaccio/generator-verdaccio-plugin",
|
||||
"description": " 🧩 yeoman verdaccio plugin generator",
|
||||
"stargazers_count": 11,
|
||||
"stargazers_count": 12,
|
||||
"archived": false
|
||||
},
|
||||
{
|
||||
@@ -4957,7 +4968,7 @@
|
||||
"full_name": "verdaccio/monorepo",
|
||||
"html_url": "https://github.com/verdaccio/monorepo",
|
||||
"description": "🏰 Core dependencies and plugins for verdaccio 5.x branch ⚠️ DEPRECATED",
|
||||
"stargazers_count": 75,
|
||||
"stargazers_count": 78,
|
||||
"archived": false
|
||||
},
|
||||
{
|
||||
@@ -5029,7 +5040,7 @@
|
||||
"full_name": "verdaccio/github-actions",
|
||||
"html_url": "https://github.com/verdaccio/github-actions",
|
||||
"description": "🤖Verdaccio GitHub Actions",
|
||||
"stargazers_count": 15,
|
||||
"stargazers_count": 16,
|
||||
"archived": false
|
||||
},
|
||||
{
|
||||
@@ -5092,7 +5103,7 @@
|
||||
"full_name": "verdaccio/charts",
|
||||
"html_url": "https://github.com/verdaccio/charts",
|
||||
"description": "☸️🐳 Verdaccio Helm chart repository",
|
||||
"stargazers_count": 45,
|
||||
"stargazers_count": 46,
|
||||
"archived": false
|
||||
},
|
||||
{
|
||||
@@ -5119,7 +5130,7 @@
|
||||
"full_name": "verdaccio/e2e-5.x",
|
||||
"html_url": "https://github.com/verdaccio/e2e-5.x",
|
||||
"description": "e2e tests 5.x only ",
|
||||
"stargazers_count": 1,
|
||||
"stargazers_count": 2,
|
||||
"archived": false
|
||||
}
|
||||
]
|
||||
|
||||
@@ -10,12 +10,12 @@
|
||||
"types": "build/index.d.ts",
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.25",
|
||||
"@verdaccio/auth": "workspace:6.0.0-6-next.50",
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/middleware": "workspace:6.0.0-6-next.50",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.39",
|
||||
"@verdaccio/utils": "workspace:6.0.0-6-next.39",
|
||||
"@verdaccio/auth": "workspace:6.0.0-6-next.53",
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/middleware": "workspace:6.0.0-6-next.53",
|
||||
"@verdaccio/logger": "workspace:6.0.0-6-next.42",
|
||||
"@verdaccio/utils": "workspace:6.0.0-6-next.42",
|
||||
"body-parser": "1.20.2",
|
||||
"express": "4.18.2",
|
||||
"supertest": "6.3.3",
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import bodyParser from 'body-parser';
|
||||
import buildDebug from 'debug';
|
||||
import express, { Application } from 'express';
|
||||
import os from 'os';
|
||||
@@ -30,7 +29,7 @@ export async function initializeServer(
|
||||
const auth: Auth = new Auth(config);
|
||||
await auth.init();
|
||||
// TODO: this might not be need it, used in apiEndpoints
|
||||
app.use(bodyParser.json({ strict: false, limit: '10mb' }));
|
||||
app.use(express.json({ strict: false, limit: '10mb' }));
|
||||
// @ts-ignore
|
||||
app.use(errorReportingMiddleware(logger));
|
||||
for (let route of routesMiddleware) {
|
||||
|
||||
@@ -10,9 +10,9 @@
|
||||
"types": "build/index.d.ts",
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "workspace:11.0.0-6-next.25",
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.71",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.71",
|
||||
"verdaccio": "6.0.0-6-next.71",
|
||||
"@verdaccio/core": "workspace:6.0.0-6-next.74",
|
||||
"@verdaccio/config": "workspace:6.0.0-6-next.74",
|
||||
"verdaccio": "6.0.0-6-next.74",
|
||||
"ts-node": "10.9.1"
|
||||
},
|
||||
"scripts": {
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
"author": "Juan Picado <juanpicado19@gmail.com>",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"clipanion": "3.2.0",
|
||||
"@crowdin/crowdin-api-client": "1.22.1"
|
||||
"clipanion": "3.2.1",
|
||||
"@crowdin/crowdin-api-client": "1.23.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"ts-node": "10.9.1"
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
"approvalProgress": 16
|
||||
},
|
||||
"es-ES": {
|
||||
"translationProgress": 20,
|
||||
"approvalProgress": 20
|
||||
"translationProgress": 21,
|
||||
"approvalProgress": 21
|
||||
},
|
||||
"fr": {
|
||||
"translationProgress": 27,
|
||||
"translationProgress": 28,
|
||||
"approvalProgress": 20
|
||||
},
|
||||
"gl": {
|
||||
@@ -21,7 +21,7 @@
|
||||
},
|
||||
"it": {
|
||||
"translationProgress": 87,
|
||||
"approvalProgress": 60
|
||||
"approvalProgress": 87
|
||||
},
|
||||
"ja": {
|
||||
"translationProgress": 1,
|
||||
@@ -36,7 +36,7 @@
|
||||
"approvalProgress": 1
|
||||
},
|
||||
"pl": {
|
||||
"translationProgress": 17,
|
||||
"translationProgress": 18,
|
||||
"approvalProgress": 16
|
||||
},
|
||||
"pt-BR": {
|
||||
@@ -44,11 +44,11 @@
|
||||
"approvalProgress": 28
|
||||
},
|
||||
"ru": {
|
||||
"translationProgress": 38,
|
||||
"translationProgress": 39,
|
||||
"approvalProgress": 38
|
||||
},
|
||||
"sr-CS": {
|
||||
"translationProgress": 9,
|
||||
"translationProgress": 11,
|
||||
"approvalProgress": 9
|
||||
},
|
||||
"tr": {
|
||||
@@ -68,8 +68,8 @@
|
||||
"approvalProgress": 14
|
||||
},
|
||||
"zh-CN": {
|
||||
"translationProgress": 38,
|
||||
"approvalProgress": 38
|
||||
"translationProgress": 48,
|
||||
"approvalProgress": 47
|
||||
},
|
||||
"zh-TW": {
|
||||
"translationProgress": 15,
|
||||
|
||||
@@ -23,17 +23,17 @@
|
||||
"@emotion/styled": "^11.10.6",
|
||||
"@fontsource/material-icons": "^4.5.4",
|
||||
"@fontsource/roboto": "^4.5.8",
|
||||
"@mui/icons-material": "5.11.16",
|
||||
"@mui/material": "5.12.0",
|
||||
"@mui/styles": "5.12.0",
|
||||
"@mui/system": "5.12.0",
|
||||
"@mui/icons-material": "5.13.7",
|
||||
"@mui/material": "5.13.7",
|
||||
"@mui/styles": "5.13.7",
|
||||
"@mui/system": "5.13.7",
|
||||
"@rematch/core": "2.2.0",
|
||||
"@rematch/loading": "2.1.2",
|
||||
"@rematch/persist": "2.1.2",
|
||||
"country-flag-icons": "1.5.5",
|
||||
"dayjs": "1.11.7",
|
||||
"dompurify": "2.4.5",
|
||||
"github-markdown-css": "5.1.0",
|
||||
"github-markdown-css": "5.2.0",
|
||||
"highlight.js": "11.7.0",
|
||||
"history": "4.10.1",
|
||||
"i18next": "20.6.1",
|
||||
|
||||
@@ -73,7 +73,7 @@ exports[`<Search /> component should load the component in default state 1`] = `
|
||||
}
|
||||
|
||||
.emotion-2 .MuiOutlinedInput-root .MuiAutocomplete-input {
|
||||
padding: 7.5px 4px 7.5px 6px;
|
||||
padding: 7.5px 4px 7.5px 5px;
|
||||
}
|
||||
|
||||
.emotion-2 .MuiOutlinedInput-root .MuiAutocomplete-endAdornment {
|
||||
@@ -87,7 +87,7 @@ exports[`<Search /> component should load the component in default state 1`] = `
|
||||
}
|
||||
|
||||
.emotion-2 .MuiOutlinedInput-root.MuiInputBase-sizeSmall .MuiAutocomplete-input {
|
||||
padding: 2.5px 4px 2.5px 6px;
|
||||
padding: 2.5px 4px 2.5px 8px;
|
||||
}
|
||||
|
||||
.emotion-2 .MuiFilledInput-root {
|
||||
|
||||
@@ -23,7 +23,7 @@ exports[`DetailContainer renders correctly 1`] = `
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
@media (max-width:399.95px) {
|
||||
@media (max-width:599.95px) {
|
||||
.emotion-2 .MuiTabs-scrollButtons {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ import HeaderGreetings from './HeaderGreetings';
|
||||
interface Props {
|
||||
username: string;
|
||||
isMenuOpen: boolean;
|
||||
anchorEl?: Element | ((element: Element) => Element) | null | undefined;
|
||||
anchorEl?: Element | null | undefined;
|
||||
onLogout: () => void;
|
||||
onLoggedInMenu: (event: MouseEvent<HTMLButtonElement>) => void;
|
||||
onLoggedInMenuClose: () => void;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user