Compare commits
67 Commits
@verdaccio
...
@verdaccio
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e85648f017 | ||
|
|
95ac1242dc | ||
|
|
00c142f480 | ||
|
|
411087391a | ||
|
|
016f0c2bcd | ||
|
|
85e0e135aa | ||
|
|
13e0fdef08 | ||
|
|
83dbde5154 | ||
|
|
7e48ac6cde | ||
|
|
d1dcb2ccc3 | ||
|
|
66bc2843e1 | ||
|
|
dd2fa34e1f | ||
|
|
0bd3e8e7e7 | ||
|
|
dc89fa0269 | ||
|
|
ae9944ebf8 | ||
|
|
fc9447e805 | ||
|
|
12712f5547 | ||
|
|
e33f8446af | ||
|
|
c7d0290127 | ||
|
|
9fbae9a5c7 | ||
|
|
b6e9f4606e | ||
|
|
3b72253c9c | ||
|
|
f6a4f9f582 | ||
|
|
4166b31540 | ||
|
|
a7c1f36ec1 | ||
|
|
c256b1d97e | ||
|
|
92c128f735 | ||
|
|
e78686e961 | ||
|
|
d4225867df | ||
|
|
8d30c50c89 | ||
|
|
be28e6cc1b | ||
|
|
d9e8da40c4 | ||
|
|
6260eae1e8 | ||
|
|
8eb8975d66 | ||
|
|
96fdf89d20 | ||
|
|
cd61cd4dab | ||
|
|
e1ceeb051c | ||
|
|
ace32e1dd9 | ||
|
|
bcd90863f1 | ||
|
|
add1b7674b | ||
|
|
0823c446aa | ||
|
|
ffcf865ba8 | ||
|
|
150ac6e231 | ||
|
|
02f28e928e | ||
|
|
a85a6c58d6 | ||
|
|
ea6b31a4e5 | ||
|
|
1d4972bf93 | ||
|
|
0494295240 | ||
|
|
d9628a8fa4 | ||
|
|
53869d8eed | ||
|
|
bf0e09a509 | ||
|
|
3711b20816 | ||
|
|
a29e7d4b27 | ||
|
|
11055f6eb3 | ||
|
|
5ab899fa57 | ||
|
|
87e410478e | ||
|
|
96e0011655 | ||
|
|
22c3455918 | ||
|
|
27bda4c4b2 | ||
|
|
e80fa2df04 | ||
|
|
6a4f03b97b | ||
|
|
7ee74706b4 | ||
|
|
ef94596558 | ||
|
|
ecddde1870 | ||
|
|
b744cfec2a | ||
|
|
5e394ce970 | ||
|
|
9d4aa6ae32 |
5
.changeset/calm-mangos-compare.md
Normal file
5
.changeset/calm-mangos-compare.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@verdaccio/store': patch
|
||||
---
|
||||
|
||||
fix(store): internal error when checking manifest
|
||||
@@ -13,6 +13,7 @@
|
||||
]
|
||||
],
|
||||
"ignoredPackages": [
|
||||
"@verdaccio/local-publish",
|
||||
"docusaurus-plugin-downloads",
|
||||
"docusaurus-plugin-contributors",
|
||||
"@verdaccio/test-cli-commons",
|
||||
|
||||
5
.changeset/curly-mirrors-smile.md
Normal file
5
.changeset/curly-mirrors-smile.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@verdaccio/middleware': patch
|
||||
---
|
||||
|
||||
chore(middleware): improve loop detection
|
||||
7
.changeset/forty-hounds-matter.md
Normal file
7
.changeset/forty-hounds-matter.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
'verdaccio': patch
|
||||
'@verdaccio/store': patch
|
||||
'@verdaccio/utils': patch
|
||||
---
|
||||
|
||||
fix: internal error for unpublished tarball
|
||||
6
.changeset/funny-fireants-tan.md
Normal file
6
.changeset/funny-fireants-tan.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
'@verdaccio/proxy': patch
|
||||
'@verdaccio/website': patch
|
||||
---
|
||||
|
||||
fix(proxy): validate protocol of proxy settings
|
||||
7
.changeset/itchy-glasses-end.md
Normal file
7
.changeset/itchy-glasses-end.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
'@verdaccio/ui-theme': minor
|
||||
'@verdaccio/ui-components': minor
|
||||
'@verdaccio/ui-i18n': minor
|
||||
---
|
||||
|
||||
feat: new i18n package for ui
|
||||
5
.changeset/ninety-geese-do.md
Normal file
5
.changeset/ninety-geese-do.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@verdaccio/config': patch
|
||||
---
|
||||
|
||||
fix: runtime dependency missing as explicit dependency
|
||||
5
.changeset/popular-trees-grin.md
Normal file
5
.changeset/popular-trees-grin.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@verdaccio/ui-components': patch
|
||||
---
|
||||
|
||||
fix(ui-components): remove test warnings
|
||||
@@ -14,6 +14,7 @@
|
||||
"@verdaccio/e2e-cli-yarn3": "1.0.1",
|
||||
"@verdaccio/e2e-cli-yarn4": "1.0.1",
|
||||
"@verdaccio/e2e-ui": "2.0.0",
|
||||
"@verdaccio/ui-i18n": "8.0.0",
|
||||
"@verdaccio/api": "7.0.0",
|
||||
"@verdaccio/auth": "7.0.0",
|
||||
"@verdaccio/cli": "7.0.0",
|
||||
@@ -48,7 +49,6 @@
|
||||
"@verdaccio/eslint-config": "3.0.0",
|
||||
"generator-verdaccio-plugin": "5.0.0",
|
||||
"@verdaccio/test-helper": "3.0.0",
|
||||
"@verdaccio/local-publish": "0.0.2",
|
||||
"@verdaccio/local-scripts": "1.0.0",
|
||||
"customprefix-auth": "2.0.0",
|
||||
"@verdaccio/ui-components": "3.0.0",
|
||||
@@ -59,7 +59,8 @@
|
||||
"@verdaccio/e2e-cli-npm-common": "1.0.0",
|
||||
"@verdaccio/e2e-cli-pnpm-common": "1.0.2-next-8.0",
|
||||
"@verdaccio/e2e-cli-pnpm10": "1.0.0",
|
||||
"docusaurus-plugin-downloads": "2.0.0"
|
||||
"docusaurus-plugin-downloads": "2.0.0",
|
||||
"@verdaccio/local-publish": "0.0.2"
|
||||
},
|
||||
"changesets": [
|
||||
"angry-doors-tan",
|
||||
@@ -68,15 +69,19 @@
|
||||
"breezy-geckos-search",
|
||||
"bright-bobcats-ring",
|
||||
"brown-planets-approve",
|
||||
"calm-mangos-compare",
|
||||
"chatty-apricots-report",
|
||||
"clean-beds-wash",
|
||||
"clever-bees-happen",
|
||||
"cool-seals-watch",
|
||||
"curly-mirrors-smile",
|
||||
"curvy-rockets-camp",
|
||||
"cyan-snakes-kiss",
|
||||
"early-eyes-float",
|
||||
"eleven-rocks-dream",
|
||||
"fifty-falcons-design",
|
||||
"forty-hounds-matter",
|
||||
"funny-fireants-tan",
|
||||
"gentle-stingrays-repeat",
|
||||
"gold-squids-watch",
|
||||
"green-eagles-boil",
|
||||
@@ -84,10 +89,15 @@
|
||||
"healthy-zoos-lie",
|
||||
"hip-eggs-serve",
|
||||
"hot-crews-live",
|
||||
"itchy-glasses-end",
|
||||
"long-eyes-drum",
|
||||
"long-singers-drive",
|
||||
"lucky-crabs-enjoy",
|
||||
"nine-countries-remember",
|
||||
"ninety-geese-do",
|
||||
"popular-trees-grin",
|
||||
"proud-houses-switch",
|
||||
"quick-avocados-type",
|
||||
"quick-seas-deny",
|
||||
"real-seahorses-change",
|
||||
"rotten-melons-notice",
|
||||
@@ -97,6 +107,7 @@
|
||||
"serious-apes-rule",
|
||||
"short-mails-smoke",
|
||||
"silent-bags-listen",
|
||||
"silent-tips-admire",
|
||||
"silver-houses-remain",
|
||||
"slow-cars-guess",
|
||||
"smooth-games-share",
|
||||
@@ -105,7 +116,11 @@
|
||||
"sweet-crabs-deliver",
|
||||
"thirty-comics-trade",
|
||||
"tricky-impalas-shake",
|
||||
"tricky-knives-end",
|
||||
"violet-baboons-beg",
|
||||
"violet-bobcats-allow",
|
||||
"violet-boxes-float",
|
||||
"weak-cherries-serve"
|
||||
"weak-cherries-serve",
|
||||
"wet-cats-behave"
|
||||
]
|
||||
}
|
||||
|
||||
5
.changeset/proud-houses-switch.md
Normal file
5
.changeset/proud-houses-switch.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@verdaccio/web': patch
|
||||
---
|
||||
|
||||
fix(web): anonymous user handling
|
||||
5
.changeset/quick-avocados-type.md
Normal file
5
.changeset/quick-avocados-type.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@verdaccio/ui-components': patch
|
||||
---
|
||||
|
||||
fix(ui-components): typings for vitest/jest-dom
|
||||
6
.changeset/silent-tips-admire.md
Normal file
6
.changeset/silent-tips-admire.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
'@verdaccio/middleware': patch
|
||||
'@verdaccio/web': patch
|
||||
---
|
||||
|
||||
chore: export and constant on middleware
|
||||
5
.changeset/tricky-knives-end.md
Normal file
5
.changeset/tricky-knives-end.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@verdaccio/store': patch
|
||||
---
|
||||
|
||||
fix(store): update deprecate state
|
||||
6
.changeset/violet-baboons-beg.md
Normal file
6
.changeset/violet-baboons-beg.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
'@verdaccio/middleware': patch
|
||||
'@verdaccio/web': patch
|
||||
---
|
||||
|
||||
chore: middleware package update
|
||||
6
.changeset/violet-bobcats-allow.md
Normal file
6
.changeset/violet-bobcats-allow.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
'@verdaccio/core': patch
|
||||
'@verdaccio/store': patch
|
||||
---
|
||||
|
||||
chore: add package parameter to storage plugin interface
|
||||
5
.changeset/wet-cats-behave.md
Normal file
5
.changeset/wet-cats-behave.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@verdaccio/ui-i18n': patch
|
||||
---
|
||||
|
||||
fix: ignore duplicted files
|
||||
@@ -1,3 +1,4 @@
|
||||
assets/**/*
|
||||
**/fixtures/**
|
||||
**/mock/store/**
|
||||
**/partials/**
|
||||
|
||||
5
.gitattributes
vendored
5
.gitattributes
vendored
@@ -13,7 +13,7 @@
|
||||
## Handle line endings automatically for files detected as
|
||||
## text and leave all files detected as binary untouched.
|
||||
## This will handle all files NOT defined below.
|
||||
* text=lf
|
||||
* text eol=lf
|
||||
|
||||
# Source code
|
||||
*.bash text eol=lf
|
||||
@@ -197,3 +197,6 @@ Procfile text eol=lf
|
||||
|
||||
# Ignore files (like .npmignore or .gitignore)
|
||||
*.*ignore text eol=lf
|
||||
|
||||
# Test Snapshots
|
||||
*.snap text eol=lf
|
||||
|
||||
1
.github/actions/install-app-node/action.yml
vendored
1
.github/actions/install-app-node/action.yml
vendored
@@ -27,6 +27,7 @@ runs:
|
||||
node-version: ${{ inputs.node-version }}
|
||||
- name: Install pnpm
|
||||
run: |
|
||||
npm install --global corepack@latest
|
||||
corepack enable
|
||||
corepack prepare
|
||||
shell: bash
|
||||
|
||||
1
.github/actions/install-app/action.yml
vendored
1
.github/actions/install-app/action.yml
vendored
@@ -20,6 +20,7 @@ runs:
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Install pnpm
|
||||
run: |
|
||||
npm install --global corepack@latest
|
||||
corepack enable
|
||||
corepack prepare
|
||||
shell: bash
|
||||
|
||||
1
.github/disabled/ci-windows.yml
vendored
1
.github/disabled/ci-windows.yml
vendored
@@ -25,6 +25,7 @@ jobs:
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Install pnpm
|
||||
run: |
|
||||
npm install --global corepack@latest
|
||||
corepack enable
|
||||
corepack install
|
||||
- name: set store
|
||||
|
||||
36
.github/workflows/changesets-pr.yml
vendored
Normal file
36
.github/workflows/changesets-pr.yml
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
name: Changesets Publish Test
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
concurrency:
|
||||
group: changeset-pr-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
version:
|
||||
if: github.event.pull_request.head.repo.fork == false
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
- name: Install dependencies with a custom registry
|
||||
uses: ./.github/actions/install-app
|
||||
- name: crowdin download
|
||||
env:
|
||||
CROWDIN_VERDACCIO_API_KEY: ${{ secrets.CROWDIN_VERDACCIO_API_KEY }}
|
||||
CONTEXT: production
|
||||
run: pnpm crowdin:download
|
||||
- name: build
|
||||
run: pnpm build
|
||||
- name: Docker test
|
||||
run: |
|
||||
docker run -d -it --rm --name verdaccio -p 4873:4873 verdaccio/verdaccio:6
|
||||
- name: login
|
||||
run: npx npm-cli-login -u test -p 1234 -e test@domain.test -r http://localhost:4873
|
||||
- name: Prepare
|
||||
# to allow local snapshot
|
||||
run: rm .changeset/pre.json
|
||||
- name: Create snapshot
|
||||
run: pnpm local:snapshots
|
||||
- name: Changeset version
|
||||
run: pnpm local:publish
|
||||
38
.github/workflows/changesets.yml
vendored
38
.github/workflows/changesets.yml
vendored
@@ -1,9 +1,7 @@
|
||||
name: Changesets
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
@@ -19,40 +17,16 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.ref == 'refs/heads/master' && github.repository == 'verdaccio/verdaccio'
|
||||
steps:
|
||||
- name: checkout code repository
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: setup node.js
|
||||
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }}
|
||||
|
||||
- name: Install pnpm
|
||||
run: |
|
||||
corepack enable
|
||||
corepack install
|
||||
|
||||
- name: setup pnpm config
|
||||
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
|
||||
- name: setup pnpm config registry
|
||||
run: pnpm config set registry https://registry.npmjs.org
|
||||
|
||||
- name: install dependencies
|
||||
run: pnpm install
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }}
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
- name: Install dependencies with a custom registry
|
||||
uses: ./.github/actions/install-app
|
||||
- name: crowdin download
|
||||
env:
|
||||
env:
|
||||
CROWDIN_VERDACCIO_API_KEY: ${{ secrets.CROWDIN_VERDACCIO_API_KEY }}
|
||||
CONTEXT: production
|
||||
run: pnpm crowdin:download
|
||||
run: pnpm crowdin:download
|
||||
- name: build
|
||||
run: pnpm build
|
||||
|
||||
- name: create versions
|
||||
uses: changesets/action@master
|
||||
with:
|
||||
|
||||
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@@ -91,9 +91,10 @@ jobs:
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Install pnpm
|
||||
run: |
|
||||
npm install --global corepack@latest
|
||||
corepack enable
|
||||
corepack install
|
||||
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
|
||||
- uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
|
||||
with:
|
||||
path: ~/.pnpm-store
|
||||
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
||||
|
||||
6
.github/workflows/codeql-analysis.yml
vendored
6
.github/workflows/codeql-analysis.yml
vendored
@@ -37,7 +37,7 @@ jobs:
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8
|
||||
uses: github/codeql-action/init@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
|
||||
with:
|
||||
config: |
|
||||
paths-ignore:
|
||||
@@ -50,7 +50,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@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8
|
||||
uses: github/codeql-action/autobuild@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
|
||||
|
||||
# ℹ️ Command-line programs to run using the OS shell.
|
||||
# 📚 https://git.io/JvXDl
|
||||
@@ -64,4 +64,4 @@ jobs:
|
||||
# make release
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8
|
||||
uses: github/codeql-action/analyze@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
|
||||
|
||||
2
.github/workflows/docker-publish.yml
vendored
2
.github/workflows/docker-publish.yml
vendored
@@ -25,7 +25,7 @@ jobs:
|
||||
if: github.repository == 'verdaccio/verdaccio'
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
- uses: docker/setup-qemu-action@53851d14592bedcffcf25ea515637cff71ef929a # v3.3.0
|
||||
- uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
|
||||
- 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
@@ -45,7 +45,7 @@ jobs:
|
||||
npm9,
|
||||
npm10
|
||||
]
|
||||
node: [18, 23]
|
||||
node: [22]
|
||||
name: ${{ matrix.pkg }}/ ubuntu-latest / ${{ matrix.node }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@@ -59,7 +59,7 @@ jobs:
|
||||
- name: Restore cache pnpm store
|
||||
uses: ./.github/actions/cache-packages
|
||||
- name: Test CLI
|
||||
run: NODE_ENV=production pnpm test --filter ...@verdaccio/e2e-cli-${{matrix.pkg}}
|
||||
run: cd e2e/cli/e2e-${{matrix.pkg}} && NODE_ENV=production pnpm test
|
||||
|
||||
e2e-cli-pnpm:
|
||||
needs: [prepare, build]
|
||||
@@ -72,7 +72,7 @@ jobs:
|
||||
pnpm9,
|
||||
pnpm10,
|
||||
]
|
||||
node: [18, 23]
|
||||
node: [22]
|
||||
name: ${{ matrix.pkg }}/ ubuntu-latest / ${{ matrix.node }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@@ -86,7 +86,7 @@ jobs:
|
||||
- name: Restore cache pnpm store
|
||||
uses: ./.github/actions/cache-packages
|
||||
- name: Test CLI
|
||||
run: NODE_ENV=production pnpm test --filter ...@verdaccio/e2e-cli-${{matrix.pkg}}
|
||||
run: cd e2e/cli/e2e-${{matrix.pkg}} && NODE_ENV=production pnpm test
|
||||
e2e-cli-yarn:
|
||||
needs: [prepare, build]
|
||||
strategy:
|
||||
@@ -99,7 +99,7 @@ jobs:
|
||||
yarn3,
|
||||
yarn4
|
||||
]
|
||||
node: [18, 23]
|
||||
node: [22]
|
||||
name: ${{ matrix.pkg }}/ ubuntu-latest / ${{ matrix.node }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@@ -113,5 +113,5 @@ jobs:
|
||||
- name: Restore cache pnpm store
|
||||
uses: ./.github/actions/cache-packages
|
||||
- name: Test CLI
|
||||
run: NODE_ENV=production pnpm test --filter ...@verdaccio/e2e-cli-${{matrix.pkg}}
|
||||
run: cd e2e/cli/e2e-${{matrix.pkg}} && NODE_ENV=production pnpm test
|
||||
|
||||
|
||||
2
.github/workflows/e2e-ui.yml
vendored
2
.github/workflows/e2e-ui.yml
vendored
@@ -26,7 +26,7 @@ jobs:
|
||||
node-version: 20
|
||||
- name: Test UI
|
||||
run: pnpm test:e2e:ui
|
||||
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
|
||||
- uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
|
||||
with:
|
||||
name: videos
|
||||
path: /home/runner/work/verdaccio/verdaccio/e2e/ui/cypress/videos
|
||||
|
||||
2
.github/workflows/shared-docker-publish.yml
vendored
2
.github/workflows/shared-docker-publish.yml
vendored
@@ -24,7 +24,7 @@ jobs:
|
||||
if: github.repository == 'verdaccio/verdaccio'
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
- uses: docker/setup-qemu-action@53851d14592bedcffcf25ea515637cff71ef929a # v3.3.0
|
||||
- uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
|
||||
- uses: docker/setup-buildx-action@v1
|
||||
with:
|
||||
driver-opts: network=host
|
||||
|
||||
36
.github/workflows/ui-components.yml
vendored
36
.github/workflows/ui-components.yml
vendored
@@ -1,40 +1,36 @@
|
||||
name: UI Components
|
||||
|
||||
on:
|
||||
# pull_request:
|
||||
# Disabled temporary
|
||||
# push:
|
||||
# branches:
|
||||
# - master
|
||||
workflow_dispatch:
|
||||
# schedule:
|
||||
# - cron: '0 0 * * *'
|
||||
|
||||
concurrency:
|
||||
group: ui-deploy-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions:
|
||||
contents: read # to fetch code (actions/checkout)
|
||||
|
||||
env:
|
||||
DEBUG: verdaccio*
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
permissions:
|
||||
contents: read # to fetch code (actions/checkout)
|
||||
deployments: write
|
||||
pull-requests: write # to comment on pull-requests
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'verdaccio/verdaccio'
|
||||
env:
|
||||
NODE_OPTIONS: --max_old_space_size=4096
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
|
||||
- name: Install dependencies with a custom registry
|
||||
uses: ./.github/actions/install-app
|
||||
|
||||
- name: Install pnpm
|
||||
run: |
|
||||
corepack enable
|
||||
corepack install
|
||||
- name: Install
|
||||
run: pnpm install
|
||||
- name: crowdin download
|
||||
env:
|
||||
CROWDIN_VERDACCIO_API_KEY: ${{ secrets.CROWDIN_VERDACCIO_API_KEY }}
|
||||
CONTEXT: production
|
||||
run: pnpm crowdin:download
|
||||
- name: Build modules
|
||||
run: pnpm build
|
||||
- name: Build storybook
|
||||
run: pnpm ui:storybook:build
|
||||
- name: Copy public content
|
||||
|
||||
2
.github/workflows/website.yml
vendored
2
.github/workflows/website.yml
vendored
@@ -39,7 +39,7 @@ jobs:
|
||||
- name: Build Translations percentage
|
||||
run: pnpm --filter @verdaccio/local-scripts build
|
||||
- name: Cache Docusaurus Build
|
||||
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
|
||||
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
|
||||
with:
|
||||
path: website/node_modules/.cache/webpack
|
||||
key: cache/webpack-${{github.ref}}-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||
|
||||
12
.github/workflows/x-e2e-jest-workflow.yml
vendored
12
.github/workflows/x-e2e-jest-workflow.yml
vendored
@@ -1,6 +1,6 @@
|
||||
on:
|
||||
workflow_call:
|
||||
|
||||
|
||||
jobs:
|
||||
yarn:
|
||||
name: 'yarn:jest example'
|
||||
@@ -132,7 +132,7 @@ jobs:
|
||||
|
||||
yarn add left-pad --registry http://localhost:4873 --verbose
|
||||
echo "const leftPad = require('left-pad'); it('should resolve a module', () => { expect(typeof leftPad).toBe('function');});" | tee module.test.js
|
||||
yarn jest module.test.js
|
||||
yarn jest module.test.js
|
||||
npm10:
|
||||
name: 'npm10:jest example'
|
||||
runs-on: ubuntu-latest
|
||||
@@ -145,7 +145,7 @@ jobs:
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
- name: 'install latest npm 10'
|
||||
run: npm i -g npm@next-10
|
||||
run: npm i -g npm@next-10
|
||||
- name: Install Dependencies
|
||||
run: yarn install
|
||||
- name: 'Run verdaccio in the background'
|
||||
@@ -165,7 +165,7 @@ jobs:
|
||||
|
||||
yarn add left-pad --registry http://localhost:4873 --verbose
|
||||
echo "const leftPad = require('left-pad'); it('should resolve a module', () => { expect(typeof leftPad).toBe('function');});" | tee module.test.js
|
||||
yarn jest module.test.js
|
||||
yarn jest module.test.js
|
||||
pnpm8:
|
||||
name: 'pnpm8:jest example'
|
||||
runs-on: ubuntu-latest
|
||||
@@ -178,7 +178,7 @@ jobs:
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
- name: 'install latest pnpm'
|
||||
run: npm i -g pnpm@latest-8
|
||||
run: npm i -g pnpm@10.5.2
|
||||
- name: Install Dependencies
|
||||
run: yarn install
|
||||
- name: 'Run verdaccio in the background'
|
||||
@@ -211,7 +211,7 @@ jobs:
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
- name: 'install latest pnpm'
|
||||
run: npm i -g pnpm@latest-9
|
||||
run: npm i -g pnpm@10.5.2
|
||||
- name: Install Dependencies
|
||||
run: yarn install
|
||||
- name: 'Run verdaccio in the background'
|
||||
|
||||
5
.gitignore
vendored
5
.gitignore
vendored
@@ -17,6 +17,10 @@ test-storage*
|
||||
# docker examples
|
||||
docker-examples/v5/reverse_proxy/nginx/relative_path/storage/*
|
||||
docker-examples/v5/**/storage/*
|
||||
docker-examples/v4/**/storage/*
|
||||
docker-examples/v6/**/storage/*
|
||||
docker-examples/v7/**/storage/*
|
||||
docker-examples/v8/**/storage/*
|
||||
|
||||
# jest
|
||||
reports/
|
||||
@@ -36,6 +40,7 @@ packages/standalone/dist/
|
||||
packages/plugins/ui-theme/static
|
||||
/packages/plugins/ui-theme/src/i18n/download_translations/
|
||||
!/packages/plugins/ui-theme/src/i18n/crowdin/ui.json
|
||||
/packages/core/**/download_translations/
|
||||
|
||||
## ui tests
|
||||
!/packages/ui-components/vitest/api/*.tgz
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
.cache/
|
||||
assets/**/*
|
||||
**/corrupted-package/package.json
|
||||
**/corrupted.json
|
||||
**/invalid.js
|
||||
|
||||
@@ -11,12 +11,13 @@ RUN apk --no-cache add openssl ca-certificates wget && \
|
||||
|
||||
WORKDIR /opt/verdaccio-build
|
||||
COPY . .
|
||||
RUN npm -g i pnpm@8.9.0 && \
|
||||
RUN npm -g i corepack && \
|
||||
corepack install && \
|
||||
pnpm config set registry $VERDACCIO_BUILD_REGISTRY && \
|
||||
pnpm install --frozen-lockfile --ignore-scripts && \
|
||||
rm -Rf test && \
|
||||
pnpm run build
|
||||
# FIXME: need to remove devDependencies from the build
|
||||
# FIXME: need to remove devDependencies from the build
|
||||
# NODE_ENV=production pnpm install --frozen-lockfile --ignore-scripts
|
||||
# RUN pnpm install --prod --ignore-scripts
|
||||
|
||||
|
||||
Binary file not shown.
@@ -6,6 +6,8 @@ api_token_env: CROWDIN_VERDACCIO_API_KEY
|
||||
preserve_hierarchy: true
|
||||
|
||||
files:
|
||||
- source: /packages/core/i18n/src/crowdin/*.json
|
||||
translation: '/packages/core/i18n/src/download_translations/%locale%/%original_file_name%'
|
||||
- source: /packages/plugins/ui-theme/src/i18n/crowdin/*.json
|
||||
translation: '/packages/plugins/ui-theme/src/i18n/download_translations/%locale%/%original_file_name%'
|
||||
- source: /website/i18n/en/**/*
|
||||
@@ -16,4 +18,3 @@ files:
|
||||
- source: /website/versioned_docs/**/*
|
||||
translation: /website/i18n/%locale%/docusaurus-plugin-content-docs/**/%original_file_name%
|
||||
ignore: [/website/versioned_docs/version-6.x/api/**/*]
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -4,8 +4,8 @@
|
||||
"version": "2.0.0-next-8.0",
|
||||
"main": "src/index.ts",
|
||||
"devDependencies": {
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/types": "workspace:13.0.0-next-8.3",
|
||||
"debug": "4.4.0",
|
||||
"fs-extra": "11.2.0",
|
||||
@@ -13,7 +13,7 @@
|
||||
"got": "11.8.6",
|
||||
"js-yaml": "4.1.0",
|
||||
"lodash": "4.17.21",
|
||||
"verdaccio": "workspace:8.0.0-next-8.8"
|
||||
"verdaccio": "workspace:8.0.0-next-8.12"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo no test",
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
"name": "@verdaccio/e2e-ui",
|
||||
"version": "2.0.0",
|
||||
"devDependencies": {
|
||||
"verdaccio": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.8",
|
||||
"verdaccio": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/test-helper": "workspace:4.0.0-next-8.3",
|
||||
"debug": "4.4.0",
|
||||
"cypress": "^13.6.0",
|
||||
|
||||
20
package.json
20
package.json
@@ -16,7 +16,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/cli": "7.26.4",
|
||||
"@babel/core": "7.26.7",
|
||||
"@babel/core": "7.26.9",
|
||||
"@babel/eslint-parser": "7.25.9",
|
||||
"@babel/node": "7.26.0",
|
||||
"@babel/plugin-proposal-decorators": "7.25.9",
|
||||
@@ -33,14 +33,14 @@
|
||||
"@babel/plugin-transform-numeric-separator": "7.25.9",
|
||||
"@babel/plugin-transform-object-rest-spread": "7.25.9",
|
||||
"@babel/plugin-transform-optional-chaining": "7.25.9",
|
||||
"@babel/plugin-transform-runtime": "7.25.9",
|
||||
"@babel/preset-env": "7.26.7",
|
||||
"@babel/plugin-transform-runtime": "7.26.9",
|
||||
"@babel/preset-env": "7.26.9",
|
||||
"@babel/preset-react": "7.26.3",
|
||||
"@babel/preset-typescript": "7.24.7",
|
||||
"@babel/register": "7.25.9",
|
||||
"@babel/runtime": "7.26.7",
|
||||
"@babel/runtime": "7.26.9",
|
||||
"@changesets/changelog-github": "0.5.0",
|
||||
"@changesets/cli": "2.27.11",
|
||||
"@changesets/cli": "2.27.12",
|
||||
"@changesets/get-dependents-graph": "2.1.2",
|
||||
"@crowdin/cli": "4.4.1",
|
||||
"@dianmora/contributors": "5.0.0",
|
||||
@@ -58,10 +58,10 @@
|
||||
"@types/express": "4.17.21",
|
||||
"@types/express-serve-static-core": "4.19.5",
|
||||
"@types/http-errors": "2.0.4",
|
||||
"@types/jest": "29.5.14",
|
||||
"@types/jsonwebtoken": "9.0.6",
|
||||
"@types/lodash": "4.17.7",
|
||||
"@types/mime": "3.0.4",
|
||||
"@types/jest": "29.5.14",
|
||||
"@types/minimatch": "5.1.2",
|
||||
"@types/node": "20.14.12",
|
||||
"@types/node-fetch": "2.6.11",
|
||||
@@ -84,8 +84,8 @@
|
||||
"@types/yeoman-test": "4.0.6",
|
||||
"@typescript-eslint/eslint-plugin": "6.21.0",
|
||||
"@typescript-eslint/parser": "6.21.0",
|
||||
"@verdaccio/local-scripts": "workspace:*",
|
||||
"@verdaccio/eslint-config": "workspace:*",
|
||||
"@verdaccio/local-scripts": "workspace:*",
|
||||
"@verdaccio/types": "workspace:*",
|
||||
"@verdaccio/ui-theme": "workspace:*",
|
||||
"@vitest/coverage-v8": "3.0.4",
|
||||
@@ -112,11 +112,11 @@
|
||||
"react-dom": "18.3.1",
|
||||
"rimraf": "5.0.10",
|
||||
"selfsigned": "2.4.1",
|
||||
"semver": "^7.6.3",
|
||||
"supertest": "7.0.0",
|
||||
"ts-node": "10.9.2",
|
||||
"typescript": "5.3.3",
|
||||
"undici-types": "5.28.2",
|
||||
"semver": "^7.6.3",
|
||||
"undici-types": "5.28.4",
|
||||
"update-ts-references": "3.6.0",
|
||||
"verdaccio-audit": "workspace:*",
|
||||
"verdaccio-auth-memory": "workspace:*",
|
||||
@@ -176,5 +176,5 @@
|
||||
"*.{js,jsx,ts,tsx,json,yml,yaml,md}": "prettier --write",
|
||||
"*.{js,jsx,ts,tsx}": "eslint --cache --fix"
|
||||
},
|
||||
"packageManager": "pnpm@8.14.0+sha256.9cebf61abd83f68177b29484da72da9751390eaad46dfc3072d266bfbb1ba7bf"
|
||||
"packageManager": "pnpm@10.5.2"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,61 @@
|
||||
# @verdaccio/api
|
||||
|
||||
## 8.1.0-next-8.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [95ac124]
|
||||
- @verdaccio/core@8.0.0-next-8.12
|
||||
- @verdaccio/store@8.0.0-next-8.12
|
||||
- @verdaccio/auth@8.0.0-next-8.12
|
||||
- @verdaccio/config@8.0.0-next-8.12
|
||||
- @verdaccio/middleware@8.0.0-next-8.12
|
||||
- @verdaccio/utils@8.1.0-next-8.12
|
||||
- @verdaccio/logger@8.0.0-next-8.12
|
||||
|
||||
## 8.1.0-next-8.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [83dbde5]
|
||||
- Updated dependencies [4110873]
|
||||
- Updated dependencies [85e0e13]
|
||||
- Updated dependencies [7e48ac6]
|
||||
- Updated dependencies [66bc284]
|
||||
- @verdaccio/store@8.0.0-next-8.11
|
||||
- @verdaccio/middleware@8.0.0-next-8.11
|
||||
- @verdaccio/utils@8.1.0-next-8.11
|
||||
- @verdaccio/auth@8.0.0-next-8.11
|
||||
- @verdaccio/config@8.0.0-next-8.11
|
||||
- @verdaccio/core@8.0.0-next-8.11
|
||||
- @verdaccio/logger@8.0.0-next-8.11
|
||||
|
||||
## 8.1.0-next-8.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [bf0e09a]
|
||||
- @verdaccio/config@8.0.0-next-8.10
|
||||
- @verdaccio/auth@8.0.0-next-8.10
|
||||
- @verdaccio/middleware@8.0.0-next-8.10
|
||||
- @verdaccio/store@8.0.0-next-8.10
|
||||
- @verdaccio/core@8.0.0-next-8.10
|
||||
- @verdaccio/utils@8.1.0-next-8.10
|
||||
- @verdaccio/logger@8.0.0-next-8.10
|
||||
|
||||
## 8.1.0-next-8.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [96e0011]
|
||||
- @verdaccio/middleware@8.0.0-next-8.9
|
||||
- @verdaccio/auth@8.0.0-next-8.9
|
||||
- @verdaccio/core@8.0.0-next-8.9
|
||||
- @verdaccio/config@8.0.0-next-8.9
|
||||
- @verdaccio/store@8.0.0-next-8.9
|
||||
- @verdaccio/utils@8.1.0-next-8.9
|
||||
- @verdaccio/logger@8.0.0-next-8.9
|
||||
|
||||
## 8.1.0-next-8.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/api",
|
||||
"version": "8.1.0-next-8.8",
|
||||
"version": "8.1.0-next-8.12",
|
||||
"description": "loaders logic",
|
||||
"main": "./build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -38,13 +38,13 @@
|
||||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@verdaccio/auth": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/middleware": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/store": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/utils": "workspace:8.1.0-next-8.8",
|
||||
"@verdaccio/auth": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/middleware": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/store": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/utils": "workspace:8.1.0-next-8.12",
|
||||
"abortcontroller-polyfill": "1.7.8",
|
||||
"body-parser": "1.20.3",
|
||||
"cookies": "0.9.1",
|
||||
@@ -52,7 +52,7 @@
|
||||
"express": "4.21.2",
|
||||
"lodash": "4.17.21",
|
||||
"mime": "2.6.0",
|
||||
"semver": "7.6.3"
|
||||
"semver": "7.7.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/test-helper": "workspace:4.0.0-next-8.3",
|
||||
|
||||
@@ -12,7 +12,7 @@ import {
|
||||
errorUtils,
|
||||
validatioUtils,
|
||||
} from '@verdaccio/core';
|
||||
import { rateLimit } from '@verdaccio/middleware';
|
||||
import { USER_API_ENDPOINTS, rateLimit } from '@verdaccio/middleware';
|
||||
import { Logger } from '@verdaccio/types';
|
||||
import { Config, RemoteUser } from '@verdaccio/types';
|
||||
import { getAuthenticatedMessage, mask } from '@verdaccio/utils';
|
||||
@@ -23,7 +23,7 @@ const debug = buildDebug('verdaccio:api:user');
|
||||
|
||||
export default function (route: Router, auth: Auth, config: Config, logger: Logger): void {
|
||||
route.get(
|
||||
'/-/user/:org_couchdb_user',
|
||||
USER_API_ENDPOINTS.get_user,
|
||||
rateLimit(config?.userRateLimit),
|
||||
function (req: $RequestExtend, res: Response, next: $NextFunctionVer): void {
|
||||
debug('verifying user');
|
||||
@@ -70,7 +70,7 @@ export default function (route: Router, auth: Auth, config: Config, logger: Logg
|
||||
* @param {Config} config
|
||||
*/
|
||||
route.put(
|
||||
'/-/user/:org_couchdb_user/:_rev?/:revision?',
|
||||
USER_API_ENDPOINTS.add_user,
|
||||
rateLimit(config?.userRateLimit),
|
||||
function (req: $RequestExtend, res: Response, next: $NextFunctionVer): void {
|
||||
const { name, password } = req.body;
|
||||
@@ -168,7 +168,7 @@ export default function (route: Router, auth: Auth, config: Config, logger: Logg
|
||||
);
|
||||
|
||||
route.delete(
|
||||
'/-/user/token/*',
|
||||
USER_API_ENDPOINTS.user_token,
|
||||
function (req: $RequestExtend, res: Response, next: $NextFunctionVer): void {
|
||||
res.status(HTTP_STATUS.OK);
|
||||
next({
|
||||
|
||||
@@ -1,5 +1,52 @@
|
||||
# @verdaccio/auth
|
||||
|
||||
## 8.0.0-next-8.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [95ac124]
|
||||
- @verdaccio/core@8.0.0-next-8.12
|
||||
- @verdaccio/config@8.0.0-next-8.12
|
||||
- @verdaccio/loaders@8.0.0-next-8.4
|
||||
- verdaccio-htpasswd@13.0.0-next-8.12
|
||||
- @verdaccio/utils@8.1.0-next-8.12
|
||||
- @verdaccio/signature@8.0.0-next-8.4
|
||||
|
||||
## 8.0.0-next-8.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [85e0e13]
|
||||
- @verdaccio/utils@8.1.0-next-8.11
|
||||
- @verdaccio/config@8.0.0-next-8.11
|
||||
- @verdaccio/loaders@8.0.0-next-8.4
|
||||
- verdaccio-htpasswd@13.0.0-next-8.11
|
||||
- @verdaccio/signature@8.0.0-next-8.3
|
||||
- @verdaccio/core@8.0.0-next-8.11
|
||||
|
||||
## 8.0.0-next-8.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [bf0e09a]
|
||||
- @verdaccio/config@8.0.0-next-8.10
|
||||
- @verdaccio/loaders@8.0.0-next-8.4
|
||||
- verdaccio-htpasswd@13.0.0-next-8.10
|
||||
- @verdaccio/signature@8.0.0-next-8.2
|
||||
- @verdaccio/core@8.0.0-next-8.10
|
||||
- @verdaccio/utils@8.1.0-next-8.10
|
||||
|
||||
## 8.0.0-next-8.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@8.0.0-next-8.9
|
||||
- @verdaccio/config@8.0.0-next-8.9
|
||||
- @verdaccio/loaders@8.0.0-next-8.4
|
||||
- verdaccio-htpasswd@13.0.0-next-8.9
|
||||
- @verdaccio/utils@8.1.0-next-8.9
|
||||
- @verdaccio/signature@8.0.0-next-8.1
|
||||
|
||||
## 8.0.0-next-8.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/auth",
|
||||
"version": "8.0.0-next-8.8",
|
||||
"version": "8.0.0-next-8.12",
|
||||
"description": "logger",
|
||||
"main": "./build/index.js",
|
||||
"types": "./build/index.d.ts",
|
||||
@@ -38,19 +38,19 @@
|
||||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/loaders": "workspace:8.0.0-next-8.4",
|
||||
"@verdaccio/signature": "workspace:8.0.0-next-8.1",
|
||||
"@verdaccio/utils": "workspace:8.1.0-next-8.8",
|
||||
"@verdaccio/signature": "workspace:8.0.0-next-8.4",
|
||||
"@verdaccio/utils": "workspace:8.1.0-next-8.12",
|
||||
"debug": "4.4.0",
|
||||
"lodash": "4.17.21",
|
||||
"verdaccio-htpasswd": "workspace:13.0.0-next-8.8"
|
||||
"verdaccio-htpasswd": "workspace:13.0.0-next-8.12"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/middleware": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/middleware": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/types": "workspace:13.0.0-next-8.3",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.12",
|
||||
"express": "4.21.2",
|
||||
"supertest": "7.0.0"
|
||||
},
|
||||
|
||||
@@ -1,5 +1,43 @@
|
||||
# @verdaccio/cli
|
||||
|
||||
## 8.0.0-next-8.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [95ac124]
|
||||
- @verdaccio/core@8.0.0-next-8.12
|
||||
- @verdaccio/config@8.0.0-next-8.12
|
||||
- @verdaccio/node-api@8.0.0-next-8.12
|
||||
- @verdaccio/logger@8.0.0-next-8.12
|
||||
|
||||
## 8.0.0-next-8.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/config@8.0.0-next-8.11
|
||||
- @verdaccio/node-api@8.0.0-next-8.11
|
||||
- @verdaccio/core@8.0.0-next-8.11
|
||||
- @verdaccio/logger@8.0.0-next-8.11
|
||||
|
||||
## 8.0.0-next-8.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [bf0e09a]
|
||||
- @verdaccio/config@8.0.0-next-8.10
|
||||
- @verdaccio/node-api@8.0.0-next-8.10
|
||||
- @verdaccio/core@8.0.0-next-8.10
|
||||
- @verdaccio/logger@8.0.0-next-8.10
|
||||
|
||||
## 8.0.0-next-8.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/node-api@8.0.0-next-8.9
|
||||
- @verdaccio/core@8.0.0-next-8.9
|
||||
- @verdaccio/config@8.0.0-next-8.9
|
||||
- @verdaccio/logger@8.0.0-next-8.9
|
||||
|
||||
## 8.0.0-next-8.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/cli",
|
||||
"version": "8.0.0-next-8.8",
|
||||
"version": "8.0.0-next-8.12",
|
||||
"author": {
|
||||
"name": "Juan Picado",
|
||||
"email": "juanpicado19@gmail.com"
|
||||
@@ -43,14 +43,14 @@
|
||||
"start": "ts-node src/index.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/node-api": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/node-api": "workspace:8.0.0-next-8.12",
|
||||
"clipanion": "4.0.0-rc.4",
|
||||
"envinfo": "7.14.0",
|
||||
"kleur": "4.1.5",
|
||||
"semver": "7.6.3"
|
||||
"semver": "7.7.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"ts-node": "10.9.2"
|
||||
|
||||
@@ -1,5 +1,36 @@
|
||||
# @verdaccio/config
|
||||
|
||||
## 8.0.0-next-8.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [95ac124]
|
||||
- @verdaccio/core@8.0.0-next-8.12
|
||||
- @verdaccio/utils@8.1.0-next-8.12
|
||||
|
||||
## 8.0.0-next-8.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [85e0e13]
|
||||
- @verdaccio/utils@8.1.0-next-8.11
|
||||
- @verdaccio/core@8.0.0-next-8.11
|
||||
|
||||
## 8.0.0-next-8.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- bf0e09a: fix: runtime dependency missing as explicit dependency
|
||||
- @verdaccio/core@8.0.0-next-8.10
|
||||
- @verdaccio/utils@8.1.0-next-8.10
|
||||
|
||||
## 8.0.0-next-8.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@8.0.0-next-8.9
|
||||
- @verdaccio/utils@8.1.0-next-8.9
|
||||
|
||||
## 8.0.0-next-8.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/config",
|
||||
"version": "8.0.0-next-8.8",
|
||||
"version": "8.0.0-next-8.12",
|
||||
"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:8.0.0-next-8.8",
|
||||
"@verdaccio/utils": "workspace:8.1.0-next-8.8",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/utils": "workspace:8.1.0-next-8.12",
|
||||
"debug": "4.4.0",
|
||||
"js-yaml": "4.1.0",
|
||||
"lodash": "4.17.21",
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
# @verdaccio/core
|
||||
|
||||
## 8.0.0-next-8.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 95ac124: chore: add package parameter to storage plugin interface
|
||||
|
||||
## 8.0.0-next-8.11
|
||||
|
||||
## 8.0.0-next-8.10
|
||||
|
||||
## 8.0.0-next-8.9
|
||||
|
||||
## 8.0.0-next-8.8
|
||||
|
||||
## 8.0.0-next-8.7
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/core",
|
||||
"version": "8.0.0-next-8.8",
|
||||
"version": "8.0.0-next-8.12",
|
||||
"description": "core utilities",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -34,11 +34,11 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"ajv": "8.17.1",
|
||||
"core-js": "3.37.1",
|
||||
"core-js": "3.40.0",
|
||||
"http-errors": "2.0.0",
|
||||
"http-status-codes": "2.3.0",
|
||||
"process-warning": "1.0.0",
|
||||
"semver": "7.6.3"
|
||||
"semver": "7.7.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "workspace:13.0.0-next-8.3",
|
||||
|
||||
@@ -51,7 +51,7 @@ export class Plugin<PluginConfig> {
|
||||
export interface StorageHandler {
|
||||
logger: Logger;
|
||||
deletePackage(fileName: string): Promise<void>;
|
||||
removePackage(): Promise<void>;
|
||||
removePackage(packageName: string): Promise<void>;
|
||||
// next packages migration (this list is meant to replace the callback parent functions)
|
||||
updatePackage(
|
||||
packageName: string,
|
||||
@@ -65,7 +65,7 @@ export interface StorageHandler {
|
||||
// verify if tarball exist in the storage
|
||||
hasTarball(fileName: string): Promise<boolean>;
|
||||
// verify if package exist in the storage
|
||||
hasPackage(): Promise<boolean>;
|
||||
hasPackage(packageName: string): Promise<boolean>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
14
packages/core/i18n/.babelrc
Normal file
14
packages/core/i18n/.babelrc
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"extends": "../../../.babelrc",
|
||||
"presets": [
|
||||
[
|
||||
"@babel/env",
|
||||
{
|
||||
"targets": {
|
||||
"node": 18
|
||||
}
|
||||
}
|
||||
],
|
||||
"@babel/typescript"
|
||||
]
|
||||
}
|
||||
6
packages/core/i18n/.eslintignore
Normal file
6
packages/core/i18n/.eslintignore
Normal file
@@ -0,0 +1,6 @@
|
||||
node_modules
|
||||
coverage/
|
||||
lib/
|
||||
.nyc_output
|
||||
tests-report/
|
||||
build/
|
||||
5
packages/core/i18n/.eslintrc.json
Normal file
5
packages/core/i18n/.eslintrc.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"rules": {
|
||||
"@typescript-eslint/no-use-before-define": "off"
|
||||
}
|
||||
}
|
||||
1
packages/core/i18n/.npmignore
Normal file
1
packages/core/i18n/.npmignore
Normal file
@@ -0,0 +1 @@
|
||||
src/*
|
||||
7
packages/core/i18n/CHANGELOG.md
Normal file
7
packages/core/i18n/CHANGELOG.md
Normal file
@@ -0,0 +1,7 @@
|
||||
# @verdaccio/ui-i18n
|
||||
|
||||
## 8.0.0-next-8.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- b6e9f46: fix: ignore duplicted files
|
||||
47
packages/core/i18n/package.json
Normal file
47
packages/core/i18n/package.json
Normal file
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"name": "@verdaccio/ui-i18n",
|
||||
"version": "8.0.0-next-8.11",
|
||||
"description": "ui i18n",
|
||||
"keywords": [
|
||||
"private",
|
||||
"package",
|
||||
"repository",
|
||||
"registry",
|
||||
"enterprise",
|
||||
"modules",
|
||||
"proxy",
|
||||
"server",
|
||||
"verdaccio"
|
||||
],
|
||||
"main": "./build/index.js",
|
||||
"types": "./build/index.d.ts",
|
||||
"author": "Juan Picado <juanpicado19@gmail.com>",
|
||||
"license": "MIT",
|
||||
"homepage": "https://verdaccio.org",
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
},
|
||||
"repository": {
|
||||
"type": "https",
|
||||
"url": "https://github.com/verdaccio/verdaccio",
|
||||
"directory": "packages/core/url-resolver"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/verdaccio/verdaccio/issues"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "rimraf ./build",
|
||||
"test": "echo \"Error: no test specified\"",
|
||||
"type-check": "tsc --noEmit -p tsconfig.build.json",
|
||||
"build:types": "tsc --emitDeclarationOnly -p tsconfig.build.json",
|
||||
"build:js": "babel src/ --out-dir build/ --copy-files --extensions \".ts,.tsx\" --source-maps",
|
||||
"build": "pnpm run build:js && pnpm run build:types"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/verdaccio"
|
||||
}
|
||||
}
|
||||
1
packages/core/i18n/src/index.ts
Normal file
1
packages/core/i18n/src/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export { loadTranslationFile as default } from './loadTranslationFile';
|
||||
9
packages/core/i18n/tsconfig.build.json
Normal file
9
packages/core/i18n/tsconfig.build.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"rootDir": "./src",
|
||||
"outDir": "./build"
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
"exclude": ["src/**/*.test.ts"]
|
||||
}
|
||||
9
packages/core/i18n/tsconfig.json
Normal file
9
packages/core/i18n/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"extends": "../../../tsconfig.reference.json",
|
||||
"compilerOptions": {
|
||||
"rootDir": "./src",
|
||||
"outDir": "./build"
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
"exclude": ["src/**/*.test.ts"]
|
||||
}
|
||||
@@ -1,5 +1,39 @@
|
||||
# Change Log
|
||||
|
||||
## 13.0.0-next-8.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [95ac124]
|
||||
- @verdaccio/core@8.0.0-next-8.12
|
||||
- @verdaccio/url@13.0.0-next-8.12
|
||||
- @verdaccio/utils@8.1.0-next-8.12
|
||||
|
||||
## 13.0.0-next-8.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [85e0e13]
|
||||
- @verdaccio/utils@8.1.0-next-8.11
|
||||
- @verdaccio/core@8.0.0-next-8.11
|
||||
- @verdaccio/url@13.0.0-next-8.11
|
||||
|
||||
## 13.0.0-next-8.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@8.0.0-next-8.10
|
||||
- @verdaccio/url@13.0.0-next-8.10
|
||||
- @verdaccio/utils@8.1.0-next-8.10
|
||||
|
||||
## 13.0.0-next-8.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@8.0.0-next-8.9
|
||||
- @verdaccio/url@13.0.0-next-8.9
|
||||
- @verdaccio/utils@8.1.0-next-8.9
|
||||
|
||||
## 13.0.0-next-8.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/tarball",
|
||||
"version": "13.0.0-next-8.8",
|
||||
"version": "13.0.0-next-8.12",
|
||||
"description": "tarball utilities resolver",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -33,9 +33,9 @@
|
||||
"access": "public"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/url": "workspace:13.0.0-next-8.8",
|
||||
"@verdaccio/utils": "workspace:8.1.0-next-8.8",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/url": "workspace:13.0.0-next-8.12",
|
||||
"@verdaccio/utils": "workspace:8.1.0-next-8.12",
|
||||
"debug": "4.4.0",
|
||||
"gunzip-maybe": "^1.4.2",
|
||||
"lodash": "4.17.21",
|
||||
|
||||
@@ -1,5 +1,30 @@
|
||||
# Change Log
|
||||
|
||||
## 13.0.0-next-8.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [95ac124]
|
||||
- @verdaccio/core@8.0.0-next-8.12
|
||||
|
||||
## 13.0.0-next-8.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@8.0.0-next-8.11
|
||||
|
||||
## 13.0.0-next-8.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@8.0.0-next-8.10
|
||||
|
||||
## 13.0.0-next-8.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@8.0.0-next-8.9
|
||||
|
||||
## 13.0.0-next-8.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/url",
|
||||
"version": "13.0.0-next-8.8",
|
||||
"version": "13.0.0-next-8.12",
|
||||
"description": "url utilities resolver",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -33,7 +33,7 @@
|
||||
"access": "public"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.12",
|
||||
"debug": "4.4.0",
|
||||
"lodash": "4.17.21",
|
||||
"validator": "13.12.0"
|
||||
|
||||
@@ -1,5 +1,34 @@
|
||||
# @verdaccio/hooks
|
||||
|
||||
## 8.0.0-next-8.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [95ac124]
|
||||
- @verdaccio/core@8.0.0-next-8.12
|
||||
- @verdaccio/logger@8.0.0-next-8.12
|
||||
|
||||
## 8.0.0-next-8.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@8.0.0-next-8.11
|
||||
- @verdaccio/logger@8.0.0-next-8.11
|
||||
|
||||
## 8.0.0-next-8.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@8.0.0-next-8.10
|
||||
- @verdaccio/logger@8.0.0-next-8.10
|
||||
|
||||
## 8.0.0-next-8.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@8.0.0-next-8.9
|
||||
- @verdaccio/logger@8.0.0-next-8.9
|
||||
|
||||
## 8.0.0-next-8.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/hooks",
|
||||
"version": "8.0.0-next-8.8",
|
||||
"version": "8.0.0-next-8.12",
|
||||
"description": "loaders logic",
|
||||
"main": "./build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -29,16 +29,16 @@
|
||||
"node": ">=18"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.8",
|
||||
"core-js": "3.37.1",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.12",
|
||||
"core-js": "3.40.0",
|
||||
"debug": "4.4.0",
|
||||
"got-cjs": "12.5.4",
|
||||
"handlebars": "4.7.8"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/auth": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/auth": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/types": "workspace:13.0.0-next-8.3"
|
||||
},
|
||||
"scripts": {
|
||||
|
||||
@@ -17,13 +17,13 @@
|
||||
"lodash": "4.17.21"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/types": "workspace:13.0.0-next-8.3",
|
||||
"@verdaccio-scope/verdaccio-auth-foo": "0.0.2",
|
||||
"verdaccio-auth-memory": "workspace:*",
|
||||
"customprefix-auth": "2.0.0"
|
||||
"customprefix-auth": "workspace:2.0.0"
|
||||
},
|
||||
"homepage": "https://verdaccio.org",
|
||||
"keywords": [
|
||||
|
||||
@@ -1,5 +1,30 @@
|
||||
# @verdaccio/logger-commons
|
||||
|
||||
## 8.0.0-next-8.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [95ac124]
|
||||
- @verdaccio/core@8.0.0-next-8.12
|
||||
|
||||
## 8.0.0-next-8.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@8.0.0-next-8.11
|
||||
|
||||
## 8.0.0-next-8.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@8.0.0-next-8.10
|
||||
|
||||
## 8.0.0-next-8.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@8.0.0-next-8.9
|
||||
|
||||
## 8.0.0-next-8.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/logger-commons",
|
||||
"version": "8.0.0-next-8.8",
|
||||
"version": "8.0.0-next-8.12",
|
||||
"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:8.0.0-next-8.8",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/logger-prettify": "workspace:8.0.0-next-8.1",
|
||||
"debug": "4.4.0",
|
||||
"colorette": "2.0.20"
|
||||
|
||||
@@ -1,5 +1,29 @@
|
||||
# @verdaccio/logger
|
||||
|
||||
## 8.0.0-next-8.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/logger-commons@8.0.0-next-8.12
|
||||
|
||||
## 8.0.0-next-8.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/logger-commons@8.0.0-next-8.11
|
||||
|
||||
## 8.0.0-next-8.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/logger-commons@8.0.0-next-8.10
|
||||
|
||||
## 8.0.0-next-8.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/logger-commons@8.0.0-next-8.9
|
||||
|
||||
## 8.0.0-next-8.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/logger",
|
||||
"version": "8.0.0-next-8.8",
|
||||
"version": "8.0.0-next-8.12",
|
||||
"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:8.0.0-next-8.8",
|
||||
"@verdaccio/logger-commons": "workspace:8.0.0-next-8.12",
|
||||
"pino": "9.6.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -1,5 +1,47 @@
|
||||
# @verdaccio/middleware
|
||||
|
||||
## 8.0.0-next-8.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [95ac124]
|
||||
- @verdaccio/core@8.0.0-next-8.12
|
||||
- @verdaccio/config@8.0.0-next-8.12
|
||||
- @verdaccio/url@13.0.0-next-8.12
|
||||
- @verdaccio/utils@8.1.0-next-8.12
|
||||
|
||||
## 8.0.0-next-8.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 4110873: chore(middleware): improve loop detection
|
||||
- 66bc284: chore: middleware package update
|
||||
- Updated dependencies [85e0e13]
|
||||
- @verdaccio/utils@8.1.0-next-8.11
|
||||
- @verdaccio/config@8.0.0-next-8.11
|
||||
- @verdaccio/core@8.0.0-next-8.11
|
||||
- @verdaccio/url@13.0.0-next-8.11
|
||||
|
||||
## 8.0.0-next-8.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [bf0e09a]
|
||||
- @verdaccio/config@8.0.0-next-8.10
|
||||
- @verdaccio/core@8.0.0-next-8.10
|
||||
- @verdaccio/url@13.0.0-next-8.10
|
||||
- @verdaccio/utils@8.1.0-next-8.10
|
||||
|
||||
## 8.0.0-next-8.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 96e0011: chore: export and constant on middleware
|
||||
- @verdaccio/core@8.0.0-next-8.9
|
||||
- @verdaccio/config@8.0.0-next-8.9
|
||||
- @verdaccio/url@13.0.0-next-8.9
|
||||
- @verdaccio/utils@8.1.0-next-8.9
|
||||
|
||||
## 8.0.0-next-8.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/middleware",
|
||||
"version": "8.0.0-next-8.8",
|
||||
"version": "8.0.0-next-8.12",
|
||||
"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/config": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/url": "workspace:13.0.0-next-8.8",
|
||||
"@verdaccio/utils": "workspace:8.1.0-next-8.8",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/url": "workspace:13.0.0-next-8.12",
|
||||
"@verdaccio/utils": "workspace:8.1.0-next-8.12",
|
||||
"debug": "4.4.0",
|
||||
"express": "4.21.2",
|
||||
"express-rate-limit": "5.5.1",
|
||||
@@ -54,7 +54,7 @@
|
||||
"url": "https://opencollective.com/verdaccio"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.12",
|
||||
"body-parser": "1.20.3",
|
||||
"supertest": "7.0.0",
|
||||
"jsdom": "25.0.1"
|
||||
|
||||
@@ -14,13 +14,24 @@ export function antiLoop(config: Config) {
|
||||
const arr = req.get('via')?.split(',');
|
||||
if (Array.isArray(arr)) {
|
||||
for (let i = 0; i < arr.length; i++) {
|
||||
// the "via" header must contains an specific headers, this has to be on sync
|
||||
// the "via" header must contain a specific value, this has to be in sync
|
||||
// with the proxy request
|
||||
// match eg: Server 1 or Server 2
|
||||
// TODO: improve this RegEX
|
||||
const m = arr[i].trim().match(/\s*(\S+)\s+(\S+)/);
|
||||
if (m && m[2] === config.server_id) {
|
||||
return next(errorUtils.getCode(HTTP_STATUS.LOOP_DETECTED, 'loop detected'));
|
||||
|
||||
// RFC 7230: Via = 1*( "," OWS Via-value )
|
||||
// Via-value = received-protocol RWS received-by [ RWS comment ]
|
||||
// received-protocol = [ protocol-name "/" ] protocol-version
|
||||
// received-by = ( uri-host [ ":" port ] ) / pseudonym
|
||||
|
||||
// Split the trimmed header value into parts
|
||||
const parts = arr[i].trim().split(/\s+/);
|
||||
// Check if we have at least protocol/version and received-by parts
|
||||
if (parts.length >= 2) {
|
||||
// Get the received-by value (server id), removing any comment
|
||||
const serverId = parts[1].split('(')[0].trim();
|
||||
if (serverId === config.server_id) {
|
||||
return next(errorUtils.getCode(HTTP_STATUS.LOOP_DETECTED, 'loop detected'));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ import { isURLhasValidProtocol } from '@verdaccio/url';
|
||||
|
||||
import { setSecurityWebHeaders } from './security';
|
||||
import renderHTML from './utils/renderHTML';
|
||||
import { WebUrlsNamespace } from './web-urls';
|
||||
|
||||
const debug = buildDebug('verdaccio:web:render');
|
||||
|
||||
@@ -35,7 +36,7 @@ export function renderWebMiddleware(config, tokenMiddleware, pluginOptions) {
|
||||
router.use(setSecurityWebHeaders);
|
||||
|
||||
// any match within the static is routed to the file system
|
||||
router.get('/-/static/*', function (req, res, next) {
|
||||
router.get(WebUrlsNamespace.static + '*', function (req, res, next) {
|
||||
const filename = req.params[0];
|
||||
let file = `${staticPath}/${filename}`;
|
||||
if (filename === 'favicon.ico' && config?.web?.favicon) {
|
||||
@@ -64,7 +65,7 @@ export function renderWebMiddleware(config, tokenMiddleware, pluginOptions) {
|
||||
) {
|
||||
// Note: `path.join` will break on Windows, because it transforms `/` to `\`
|
||||
// Use POSIX version `path.posix.join` instead.
|
||||
logo = path.posix.join('/-/static/', path.basename(logo));
|
||||
logo = path.posix.join(WebUrlsNamespace.static, path.basename(logo));
|
||||
router.get(logo, function (_req, res, next) {
|
||||
// @ts-ignore
|
||||
debug('serve custom logo web:%s - local:%s', logo, absoluteLocalFile);
|
||||
@@ -92,12 +93,12 @@ export function renderWebMiddleware(config, tokenMiddleware, pluginOptions) {
|
||||
config.web.logoDark = logoDark;
|
||||
}
|
||||
|
||||
router.get('/-/web/:section/*', function (req, res) {
|
||||
router.get(WebUrlsNamespace.web + ':section/*', function (req, res) {
|
||||
renderHTML(config, manifest, manifestFiles, req, res);
|
||||
debug('render html section');
|
||||
});
|
||||
|
||||
router.get('/', function (req, res) {
|
||||
router.get(WebUrlsNamespace.root, function (req, res) {
|
||||
renderHTML(config, manifest, manifestFiles, req, res);
|
||||
debug('render root');
|
||||
});
|
||||
|
||||
@@ -2,14 +2,15 @@ import express from 'express';
|
||||
|
||||
import { renderWebMiddleware } from './render-web';
|
||||
import { webAPIMiddleware } from './web-api';
|
||||
import { WebUrlsNamespace } from './web-urls';
|
||||
|
||||
export default (config, middlewares, pluginOptions): any => {
|
||||
// eslint-disable-next-line new-cap
|
||||
const router = express.Router();
|
||||
const { tokenMiddleware, webEndpointsApi } = middlewares;
|
||||
// render web
|
||||
router.use('/', renderWebMiddleware(config, tokenMiddleware, pluginOptions));
|
||||
// web endpoints, search, packages, etc
|
||||
router.use('/-/verdaccio/', webAPIMiddleware(tokenMiddleware, webEndpointsApi));
|
||||
router.use(WebUrlsNamespace.root, renderWebMiddleware(config, tokenMiddleware, pluginOptions));
|
||||
// web endpoints: search, packages, readme, sidebar, etc
|
||||
router.use(WebUrlsNamespace.endpoints, webAPIMiddleware(tokenMiddleware, webEndpointsApi));
|
||||
return router;
|
||||
};
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
/**
|
||||
* Enum for web urls, used on the web middleware
|
||||
*/
|
||||
export enum WebUrls {
|
||||
sidebar_scopped_package = '/sidebar/:scope/:package',
|
||||
sidebar_package = '/sidebar/:package',
|
||||
@@ -8,3 +11,15 @@ export enum WebUrls {
|
||||
search = '/search/:anything',
|
||||
reset_password = '/reset_password',
|
||||
}
|
||||
|
||||
/**
|
||||
* Enum for web urls namespace, used on the web middleware
|
||||
*/
|
||||
export enum WebUrlsNamespace {
|
||||
root = '/',
|
||||
static = '/-/static/',
|
||||
endpoints = '/-/verdaccio/',
|
||||
web = '/-/web/',
|
||||
data = '/data/',
|
||||
sec = '/sec/',
|
||||
}
|
||||
|
||||
90
packages/middleware/test/antiLoop.spec.ts
Normal file
90
packages/middleware/test/antiLoop.spec.ts
Normal file
@@ -0,0 +1,90 @@
|
||||
import request from 'supertest';
|
||||
import { test } from 'vitest';
|
||||
|
||||
import { HTTP_STATUS } from '@verdaccio/core';
|
||||
|
||||
import { antiLoop } from '../src';
|
||||
import { getApp } from './helper';
|
||||
|
||||
test('should not be a loop', async () => {
|
||||
const app = getApp([]);
|
||||
// @ts-ignore
|
||||
app.use(antiLoop({ server_id: '1' }));
|
||||
app.get('/sec', (req, res) => {
|
||||
res.status(HTTP_STATUS.OK).json({});
|
||||
});
|
||||
|
||||
return request(app).get('/sec').set('via', 'Server 2').expect(HTTP_STATUS.OK);
|
||||
});
|
||||
|
||||
test('should be a loop', async () => {
|
||||
const app = getApp([]);
|
||||
// @ts-ignore
|
||||
app.use(antiLoop({ server_id: '1' }));
|
||||
app.get('/sec', (req, res) => {
|
||||
res.status(HTTP_STATUS.OK).json({});
|
||||
});
|
||||
|
||||
return request(app)
|
||||
.get('/sec')
|
||||
.set('via', 'Server 1, Server 2')
|
||||
.expect(HTTP_STATUS.LOOP_DETECTED);
|
||||
});
|
||||
|
||||
test('should detect loop with protocol name in via header', async () => {
|
||||
const app = getApp([]);
|
||||
// @ts-ignore
|
||||
app.use(antiLoop({ server_id: '1' }));
|
||||
app.get('/sec', (req, res) => {
|
||||
res.status(HTTP_STATUS.OK).json({});
|
||||
});
|
||||
|
||||
return request(app).get('/sec').set('via', 'HTTP/1.1 1').expect(HTTP_STATUS.LOOP_DETECTED);
|
||||
});
|
||||
|
||||
test('should detect loop with comment in via header', async () => {
|
||||
const app = getApp([]);
|
||||
// @ts-ignore
|
||||
app.use(antiLoop({ server_id: '1' }));
|
||||
app.get('/sec', (req, res) => {
|
||||
res.status(HTTP_STATUS.OK).json({});
|
||||
});
|
||||
|
||||
return request(app).get('/sec').set('via', '1.1 1 (Verdaccio)').expect(HTTP_STATUS.LOOP_DETECTED);
|
||||
});
|
||||
|
||||
test('should detect loop in multiple via entries', async () => {
|
||||
const app = getApp([]);
|
||||
// @ts-ignore
|
||||
app.use(antiLoop({ server_id: '1' }));
|
||||
app.get('/sec', (req, res) => {
|
||||
res.status(HTTP_STATUS.OK).json({});
|
||||
});
|
||||
|
||||
return request(app)
|
||||
.get('/sec')
|
||||
.set('via', '1.1 server-a, 1.1 1, 1.1 server-b')
|
||||
.expect(HTTP_STATUS.LOOP_DETECTED);
|
||||
});
|
||||
|
||||
test('should handle malformed via header gracefully', async () => {
|
||||
const app = getApp([]);
|
||||
// @ts-ignore
|
||||
app.use(antiLoop({ server_id: '1' }));
|
||||
app.get('/sec', (req, res) => {
|
||||
res.status(HTTP_STATUS.OK).json({});
|
||||
});
|
||||
|
||||
return request(app).get('/sec').set('via', 'malformed-header').expect(HTTP_STATUS.OK);
|
||||
});
|
||||
|
||||
test('should handle via header with unexpected format', async () => {
|
||||
const app = getApp([]);
|
||||
// @ts-ignore
|
||||
app.use(antiLoop({ server_id: '1' }));
|
||||
app.get('/sec', (req, res) => {
|
||||
res.status(HTTP_STATUS.OK).json({});
|
||||
});
|
||||
|
||||
return request(app).get('/sec').set('via', 'unexpected format').expect(HTTP_STATUS.OK);
|
||||
});
|
||||
@@ -1,32 +0,0 @@
|
||||
import request from 'supertest';
|
||||
import { test } from 'vitest';
|
||||
|
||||
import { HTTP_STATUS } from '@verdaccio/core';
|
||||
|
||||
import { antiLoop } from '../src';
|
||||
import { getApp } from './helper';
|
||||
|
||||
test('should not be a loop', async () => {
|
||||
const app = getApp([]);
|
||||
// @ts-ignore
|
||||
app.use(antiLoop({ server_id: '1' }));
|
||||
app.get('/sec', (req, res) => {
|
||||
res.status(HTTP_STATUS.OK).json({});
|
||||
});
|
||||
|
||||
return request(app).get('/sec').set('via', 'Server 2').expect(HTTP_STATUS.OK);
|
||||
});
|
||||
|
||||
test('should be a loop', async () => {
|
||||
const app = getApp([]);
|
||||
// @ts-ignore
|
||||
app.use(antiLoop({ server_id: '1' }));
|
||||
app.get('/sec', (req, res) => {
|
||||
res.status(HTTP_STATUS.OK).json({});
|
||||
});
|
||||
|
||||
return request(app)
|
||||
.get('/sec')
|
||||
.set('via', 'Server 1, Server 2')
|
||||
.expect(HTTP_STATUS.LOOP_DETECTED);
|
||||
});
|
||||
@@ -1,5 +1,47 @@
|
||||
# @verdaccio/node-api
|
||||
|
||||
## 8.0.0-next-8.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [95ac124]
|
||||
- @verdaccio/core@8.0.0-next-8.12
|
||||
- @verdaccio/config@8.0.0-next-8.12
|
||||
- @verdaccio/server@8.0.0-next-8.12
|
||||
- @verdaccio/server-fastify@8.0.0-next-8.12
|
||||
- @verdaccio/logger@8.0.0-next-8.12
|
||||
|
||||
## 8.0.0-next-8.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/server@8.0.0-next-8.11
|
||||
- @verdaccio/server-fastify@8.0.0-next-8.11
|
||||
- @verdaccio/config@8.0.0-next-8.11
|
||||
- @verdaccio/core@8.0.0-next-8.11
|
||||
- @verdaccio/logger@8.0.0-next-8.11
|
||||
|
||||
## 8.0.0-next-8.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [bf0e09a]
|
||||
- @verdaccio/config@8.0.0-next-8.10
|
||||
- @verdaccio/server@8.0.0-next-8.10
|
||||
- @verdaccio/server-fastify@8.0.0-next-8.10
|
||||
- @verdaccio/core@8.0.0-next-8.10
|
||||
- @verdaccio/logger@8.0.0-next-8.10
|
||||
|
||||
## 8.0.0-next-8.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/server@8.0.0-next-8.9
|
||||
- @verdaccio/core@8.0.0-next-8.9
|
||||
- @verdaccio/config@8.0.0-next-8.9
|
||||
- @verdaccio/server-fastify@8.0.0-next-8.9
|
||||
- @verdaccio/logger@8.0.0-next-8.9
|
||||
|
||||
## 8.0.0-next-8.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/node-api",
|
||||
"version": "8.0.0-next-8.8",
|
||||
"version": "8.0.0-next-8.12",
|
||||
"description": "node API",
|
||||
"main": "build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -38,12 +38,12 @@
|
||||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/server": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/server-fastify": "workspace:8.0.0-next-8.8",
|
||||
"core-js": "3.37.1",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/server": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/server-fastify": "workspace:8.0.0-next-8.12",
|
||||
"core-js": "3.40.0",
|
||||
"debug": "4.4.0",
|
||||
"lodash": "4.17.21"
|
||||
},
|
||||
|
||||
@@ -1,5 +1,35 @@
|
||||
# Change Log
|
||||
|
||||
## 13.0.0-next-8.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [95ac124]
|
||||
- @verdaccio/core@8.0.0-next-8.12
|
||||
- @verdaccio/config@8.0.0-next-8.12
|
||||
|
||||
## 13.0.0-next-8.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/config@8.0.0-next-8.11
|
||||
- @verdaccio/core@8.0.0-next-8.11
|
||||
|
||||
## 13.0.0-next-8.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [bf0e09a]
|
||||
- @verdaccio/config@8.0.0-next-8.10
|
||||
- @verdaccio/core@8.0.0-next-8.10
|
||||
|
||||
## 13.0.0-next-8.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@8.0.0-next-8.9
|
||||
- @verdaccio/config@8.0.0-next-8.9
|
||||
|
||||
## 13.0.0-next-8.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "verdaccio-audit",
|
||||
"version": "13.0.0-next-8.8",
|
||||
"version": "13.0.0-next-8.12",
|
||||
"description": "Verdaccio Middleware plugin to bypass npmjs audit",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -30,15 +30,15 @@
|
||||
"node": ">=18"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.12",
|
||||
"express": "4.21.2",
|
||||
"https-proxy-agent": "5.0.1",
|
||||
"node-fetch": "cjs"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/auth": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/auth": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/types": "workspace:13.0.0-next-8.3",
|
||||
"supertest": "7.0.0"
|
||||
},
|
||||
|
||||
@@ -1,5 +1,30 @@
|
||||
# Change Log
|
||||
|
||||
## 13.0.0-next-8.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [95ac124]
|
||||
- @verdaccio/core@8.0.0-next-8.12
|
||||
|
||||
## 13.0.0-next-8.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@8.0.0-next-8.11
|
||||
|
||||
## 13.0.0-next-8.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@8.0.0-next-8.10
|
||||
|
||||
## 13.0.0-next-8.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@8.0.0-next-8.9
|
||||
|
||||
## 13.0.0-next-8.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "verdaccio-auth-memory",
|
||||
"version": "13.0.0-next-8.8",
|
||||
"version": "13.0.0-next-8.12",
|
||||
"description": "Auth plugin for Verdaccio that keeps users in memory",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -30,12 +30,12 @@
|
||||
"node": ">=18"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.12",
|
||||
"debug": "4.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/debug": "^4.1.12",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/types": "workspace:13.0.0-next-8.3"
|
||||
},
|
||||
"scripts": {
|
||||
|
||||
@@ -1,5 +1,30 @@
|
||||
# Change Log
|
||||
|
||||
## 13.0.0-next-8.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [95ac124]
|
||||
- @verdaccio/core@8.0.0-next-8.12
|
||||
|
||||
## 13.0.0-next-8.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@8.0.0-next-8.11
|
||||
|
||||
## 13.0.0-next-8.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@8.0.0-next-8.10
|
||||
|
||||
## 13.0.0-next-8.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@8.0.0-next-8.9
|
||||
|
||||
## 13.0.0-next-8.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "verdaccio-htpasswd",
|
||||
"version": "13.0.0-next-8.8",
|
||||
"version": "13.0.0-next-8.12",
|
||||
"description": "htpasswd auth plugin for Verdaccio",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -33,11 +33,11 @@
|
||||
"node": ">=18"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/file-locking": "workspace:13.0.0-next-8.2",
|
||||
"apache-md5": "1.1.8",
|
||||
"bcryptjs": "2.4.3",
|
||||
"core-js": "3.37.1",
|
||||
"core-js": "3.40.0",
|
||||
"http-errors": "2.0.0",
|
||||
"debug": "4.4.0",
|
||||
"unix-crypt-td-js": "1.1.4"
|
||||
@@ -45,8 +45,8 @@
|
||||
"devDependencies": {
|
||||
"@types/bcryptjs": "2.4.6",
|
||||
"@verdaccio/types": "workspace:13.0.0-next-8.3",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.12",
|
||||
"mockdate": "3.0.5"
|
||||
},
|
||||
"scripts": {
|
||||
|
||||
@@ -1,5 +1,35 @@
|
||||
# Change Log
|
||||
|
||||
## 13.0.0-next-8.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [95ac124]
|
||||
- @verdaccio/core@8.0.0-next-8.12
|
||||
- @verdaccio/utils@8.1.0-next-8.12
|
||||
|
||||
## 13.0.0-next-8.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [85e0e13]
|
||||
- @verdaccio/utils@8.1.0-next-8.11
|
||||
- @verdaccio/core@8.0.0-next-8.11
|
||||
|
||||
## 13.0.0-next-8.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@8.0.0-next-8.10
|
||||
- @verdaccio/utils@8.1.0-next-8.10
|
||||
|
||||
## 13.0.0-next-8.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@8.0.0-next-8.9
|
||||
- @verdaccio/utils@8.1.0-next-8.9
|
||||
|
||||
## 13.0.0-next-8.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/local-storage",
|
||||
"version": "13.0.0-next-8.8",
|
||||
"version": "13.0.0-next-8.12",
|
||||
"description": "Local storage implementation",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -36,10 +36,10 @@
|
||||
"node": ">=18"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/file-locking": "workspace:13.0.0-next-8.2",
|
||||
"@verdaccio/utils": "workspace:8.1.0-next-8.8",
|
||||
"core-js": "3.37.1",
|
||||
"@verdaccio/utils": "workspace:8.1.0-next-8.12",
|
||||
"core-js": "3.40.0",
|
||||
"debug": "4.4.0",
|
||||
"globby": "11.1.0",
|
||||
"lockfile": "1.0.4",
|
||||
@@ -50,8 +50,8 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/minimatch": "5.1.2",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/test-helper": "workspace:4.0.0-next-8.3",
|
||||
"@verdaccio/types": "workspace:13.0.0-next-8.3",
|
||||
"minimatch": "9.0.5"
|
||||
|
||||
@@ -1,5 +1,30 @@
|
||||
# Change Log
|
||||
|
||||
## 13.0.0-next-8.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [95ac124]
|
||||
- @verdaccio/core@8.0.0-next-8.12
|
||||
|
||||
## 13.0.0-next-8.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@8.0.0-next-8.11
|
||||
|
||||
## 13.0.0-next-8.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@8.0.0-next-8.10
|
||||
|
||||
## 13.0.0-next-8.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@8.0.0-next-8.9
|
||||
|
||||
## 13.0.0-next-8.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "verdaccio-memory",
|
||||
"version": "13.0.0-next-8.8",
|
||||
"version": "13.0.0-next-8.12",
|
||||
"description": "Storage implementation in memory",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -30,15 +30,15 @@
|
||||
"node": ">=18"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.12",
|
||||
"memory-fs": "0.5.0",
|
||||
"debug": "4.4.0",
|
||||
"memfs": "3.5.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "workspace:13.0.0-next-8.3",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.8"
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.12"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "rimraf ./build",
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# @verdaccio/ui-theme
|
||||
|
||||
## 8.0.0-next-8.12
|
||||
|
||||
## 8.0.0-next-8.11
|
||||
|
||||
## 8.0.0-next-8.10
|
||||
|
||||
## 8.0.0-next-8.9
|
||||
|
||||
## 8.0.0-next-8.8
|
||||
|
||||
## 8.0.0-next-8.7
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/ui-theme",
|
||||
"version": "8.0.0-next-8.8",
|
||||
"version": "8.0.0-next-8.12",
|
||||
"description": "Verdaccio User Interface",
|
||||
"author": {
|
||||
"name": "Verdaccio Contributors",
|
||||
@@ -27,13 +27,14 @@
|
||||
"@testing-library/dom": "10.4.0",
|
||||
"@testing-library/jest-dom": "6.6.3",
|
||||
"@testing-library/react": "16.1.0",
|
||||
"@verdaccio/node-api": "workspace:8.0.0-next-8.8",
|
||||
"@verdaccio/node-api": "workspace:8.0.0-next-8.12",
|
||||
"@verdaccio/types": "workspace:*",
|
||||
"@verdaccio/ui-components": "workspace:4.0.0-next-8.5",
|
||||
"@verdaccio/ui-components": "workspace:4.0.0-next-8.6",
|
||||
"@verdaccio/ui-i18n": "workspace:8.0.0-next-8.11",
|
||||
"@vitejs/plugin-react": "4.3.4",
|
||||
"babel-loader": "8.4.1",
|
||||
"babel-plugin-dynamic-import-node": "2.3.3",
|
||||
"country-flag-icons": "1.5.14",
|
||||
"country-flag-icons": "1.5.16",
|
||||
"css-loader": "6.11.0",
|
||||
"dayjs": "1.11.13",
|
||||
"dompurify": "3.2.3",
|
||||
@@ -59,7 +60,7 @@
|
||||
"raw-loader": "4.0.2",
|
||||
"react": "18.3.1",
|
||||
"react-dom": "18.3.1",
|
||||
"react-hook-form": "7.52.1",
|
||||
"react-hook-form": "7.54.2",
|
||||
"react-hot-loader": "4.13.1",
|
||||
"react-i18next": "13.5.0",
|
||||
"react-json-view": "1.21.3",
|
||||
@@ -78,10 +79,10 @@
|
||||
"stylelint-processor-styled-components": "1.10.0",
|
||||
"stylelint-webpack-plugin": "4.1.1",
|
||||
"supertest": "7.0.0",
|
||||
"terser-webpack-plugin": "5.3.11",
|
||||
"terser-webpack-plugin": "5.3.12",
|
||||
"url-loader": "4.1.1",
|
||||
"validator": "13.12.0",
|
||||
"webpack": "5.97.1",
|
||||
"webpack": "5.98.0",
|
||||
"vite-plugin-markdown": "2.2.0",
|
||||
"webpack-bundle-analyzer": "4.10.2",
|
||||
"webpack-bundle-size-analyzer": "3.1.0",
|
||||
|
||||
@@ -399,14 +399,14 @@
|
||||
"username": "okv",
|
||||
"id": 465522
|
||||
},
|
||||
{
|
||||
"username": "s-h-a-d-o-w",
|
||||
"id": 16936908
|
||||
},
|
||||
{
|
||||
"username": "awshanks",
|
||||
"id": 18176417
|
||||
},
|
||||
{
|
||||
"username": "s-h-a-d-o-w",
|
||||
"id": 16936908
|
||||
},
|
||||
{
|
||||
"username": "imsnif",
|
||||
"id": 795598
|
||||
@@ -427,6 +427,26 @@
|
||||
"username": "denisbabineau",
|
||||
"id": 12616025
|
||||
},
|
||||
{
|
||||
"username": "idangozlan",
|
||||
"id": 1991021
|
||||
},
|
||||
{
|
||||
"username": "guitarrapc",
|
||||
"id": 3856350
|
||||
},
|
||||
{
|
||||
"username": "monkeywithacupcake",
|
||||
"id": 7316730
|
||||
},
|
||||
{
|
||||
"username": "josephg",
|
||||
"id": 47413
|
||||
},
|
||||
{
|
||||
"username": "marnel",
|
||||
"id": 3189424
|
||||
},
|
||||
{
|
||||
"username": "kba",
|
||||
"id": 273367
|
||||
@@ -439,26 +459,6 @@
|
||||
"username": "aledbf",
|
||||
"id": 161571
|
||||
},
|
||||
{
|
||||
"username": "marnel",
|
||||
"id": 3189424
|
||||
},
|
||||
{
|
||||
"username": "josephg",
|
||||
"id": 47413
|
||||
},
|
||||
{
|
||||
"username": "guitarrapc",
|
||||
"id": 3856350
|
||||
},
|
||||
{
|
||||
"username": "idangozlan",
|
||||
"id": 1991021
|
||||
},
|
||||
{
|
||||
"username": "monkeywithacupcake",
|
||||
"id": 7316730
|
||||
},
|
||||
{
|
||||
"username": "Shreynik",
|
||||
"id": 25787910
|
||||
@@ -579,10 +579,6 @@
|
||||
"username": "pshanoop",
|
||||
"id": 1174257
|
||||
},
|
||||
{
|
||||
"username": "Skn0tt",
|
||||
"id": 14912729
|
||||
},
|
||||
{
|
||||
"username": "starizard",
|
||||
"id": 4953349
|
||||
@@ -604,8 +600,12 @@
|
||||
"id": 25525736
|
||||
},
|
||||
{
|
||||
"username": "bchenSyd",
|
||||
"id": 8207081
|
||||
"username": "hedocode",
|
||||
"id": 22884999
|
||||
},
|
||||
{
|
||||
"username": "Skn0tt",
|
||||
"id": 14912729
|
||||
},
|
||||
{
|
||||
"username": "fhp",
|
||||
@@ -643,10 +643,6 @@
|
||||
"username": "datWeazel",
|
||||
"id": 3285115
|
||||
},
|
||||
{
|
||||
"username": "divdavem",
|
||||
"id": 1152706
|
||||
},
|
||||
{
|
||||
"username": "morlay",
|
||||
"id": 1667873
|
||||
@@ -691,6 +687,10 @@
|
||||
"username": "Vrtak-CZ",
|
||||
"id": 112567
|
||||
},
|
||||
{
|
||||
"username": "devversion",
|
||||
"id": 4987015
|
||||
},
|
||||
{
|
||||
"username": "paulorenanmelo",
|
||||
"id": 5646288
|
||||
@@ -719,6 +719,10 @@
|
||||
"username": "RodrigoBalest",
|
||||
"id": 4810463
|
||||
},
|
||||
{
|
||||
"username": "divdavem",
|
||||
"id": 1152706
|
||||
},
|
||||
{
|
||||
"username": "iketiunn",
|
||||
"id": 10249208
|
||||
@@ -891,6 +895,10 @@
|
||||
"username": "dasmikko",
|
||||
"id": 4254869
|
||||
},
|
||||
{
|
||||
"username": "bchenSyd",
|
||||
"id": 8207081
|
||||
},
|
||||
{
|
||||
"username": "iambrandonn",
|
||||
"id": 1644549
|
||||
@@ -967,10 +975,6 @@
|
||||
"username": "ericmutta",
|
||||
"id": 20465797
|
||||
},
|
||||
{
|
||||
"username": "hedocode",
|
||||
"id": 22884999
|
||||
},
|
||||
{
|
||||
"username": "itsabdelrahman",
|
||||
"id": 11808903
|
||||
@@ -983,6 +987,10 @@
|
||||
"username": "aszmyd",
|
||||
"id": 3050805
|
||||
},
|
||||
{
|
||||
"username": "MathurAditya724",
|
||||
"id": 57684218
|
||||
},
|
||||
{
|
||||
"username": "dxwebster",
|
||||
"id": 61834475
|
||||
@@ -1363,10 +1371,6 @@
|
||||
"username": "mrwacky42",
|
||||
"id": 355590
|
||||
},
|
||||
{
|
||||
"username": "ShawnToubeau",
|
||||
"id": 22332636
|
||||
},
|
||||
{
|
||||
"username": "TomGrill",
|
||||
"id": 9935213
|
||||
|
||||
@@ -1,18 +1,21 @@
|
||||
import i18n from 'i18next';
|
||||
import { initReactI18next } from 'react-i18next';
|
||||
|
||||
import loadTranslationFile from '@verdaccio/ui-i18n';
|
||||
|
||||
import {
|
||||
DEFAULT_LANGUAGE,
|
||||
LanguageConfiguration,
|
||||
listLanguages,
|
||||
listLanguagesAsString,
|
||||
} from './enabledLanguages';
|
||||
import { loadTranslationFile } from './loadTranslationFile';
|
||||
|
||||
const languages = listLanguages.reduce((acc, item: LanguageConfiguration) => {
|
||||
acc[item.lng] = {
|
||||
translation:
|
||||
item.lng === DEFAULT_LANGUAGE ? require(`./crowdin/ui.json`) : loadTranslationFile(item.lng),
|
||||
item.lng === DEFAULT_LANGUAGE
|
||||
? loadTranslationFile(DEFAULT_LANGUAGE)
|
||||
: loadTranslationFile(item.lng),
|
||||
};
|
||||
return acc;
|
||||
}, {});
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user