Compare commits
8 Commits
@verdaccio
...
@verdaccio
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
56713db9a3 | ||
|
|
cce258e4d4 | ||
|
|
87c16127b4 | ||
|
|
bed68b2ceb | ||
|
|
5328b6cb05 | ||
|
|
16954c3b85 | ||
|
|
1e63e05dc0 | ||
|
|
8ecf7adf29 |
6
.changeset/good-cups-train.md
Normal file
6
.changeset/good-cups-train.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
'@verdaccio/search': patch
|
||||
'@verdaccio/search-indexer': patch
|
||||
---
|
||||
|
||||
refactor: search package
|
||||
@@ -39,7 +39,7 @@
|
||||
"verdaccio-memory": "11.0.0",
|
||||
"@verdaccio/ui-theme": "6.0.0",
|
||||
"@verdaccio/proxy": "6.0.0",
|
||||
"@verdaccio/search": "6.0.0",
|
||||
"@verdaccio/search-indexer": "6.0.0",
|
||||
"@verdaccio/server": "6.0.0",
|
||||
"@verdaccio/server-fastify": "6.0.0",
|
||||
"@verdaccio/signature": "6.0.0",
|
||||
@@ -55,13 +55,15 @@
|
||||
"verdaccio": "6.0.0",
|
||||
"@verdaccio/web": "6.0.0",
|
||||
"@verdaccio/website": "5.20.2",
|
||||
"@verdaccio/local-publish": "0.0.1"
|
||||
"@verdaccio/local-publish": "0.0.1",
|
||||
"@verdaccio/search": "7.0.0-next.0"
|
||||
},
|
||||
"changesets": [
|
||||
"angry-trees-tie",
|
||||
"breezy-mayflies-pull",
|
||||
"chilled-carrots-guess",
|
||||
"eight-squids-judge",
|
||||
"good-cups-train",
|
||||
"long-jars-collect",
|
||||
"old-turkeys-heal",
|
||||
"olive-bananas-wink",
|
||||
|
||||
10
.github/workflows/ci-windows.yml
vendored
10
.github/workflows/ci-windows.yml
vendored
@@ -36,7 +36,7 @@ jobs:
|
||||
- name: Install
|
||||
run: pnpm install --registry http://localhost:4873
|
||||
- name: Cache .pnpm-store
|
||||
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
|
||||
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v3
|
||||
with:
|
||||
path: ~/.pnpm-store
|
||||
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
||||
@@ -54,7 +54,7 @@ jobs:
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Install pnpm
|
||||
run: npm i pnpm@latest-8 -g
|
||||
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
|
||||
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v3
|
||||
with:
|
||||
path: ~/.pnpm-store
|
||||
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
||||
@@ -78,7 +78,7 @@ jobs:
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Install pnpm
|
||||
run: npm i pnpm@latest-8 -g
|
||||
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
|
||||
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v3
|
||||
with:
|
||||
path: ~/.pnpm-store
|
||||
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
||||
@@ -107,7 +107,7 @@ jobs:
|
||||
node-version: ${{ matrix.node_version }}
|
||||
- name: Install pnpm
|
||||
run: npm i pnpm@latest-8 -g
|
||||
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
|
||||
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v3
|
||||
with:
|
||||
path: ~/.pnpm-store
|
||||
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
||||
@@ -132,7 +132,7 @@ jobs:
|
||||
node-version-file: '.nvmrc'
|
||||
- name: Install pnpm
|
||||
run: npm i pnpm@latest-8 -g
|
||||
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
|
||||
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v3
|
||||
with:
|
||||
path: ~/.pnpm-store
|
||||
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
||||
|
||||
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@@ -43,7 +43,7 @@ jobs:
|
||||
- name: Install
|
||||
run: pnpm install --registry http://localhost:4873
|
||||
- name: Cache .pnpm-store
|
||||
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
|
||||
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v3
|
||||
with:
|
||||
path: ~/.pnpm-store
|
||||
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
||||
@@ -63,7 +63,7 @@ jobs:
|
||||
run: |
|
||||
corepack enable
|
||||
corepack install
|
||||
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
|
||||
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v3
|
||||
with:
|
||||
path: ~/.pnpm-store
|
||||
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
||||
@@ -88,7 +88,7 @@ jobs:
|
||||
run: |
|
||||
corepack enable
|
||||
corepack install
|
||||
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
|
||||
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v3
|
||||
with:
|
||||
path: ~/.pnpm-store
|
||||
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
||||
@@ -118,7 +118,7 @@ jobs:
|
||||
run: |
|
||||
corepack enable
|
||||
corepack prepare
|
||||
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
|
||||
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v3
|
||||
with:
|
||||
path: ~/.pnpm-store
|
||||
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
||||
@@ -145,7 +145,7 @@ jobs:
|
||||
run: |
|
||||
corepack enable
|
||||
corepack install
|
||||
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
|
||||
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v3
|
||||
with:
|
||||
path: ~/.pnpm-store
|
||||
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
||||
|
||||
6
.github/workflows/codeql-analysis.yml
vendored
6
.github/workflows/codeql-analysis.yml
vendored
@@ -34,7 +34,7 @@ jobs:
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@47b3d888fe66b639e431abf22ebca059152f1eea # v2
|
||||
uses: github/codeql-action/init@8a470fddafa5cbb6266ee11b37ef4d8aae19c571 # 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@47b3d888fe66b639e431abf22ebca059152f1eea # v2
|
||||
uses: github/codeql-action/autobuild@8a470fddafa5cbb6266ee11b37ef4d8aae19c571 # 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@47b3d888fe66b639e431abf22ebca059152f1eea # v2
|
||||
uses: github/codeql-action/analyze@8a470fddafa5cbb6266ee11b37ef4d8aae19c571 # v2
|
||||
|
||||
14
.github/workflows/e2e-ci.yml
vendored
14
.github/workflows/e2e-ci.yml
vendored
@@ -34,7 +34,7 @@ jobs:
|
||||
- name: Install
|
||||
run: pnpm install --reporter=silence --ignore-scripts --registry http://localhost:4873
|
||||
- name: Cache .pnpm-store
|
||||
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
|
||||
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v3
|
||||
with:
|
||||
path: ~/.pnpm-store
|
||||
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.run_id }}-${{ github.sha }}
|
||||
@@ -53,7 +53,7 @@ jobs:
|
||||
run: |
|
||||
corepack enable
|
||||
corepack prepare
|
||||
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
|
||||
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v3
|
||||
with:
|
||||
path: ~/.pnpm-store
|
||||
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.run_id }}-${{ github.sha }}
|
||||
@@ -65,7 +65,7 @@ jobs:
|
||||
- name: build
|
||||
run: pnpm build
|
||||
- name: Cache packages
|
||||
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
|
||||
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v3
|
||||
id: cache-packages
|
||||
with:
|
||||
path: ./packages/
|
||||
@@ -105,7 +105,7 @@ jobs:
|
||||
run: |
|
||||
corepack enable
|
||||
corepack prepare
|
||||
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
|
||||
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v3
|
||||
with:
|
||||
path: ~/.pnpm-store
|
||||
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.run_id }}-${{ github.sha }}
|
||||
@@ -114,7 +114,7 @@ jobs:
|
||||
pnpm config set store-dir ~/.pnpm-store
|
||||
- name: Install
|
||||
run: pnpm install --offline --reporter=silence --ignore-scripts --registry http://localhost:4873
|
||||
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
|
||||
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v3
|
||||
with:
|
||||
path: ./packages/
|
||||
key: pkg-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.run_id }}-${{ github.sha }}
|
||||
@@ -195,7 +195,7 @@ jobs:
|
||||
run: |
|
||||
corepack enable
|
||||
corepack prepare
|
||||
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
|
||||
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v3
|
||||
with:
|
||||
path: ~/.pnpm-store
|
||||
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.run_id }}-${{ github.sha }}
|
||||
@@ -204,7 +204,7 @@ jobs:
|
||||
pnpm config set store-dir ~/.pnpm-store
|
||||
- name: Install
|
||||
run: pnpm install --offline --reporter=silence --ignore-scripts --registry http://localhost:4873
|
||||
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
|
||||
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v3
|
||||
with:
|
||||
path: ./packages/
|
||||
key: pkg-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.run_id }}-${{ github.sha }}
|
||||
|
||||
2
.github/workflows/ui-components.yml
vendored
2
.github/workflows/ui-components.yml
vendored
@@ -28,7 +28,7 @@ jobs:
|
||||
node-version-file: '.nvmrc'
|
||||
|
||||
- name: Cache pnpm modules
|
||||
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
|
||||
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v3
|
||||
env:
|
||||
cache-name: cache-pnpm-modules
|
||||
with:
|
||||
|
||||
4
.github/workflows/website.yml
vendored
4
.github/workflows/website.yml
vendored
@@ -44,7 +44,7 @@ jobs:
|
||||
- name: Install
|
||||
run: pnpm install --registry http://localhost:4873
|
||||
- name: Cache .pnpm-store
|
||||
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
|
||||
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v3
|
||||
with:
|
||||
path: ~/.pnpm-store
|
||||
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
||||
@@ -55,7 +55,7 @@ jobs:
|
||||
- name: Build Translations percentage
|
||||
run: pnpm --filter @verdaccio/crowdin-translations build
|
||||
- name: Cache Docusaurus Build
|
||||
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3
|
||||
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v3
|
||||
with:
|
||||
path: website/node_modules/.cache/webpack
|
||||
key: cache/webpack-${{github.ref}}-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||
|
||||
@@ -88,7 +88,7 @@ packages:
|
||||
# and three keywords: "$all", "$anonymous", "$authenticated"
|
||||
access: $all
|
||||
|
||||
# allow all known users to publish/publish packages
|
||||
# allow all known users to publish/unpublish packages
|
||||
# (anyone can register by default, remember?)
|
||||
publish: $authenticated
|
||||
unpublish: $authenticated
|
||||
|
||||
@@ -90,7 +90,7 @@ packages:
|
||||
# and three keywords: "$all", "$anonymous", "$authenticated"
|
||||
access: $all
|
||||
|
||||
# allow all known users to publish/publish packages
|
||||
# allow all known users to publish/unpublish packages
|
||||
# (anyone can register by default, remember?)
|
||||
publish: $authenticated
|
||||
unpublish: $authenticated
|
||||
|
||||
@@ -88,7 +88,7 @@ packages:
|
||||
# and three keywords: "$all", "$anonymous", "$authenticated"
|
||||
access: $all
|
||||
|
||||
# allow all known users to publish/publish packages
|
||||
# allow all known users to publish/unpublish packages
|
||||
# (anyone can register by default, remember?)
|
||||
publish: $authenticated
|
||||
unpublish: $authenticated
|
||||
|
||||
@@ -90,7 +90,7 @@ packages:
|
||||
# and three keywords: "$all", "$anonymous", "$authenticated"
|
||||
access: $all
|
||||
|
||||
# allow all known users to publish/publish packages
|
||||
# allow all known users to publish/unpublish packages
|
||||
# (anyone can register by default, remember?)
|
||||
publish: $authenticated
|
||||
unpublish: $authenticated
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
"main": "./build/index.js",
|
||||
"types": "./build/index.d.ts",
|
||||
"devDependencies": {
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/types": "workspace:12.0.0-next.2",
|
||||
"debug": "4.3.4",
|
||||
"fs-extra": "11.2.0",
|
||||
@@ -14,7 +14,7 @@
|
||||
"got": "11.8.6",
|
||||
"js-yaml": "4.1.0",
|
||||
"lodash": "4.17.21",
|
||||
"verdaccio": "workspace:7.0.0-next-7.11"
|
||||
"verdaccio": "workspace:7.0.0-next-7.12"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "jest",
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
"name": "@verdaccio/e2e-ui",
|
||||
"version": "2.0.0",
|
||||
"devDependencies": {
|
||||
"verdaccio": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.11",
|
||||
"verdaccio": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/test-helper": "workspace:3.0.0-next-7.2",
|
||||
"debug": "4.3.4",
|
||||
"cypress": "^13.6.0",
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
# @verdaccio/api
|
||||
|
||||
## 7.0.0-next-7.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/store@7.0.0-next-7.12
|
||||
- @verdaccio/core@7.0.0-next-7.12
|
||||
- @verdaccio/config@7.0.0-next-7.12
|
||||
- @verdaccio/auth@7.0.0-next-7.12
|
||||
- @verdaccio/middleware@7.0.0-next-7.12
|
||||
- @verdaccio/utils@7.0.0-next-7.12
|
||||
- @verdaccio/logger@7.0.0-next-7.12
|
||||
|
||||
## 7.0.0-next-7.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/api",
|
||||
"version": "7.0.0-next-7.11",
|
||||
"version": "7.0.0-next-7.12",
|
||||
"description": "loaders logic",
|
||||
"main": "./build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -38,13 +38,13 @@
|
||||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@verdaccio/auth": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/middleware": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/store": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/auth": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/middleware": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/store": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.12",
|
||||
"abortcontroller-polyfill": "1.7.5",
|
||||
"body-parser": "1.20.2",
|
||||
"cookies": "0.9.0",
|
||||
|
||||
@@ -67,7 +67,7 @@ export default function (route: Router, auth: Auth, storage: Storage): void {
|
||||
const { package: pkgName, filename } = req.params;
|
||||
const abort = new AbortController();
|
||||
try {
|
||||
const stream = (await storage.getTarballNext(pkgName, filename, {
|
||||
const stream = (await storage.getTarball(pkgName, filename, {
|
||||
signal: abort.signal,
|
||||
// TODO: review why this param
|
||||
// enableRemote: true,
|
||||
|
||||
@@ -50,12 +50,13 @@ export default function (route, auth: Auth, storage: Storage): void {
|
||||
from = parseInt(from, 10) || 0;
|
||||
|
||||
try {
|
||||
debug('storage search initiated');
|
||||
data = await storage.search({
|
||||
query,
|
||||
url,
|
||||
abort,
|
||||
});
|
||||
debug('stream finish');
|
||||
debug('storage items tota: %o', data.length);
|
||||
const checkAccessPromises: searchUtils.SearchItemPkg[] = await Promise.all(
|
||||
data.map((pkgItem) => {
|
||||
return checkAccess(pkgItem, auth, req.remote_user);
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
# @verdaccio/auth
|
||||
|
||||
## 7.0.0-next-7.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@7.0.0-next-7.12
|
||||
- @verdaccio/config@7.0.0-next-7.12
|
||||
- @verdaccio/loaders@7.0.0-next-7.12
|
||||
- verdaccio-htpasswd@12.0.0-next-7.12
|
||||
- @verdaccio/utils@7.0.0-next-7.12
|
||||
- @verdaccio/signature@7.0.0-next.3
|
||||
- @verdaccio/logger@7.0.0-next-7.12
|
||||
|
||||
## 7.0.0-next-7.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/auth",
|
||||
"version": "7.0.0-next-7.11",
|
||||
"version": "7.0.0-next-7.12",
|
||||
"description": "logger",
|
||||
"main": "./build/index.js",
|
||||
"types": "./build/index.d.ts",
|
||||
@@ -38,20 +38,20 @@
|
||||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/loaders": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/loaders": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/signature": "workspace:7.0.0-next.3",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.12",
|
||||
"debug": "4.3.4",
|
||||
"lodash": "4.17.21",
|
||||
"verdaccio-htpasswd": "workspace:12.0.0-next-7.11"
|
||||
"verdaccio-htpasswd": "workspace:12.0.0-next-7.12"
|
||||
},
|
||||
"devDependencies": {
|
||||
"express": "4.18.2",
|
||||
"supertest": "6.3.4",
|
||||
"@verdaccio/middleware": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/middleware": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/types": "workspace:12.0.0-next.2"
|
||||
},
|
||||
"funding": {
|
||||
|
||||
@@ -558,9 +558,10 @@ describe('AuthTest', () => {
|
||||
const getServer = async function (auth) {
|
||||
const app = express();
|
||||
app.use(express.json({ strict: false, limit: '10mb' }));
|
||||
|
||||
app.use(auth.apiJWTmiddleware());
|
||||
// @ts-expect-error
|
||||
app.use(errorReportingMiddleware(logger));
|
||||
app.use(auth.apiJWTmiddleware());
|
||||
app.get('/*', (req, res, next) => {
|
||||
if ((req as $RequestExtend).remote_user.error) {
|
||||
next(new Error((req as $RequestExtend).remote_user.error));
|
||||
@@ -575,6 +576,7 @@ describe('AuthTest', () => {
|
||||
app.use(final);
|
||||
return app;
|
||||
};
|
||||
|
||||
describe('legacy signature', () => {
|
||||
describe('error cases', () => {
|
||||
test('should handle invalid auth token', async () => {
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
# @verdaccio/cli
|
||||
|
||||
## 7.0.0-next-7.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/node-api@7.0.0-next-7.12
|
||||
- @verdaccio/core@7.0.0-next-7.12
|
||||
- @verdaccio/config@7.0.0-next-7.12
|
||||
- @verdaccio/logger@7.0.0-next-7.12
|
||||
|
||||
## 7.0.0-next-7.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/cli",
|
||||
"version": "7.0.0-next-7.11",
|
||||
"version": "7.0.0-next-7.12",
|
||||
"author": {
|
||||
"name": "Juan Picado",
|
||||
"email": "juanpicado19@gmail.com"
|
||||
@@ -43,10 +43,10 @@
|
||||
"start": "ts-node src/index.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/node-api": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/node-api": "workspace:7.0.0-next-7.12",
|
||||
"clipanion": "3.2.1",
|
||||
"envinfo": "7.11.0",
|
||||
"kleur": "4.1.5",
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
# @verdaccio/config
|
||||
|
||||
## 7.0.0-next-7.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@7.0.0-next-7.12
|
||||
- @verdaccio/utils@7.0.0-next-7.12
|
||||
|
||||
## 7.0.0-next-7.11
|
||||
|
||||
### Minor Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/config",
|
||||
"version": "7.0.0-next-7.11",
|
||||
"version": "7.0.0-next-7.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:7.0.0-next-7.11",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.12",
|
||||
"debug": "4.3.4",
|
||||
"js-yaml": "4.1.0",
|
||||
"lodash": "4.17.21",
|
||||
|
||||
@@ -82,7 +82,7 @@ packages:
|
||||
# and three keywords: "$all", "$anonymous", "$authenticated"
|
||||
access: $all
|
||||
|
||||
# allow all known users to publish/publish packages
|
||||
# allow all known users to publish/unpublish packages
|
||||
# (anyone can register by default, remember?)
|
||||
publish: $authenticated
|
||||
unpublish: $authenticated
|
||||
|
||||
@@ -86,7 +86,7 @@ packages:
|
||||
# and three keywords: "$all", "$anonymous", "$authenticated"
|
||||
access: $all
|
||||
|
||||
# Allow all known users to publish/publish packages
|
||||
# Allow all known users to publish/unpublish packages
|
||||
# (anyone can register by default, remember?)
|
||||
publish: $authenticated
|
||||
unpublish: $authenticated
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# @verdaccio/core
|
||||
|
||||
## 7.0.0-next-7.12
|
||||
|
||||
## 7.0.0-next-7.11
|
||||
|
||||
## 7.0.0-next-7.10
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/core",
|
||||
"version": "7.0.0-next-7.11",
|
||||
"version": "7.0.0-next-7.12",
|
||||
"description": "core utilities",
|
||||
"keywords": [
|
||||
"private",
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# Change Log
|
||||
|
||||
## 12.0.0-next-7.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@7.0.0-next-7.12
|
||||
- @verdaccio/url@12.0.0-next-7.12
|
||||
- @verdaccio/utils@7.0.0-next-7.12
|
||||
|
||||
## 12.0.0-next-7.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/tarball",
|
||||
"version": "12.0.0-next-7.11",
|
||||
"version": "12.0.0-next-7.12",
|
||||
"description": "tarball utilities resolver",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -34,9 +34,9 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"debug": "4.3.4",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/url": "workspace:12.0.0-next-7.11",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/url": "workspace:12.0.0-next-7.12",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.12",
|
||||
"lodash": "4.17.21"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# Change Log
|
||||
|
||||
## 12.0.0-next-7.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@7.0.0-next-7.12
|
||||
|
||||
## 12.0.0-next-7.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/url",
|
||||
"version": "12.0.0-next-7.11",
|
||||
"version": "12.0.0-next-7.12",
|
||||
"description": "url utilities resolver",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -33,7 +33,7 @@
|
||||
"access": "public"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.12",
|
||||
"debug": "4.3.4",
|
||||
"lodash": "4.17.21",
|
||||
"validator": "13.11.0"
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
# @verdaccio/hooks
|
||||
|
||||
## 7.0.0-next-7.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@7.0.0-next-7.12
|
||||
- @verdaccio/logger@7.0.0-next-7.12
|
||||
|
||||
## 7.0.0-next-7.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/hooks",
|
||||
"version": "7.0.0-next-7.11",
|
||||
"version": "7.0.0-next-7.12",
|
||||
"description": "loaders logic",
|
||||
"main": "./build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -29,16 +29,16 @@
|
||||
"node": ">=18"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.12",
|
||||
"core-js": "3.35.0",
|
||||
"debug": "4.3.4",
|
||||
"got-cjs": "12.5.4",
|
||||
"handlebars": "4.7.8"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/auth": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/auth": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/types": "workspace:12.0.0-next.2",
|
||||
"nock": "13.5.1"
|
||||
},
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# @verdaccio/loaders
|
||||
|
||||
## 7.0.0-next-7.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/logger@7.0.0-next-7.12
|
||||
|
||||
## 7.0.0-next-7.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/loaders",
|
||||
"version": "7.0.0-next-7.11",
|
||||
"version": "7.0.0-next-7.12",
|
||||
"description": "loaders logic",
|
||||
"main": "./build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -13,13 +13,13 @@
|
||||
"url": "https://github.com/verdaccio/verdaccio"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.12",
|
||||
"debug": "4.3.4",
|
||||
"lodash": "4.17.21"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/types": "workspace:12.0.0-next.2",
|
||||
"@verdaccio-scope/verdaccio-auth-foo": "0.0.2",
|
||||
"verdaccio-auth-memory": "workspace:*",
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# @verdaccio/logger-7
|
||||
|
||||
## 7.0.0-next-7.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/logger-commons@7.0.0-next-7.12
|
||||
|
||||
## 7.0.0-next-7.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/logger-7",
|
||||
"version": "7.0.0-next-7.11",
|
||||
"version": "7.0.0-next-7.12",
|
||||
"description": "logger for verdaccio 5.x version",
|
||||
"main": "./build/index.js",
|
||||
"types": "./build/index.d.ts",
|
||||
@@ -38,7 +38,7 @@
|
||||
"build": "pnpm run build:js && pnpm run build:types"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/logger-commons": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/logger-commons": "workspace:7.0.0-next-7.12",
|
||||
"pino": "7.11.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# @verdaccio/logger-commons
|
||||
|
||||
## 7.0.0-next-7.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@7.0.0-next-7.12
|
||||
|
||||
## 7.0.0-next-7.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/logger-commons",
|
||||
"version": "7.0.0-next-7.11",
|
||||
"version": "7.0.0-next-7.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:7.0.0-next-7.11",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/logger-prettify": "workspace:7.0.0-next.1",
|
||||
"debug": "4.3.4",
|
||||
"colorette": "2.0.20"
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# @verdaccio/logger
|
||||
|
||||
## 7.0.0-next-7.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/logger-commons@7.0.0-next-7.12
|
||||
|
||||
## 7.0.0-next-7.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/logger",
|
||||
"version": "7.0.0-next-7.11",
|
||||
"version": "7.0.0-next-7.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:7.0.0-next-7.11",
|
||||
"@verdaccio/logger-commons": "workspace:7.0.0-next-7.12",
|
||||
"pino": "8.17.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
# @verdaccio/middleware
|
||||
|
||||
## 7.0.0-next-7.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@7.0.0-next-7.12
|
||||
- @verdaccio/config@7.0.0-next-7.12
|
||||
- @verdaccio/url@12.0.0-next-7.12
|
||||
- @verdaccio/utils@7.0.0-next-7.12
|
||||
|
||||
## 7.0.0-next-7.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/middleware",
|
||||
"version": "7.0.0-next-7.11",
|
||||
"version": "7.0.0-next-7.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/core": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/url": "workspace:12.0.0-next-7.11",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/url": "workspace:12.0.0-next-7.12",
|
||||
"debug": "4.3.4",
|
||||
"lru-cache": "7.18.3",
|
||||
"express": "4.18.2",
|
||||
@@ -54,7 +54,7 @@
|
||||
"url": "https://opencollective.com/verdaccio"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.12",
|
||||
"body-parser": "1.20.2",
|
||||
"supertest": "6.3.4"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
# @verdaccio/node-api
|
||||
|
||||
## 7.0.0-next-7.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/server@7.0.0-next-7.12
|
||||
- @verdaccio/server-fastify@7.0.0-next-7.12
|
||||
- @verdaccio/core@7.0.0-next-7.12
|
||||
- @verdaccio/config@7.0.0-next-7.12
|
||||
- @verdaccio/logger@7.0.0-next-7.12
|
||||
|
||||
## 7.0.0-next-7.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/node-api",
|
||||
"version": "7.0.0-next-7.11",
|
||||
"version": "7.0.0-next-7.12",
|
||||
"description": "node API",
|
||||
"main": "build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -38,11 +38,11 @@
|
||||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/server": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/server-fastify": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/server": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/server-fastify": "workspace:7.0.0-next-7.12",
|
||||
"core-js": "3.35.0",
|
||||
"debug": "4.3.4",
|
||||
"lodash": "4.17.21"
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
# Change Log
|
||||
|
||||
## 12.0.0-next-7.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@7.0.0-next-7.12
|
||||
- @verdaccio/config@7.0.0-next-7.12
|
||||
|
||||
## 12.0.0-next-7.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "verdaccio-audit",
|
||||
"version": "12.0.0-next-7.11",
|
||||
"version": "12.0.0-next-7.12",
|
||||
"description": "Verdaccio Middleware plugin to bypass npmjs audit",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -30,15 +30,15 @@
|
||||
"node": ">=12"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.12",
|
||||
"express": "4.18.2",
|
||||
"https-proxy-agent": "5.0.1",
|
||||
"node-fetch": "cjs"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/auth": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/auth": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/types": "workspace:12.0.0-next.2",
|
||||
"nock": "13.5.1",
|
||||
"supertest": "6.3.4"
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# Change Log
|
||||
|
||||
## 12.0.0-next-7.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@7.0.0-next-7.12
|
||||
|
||||
## 12.0.0-next-7.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "verdaccio-auth-memory",
|
||||
"version": "12.0.0-next-7.11",
|
||||
"version": "12.0.0-next-7.12",
|
||||
"description": "Auth plugin for Verdaccio that keeps users in memory",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -30,12 +30,12 @@
|
||||
"node": ">=18"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.12",
|
||||
"debug": "4.3.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/debug": "^4.1.12",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/types": "workspace:12.0.0-next.2"
|
||||
},
|
||||
"scripts": {
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# Change Log
|
||||
|
||||
## 12.0.0-next-7.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@7.0.0-next-7.12
|
||||
|
||||
## 12.0.0-next-7.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "verdaccio-htpasswd",
|
||||
"version": "12.0.0-next-7.11",
|
||||
"version": "12.0.0-next-7.12",
|
||||
"description": "htpasswd auth plugin for Verdaccio",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -33,7 +33,7 @@
|
||||
"node": ">=12"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/file-locking": "workspace:12.0.0-next.1",
|
||||
"apache-md5": "1.1.8",
|
||||
"bcryptjs": "2.4.3",
|
||||
@@ -45,8 +45,8 @@
|
||||
"devDependencies": {
|
||||
"@types/bcryptjs": "2.4.6",
|
||||
"@verdaccio/types": "workspace:12.0.0-next.2",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.12",
|
||||
"mockdate": "3.0.5"
|
||||
},
|
||||
"scripts": {
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
# Change Log
|
||||
|
||||
## 12.0.0-next-7.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@7.0.0-next-7.12
|
||||
- @verdaccio/utils@7.0.0-next-7.12
|
||||
|
||||
## 12.0.0-next-7.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/local-storage",
|
||||
"version": "12.0.0-next-7.11",
|
||||
"version": "12.0.0-next-7.12",
|
||||
"description": "Local storage implementation",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -36,9 +36,9 @@
|
||||
"node": ">=18"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/file-locking": "workspace:12.0.0-next.1",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.12",
|
||||
"core-js": "3.35.0",
|
||||
"debug": "4.3.4",
|
||||
"globby": "11.1.0",
|
||||
@@ -50,8 +50,8 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/minimatch": "5.1.2",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/test-helper": "workspace:3.0.0-next-7.2",
|
||||
"@verdaccio/types": "workspace:12.0.0-next.2",
|
||||
"minimatch": "9.0.3"
|
||||
|
||||
@@ -64,12 +64,6 @@ export async function searchOnStorage(
|
||||
): Promise<searchUtils.SearchItemPkg[]> {
|
||||
const matchedStorages = Array.from(storages);
|
||||
const storageFolders = Array.from(storages.keys());
|
||||
// const getScopedFolders = async (pkgName) => {
|
||||
// const scopedPackages = await getFolders(join(storagePath, pkgName), '*');
|
||||
// const listScoped = scopedPackages.map((scoped) => ({
|
||||
// name: `${pkgName}/${scoped}`,
|
||||
// }));
|
||||
// };
|
||||
debug('search on %o', storagePath);
|
||||
debug('storage folders %o', matchedStorages.length);
|
||||
let results: searchUtils.SearchItemPkg[] = [];
|
||||
|
||||
@@ -136,13 +136,17 @@ class LocalDatabase extends pluginUtils.Plugin<{}> implements Storage {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param query
|
||||
* @returns
|
||||
*/
|
||||
public async search(query: searchUtils.SearchQuery): Promise<searchUtils.SearchItem[]> {
|
||||
debug('search query to %o', query.text);
|
||||
const results: searchUtils.SearchItem[] = [];
|
||||
const storagePath = this.getStoragePath();
|
||||
const packagesOnStorage = await this.filterByQuery(
|
||||
await searchOnStorage(storagePath, this.storages),
|
||||
query
|
||||
);
|
||||
const localResults = await searchOnStorage(storagePath, this.storages);
|
||||
const packagesOnStorage = await this.filterByQuery(localResults, query);
|
||||
debug('packages found %o', packagesOnStorage.length);
|
||||
for (let storage of packagesOnStorage) {
|
||||
// check if package is listed on the cache private database
|
||||
|
||||
@@ -45,7 +45,6 @@ describe('searchOnFolders', () => {
|
||||
{
|
||||
name: 'pkg1',
|
||||
},
|
||||
|
||||
{
|
||||
name: 'pkg2',
|
||||
},
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# Change Log
|
||||
|
||||
## 12.0.0-next-7.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@7.0.0-next-7.12
|
||||
|
||||
## 12.0.0-next-7.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "verdaccio-memory",
|
||||
"version": "12.0.0-next-7.11",
|
||||
"version": "12.0.0-next-7.12",
|
||||
"description": "Storage implementation in memory",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -30,15 +30,15 @@
|
||||
"node": ">=18"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.12",
|
||||
"memory-fs": "0.5.0",
|
||||
"debug": "4.3.4",
|
||||
"memfs": "3.5.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "workspace:12.0.0-next.2",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.11"
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.12"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "rimraf ./build",
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# @verdaccio/ui-theme
|
||||
|
||||
## 7.0.0-next-7.12
|
||||
|
||||
## 7.0.0-next-7.11
|
||||
|
||||
### Minor Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/ui-theme",
|
||||
"version": "7.0.0-next-7.11",
|
||||
"version": "7.0.0-next-7.12",
|
||||
"description": "Verdaccio User Interface",
|
||||
"author": {
|
||||
"name": "Verdaccio Contributors",
|
||||
@@ -27,7 +27,7 @@
|
||||
"@testing-library/dom": "9.3.4",
|
||||
"@testing-library/jest-dom": "6.3.0",
|
||||
"@testing-library/react": "14.1.2",
|
||||
"@verdaccio/node-api": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/node-api": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/types": "workspace:*",
|
||||
"@verdaccio/ui-components": "workspace:3.0.0-next-7.5",
|
||||
"babel-loader": "8.3.0",
|
||||
|
||||
@@ -631,10 +631,6 @@
|
||||
"username": "Tiny-Fendy",
|
||||
"id": 8954107
|
||||
},
|
||||
{
|
||||
"username": "tomcoonen",
|
||||
"id": 988013
|
||||
},
|
||||
{
|
||||
"username": "oltodo",
|
||||
"id": 483842
|
||||
@@ -699,10 +695,6 @@
|
||||
"username": "RodrigoBalest",
|
||||
"id": 4810463
|
||||
},
|
||||
{
|
||||
"username": "grrowl",
|
||||
"id": 907140
|
||||
},
|
||||
{
|
||||
"username": "iketiunn",
|
||||
"id": 10249208
|
||||
@@ -783,6 +775,14 @@
|
||||
"username": "melodyVoid",
|
||||
"id": 26846212
|
||||
},
|
||||
{
|
||||
"username": "tomcoonen",
|
||||
"id": 988013
|
||||
},
|
||||
{
|
||||
"username": "grrowl",
|
||||
"id": 907140
|
||||
},
|
||||
{
|
||||
"username": "tlvince",
|
||||
"id": 323761
|
||||
@@ -936,8 +936,8 @@
|
||||
"id": 20465797
|
||||
},
|
||||
{
|
||||
"username": "Mearman",
|
||||
"id": 1331872
|
||||
"username": "einfallstoll",
|
||||
"id": 619048
|
||||
},
|
||||
{
|
||||
"username": "hedocode",
|
||||
@@ -1023,6 +1023,10 @@
|
||||
"username": "bchenSyd",
|
||||
"id": 8207081
|
||||
},
|
||||
{
|
||||
"username": "Mearman",
|
||||
"id": 1331872
|
||||
},
|
||||
{
|
||||
"username": "patroclos",
|
||||
"id": 5959583
|
||||
@@ -1091,10 +1095,6 @@
|
||||
"username": "morrain",
|
||||
"id": 9381634
|
||||
},
|
||||
{
|
||||
"username": "einfallstoll",
|
||||
"id": 619048
|
||||
},
|
||||
{
|
||||
"username": "felipeplets",
|
||||
"id": 119980
|
||||
@@ -1119,6 +1119,10 @@
|
||||
"username": "gecruz",
|
||||
"id": 29457476
|
||||
},
|
||||
{
|
||||
"username": "gweesin",
|
||||
"id": 42909374
|
||||
},
|
||||
{
|
||||
"username": "iztsv",
|
||||
"id": 3539802
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# @verdaccio/proxy
|
||||
|
||||
## 7.0.0-next-7.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@7.0.0-next-7.12
|
||||
- @verdaccio/config@7.0.0-next-7.12
|
||||
- @verdaccio/utils@7.0.0-next-7.12
|
||||
|
||||
## 7.0.0-next-7.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -4,9 +4,9 @@ module.exports = Object.assign({}, config, {
|
||||
coverageThreshold: {
|
||||
global: {
|
||||
branches: 79,
|
||||
functions: 94,
|
||||
lines: 87,
|
||||
statements: 87,
|
||||
functions: 90,
|
||||
lines: 86,
|
||||
statements: 86,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/proxy",
|
||||
"version": "7.0.0-next-7.11",
|
||||
"version": "7.0.0-next-7.12",
|
||||
"description": "verdaccio proxy fetcher",
|
||||
"main": "./build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -38,9 +38,9 @@
|
||||
"build": "pnpm run build:js && pnpm run build:types"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.12",
|
||||
"JSONStream": "1.3.5",
|
||||
"debug": "4.3.4",
|
||||
"got-cjs": "12.5.4",
|
||||
@@ -48,7 +48,7 @@
|
||||
"lodash": "4.17.21"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/types": "workspace:12.0.0-next.2",
|
||||
"get-stream": "^6.0.1",
|
||||
"nock": "13.5.1",
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
export * from './proxy';
|
||||
export * from './uplink-util';
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
import { logger } from '@verdaccio/logger';
|
||||
import { IProxy, ProxyStorage } from '@verdaccio/proxy';
|
||||
import { Config, Manifest } from '@verdaccio/types';
|
||||
import { Config, Logger, Manifest } from '@verdaccio/types';
|
||||
|
||||
import { IProxy, ProxyStorage } from './index';
|
||||
|
||||
export interface ProxyInstanceList {
|
||||
[key: string]: IProxy;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set up the Up Storage for each link.
|
||||
* Set up uplinks for each proxy configuration.
|
||||
*/
|
||||
export function setupUpLinks(config: Config): ProxyInstanceList {
|
||||
export function setupUpLinks(config: Config, logger: Logger): ProxyInstanceList {
|
||||
const uplinks: ProxyInstanceList = {};
|
||||
|
||||
for (const uplinkName in config.uplinks) {
|
||||
@@ -38,5 +38,5 @@ export function updateVersionsHiddenUpLinkNext(manifest: Manifest, upLink: IProx
|
||||
versions[version][Symbol.for('__verdaccio_uplink')] = upLink.upname;
|
||||
}
|
||||
|
||||
return { ...manifest, versions: versions };
|
||||
return { ...manifest, versions };
|
||||
}
|
||||
3
packages/search-indexer/.babelrc
Normal file
3
packages/search-indexer/.babelrc
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "../../.babelrc"
|
||||
}
|
||||
7
packages/search-indexer/CHANGELOG.md
Normal file
7
packages/search-indexer/CHANGELOG.md
Normal file
@@ -0,0 +1,7 @@
|
||||
# @verdaccio/search-indexer
|
||||
|
||||
## 7.0.0-next-7.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- cce258e: refactor: search package
|
||||
12
packages/search-indexer/jest.config.js
Normal file
12
packages/search-indexer/jest.config.js
Normal file
@@ -0,0 +1,12 @@
|
||||
const config = require('../../jest/config');
|
||||
|
||||
module.exports = Object.assign({}, config, {
|
||||
coverageThreshold: {
|
||||
global: {
|
||||
branches: 79,
|
||||
functions: 94,
|
||||
lines: 87,
|
||||
statements: 87,
|
||||
},
|
||||
},
|
||||
});
|
||||
49
packages/search-indexer/package.json
Normal file
49
packages/search-indexer/package.json
Normal file
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"name": "@verdaccio/search-indexer",
|
||||
"version": "7.0.0-next-7.1",
|
||||
"description": "verdaccio search indexer",
|
||||
"main": "./build/dist.js",
|
||||
"types": "build/index.d.ts",
|
||||
"author": {
|
||||
"name": "Juan Picado",
|
||||
"email": "juanpicado19@gmail.com"
|
||||
},
|
||||
"repository": {
|
||||
"type": "https",
|
||||
"url": "https://github.com/verdaccio/verdaccio"
|
||||
},
|
||||
"license": "MIT",
|
||||
"homepage": "https://verdaccio.org",
|
||||
"keywords": [
|
||||
"private",
|
||||
"package",
|
||||
"repository",
|
||||
"registry",
|
||||
"enterprise",
|
||||
"modules",
|
||||
"proxy",
|
||||
"server",
|
||||
"verdaccio"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "rimraf ./build",
|
||||
"test": "vitest run",
|
||||
"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": "esbuild src/index.ts --bundle --outfile=build/dist.js --platform=node --target=node12 && pnpm run build:types"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "workspace:12.0.0-next.2",
|
||||
"@orama/orama": "1.2.4",
|
||||
"debug": "4.3.4",
|
||||
"esbuild": "0.14.10"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/verdaccio"
|
||||
}
|
||||
}
|
||||
1
packages/search-indexer/src/index.ts
Normal file
1
packages/search-indexer/src/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export { default as SearchMemoryIndexer } from './indexer';
|
||||
9
packages/search-indexer/tsconfig.build.json
Normal file
9
packages/search-indexer/tsconfig.build.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base",
|
||||
"compilerOptions": {
|
||||
"rootDir": "./src",
|
||||
"outDir": "./build"
|
||||
},
|
||||
"include": ["src/**/*.ts"],
|
||||
"exclude": ["src/**/*.test.ts"]
|
||||
}
|
||||
23
packages/search-indexer/tsconfig.json
Normal file
23
packages/search-indexer/tsconfig.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"extends": "../../tsconfig.reference.json",
|
||||
"compilerOptions": {
|
||||
"rootDir": "./src",
|
||||
"outDir": "./build",
|
||||
"noImplicitAny": false
|
||||
},
|
||||
"include": ["src/**/*.ts", "types/*.d.ts"],
|
||||
"references": [
|
||||
{
|
||||
"path": "../config"
|
||||
},
|
||||
{
|
||||
"path": "../core/core"
|
||||
},
|
||||
{
|
||||
"path": "../logger/logger"
|
||||
},
|
||||
{
|
||||
"path": "../utils"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,763 +1,11 @@
|
||||
# @verdaccio/proxy
|
||||
# @verdaccio/search
|
||||
|
||||
## 7.0.0-next.2
|
||||
|
||||
### Major Changes
|
||||
|
||||
- e7ebccb61: update major dependencies, remove old nodejs support
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- daceb6d87: restore legacy support
|
||||
|
||||
## 7.0.0-next.1
|
||||
## 7.0.0-next-7.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 35cc57b79: fix: keyword undefined errors
|
||||
|
||||
## 7.0.0-next.0
|
||||
|
||||
### Major Changes
|
||||
|
||||
- feat!: bump to v7
|
||||
|
||||
## 6.0.0
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 15e58d988: feat: add search package utilities
|
||||
|
||||
## 6.0.0-6-next.2
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 15e58d98: feat: add search package utilities
|
||||
|
||||
## 6.0.0-6-next.46
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@6.0.0-6-next.68
|
||||
- @verdaccio/config@6.0.0-6-next.68
|
||||
- @verdaccio/local-storage@11.0.0-6-next.38
|
||||
- @verdaccio/utils@6.0.0-6-next.36
|
||||
- @verdaccio/logger@6.0.0-6-next.36
|
||||
|
||||
## 6.0.0-6-next.45
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [16e38df8]
|
||||
- @verdaccio/config@6.0.0-6-next.67
|
||||
- @verdaccio/core@6.0.0-6-next.67
|
||||
- @verdaccio/local-storage@11.0.0-6-next.37
|
||||
- @verdaccio/utils@6.0.0-6-next.35
|
||||
- @verdaccio/logger@6.0.0-6-next.35
|
||||
|
||||
## 6.0.0-6-next.44
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@6.0.0-6-next.66
|
||||
- @verdaccio/logger@6.0.0-6-next.34
|
||||
- @verdaccio/local-storage@11.0.0-6-next.36
|
||||
- @verdaccio/config@6.0.0-6-next.66
|
||||
- @verdaccio/utils@6.0.0-6-next.34
|
||||
|
||||
## 6.0.0-6-next.43
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [a1da1130]
|
||||
- @verdaccio/core@6.0.0-6-next.65
|
||||
- @verdaccio/config@6.0.0-6-next.65
|
||||
- @verdaccio/local-storage@11.0.0-6-next.35
|
||||
- @verdaccio/utils@6.0.0-6-next.33
|
||||
- @verdaccio/logger@6.0.0-6-next.33
|
||||
|
||||
## 6.0.0-6-next.42
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [974cd8c1]
|
||||
- @verdaccio/core@6.0.0-6-next.64
|
||||
- @verdaccio/config@6.0.0-6-next.64
|
||||
- @verdaccio/local-storage@11.0.0-6-next.34
|
||||
- @verdaccio/utils@6.0.0-6-next.32
|
||||
- @verdaccio/logger@6.0.0-6-next.32
|
||||
|
||||
## 6.0.0-6-next.41
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [ddb6a223]
|
||||
- Updated dependencies [dc571aab]
|
||||
- @verdaccio/config@6.0.0-6-next.63
|
||||
- @verdaccio/core@6.0.0-6-next.63
|
||||
- @verdaccio/local-storage@11.0.0-6-next.33
|
||||
- @verdaccio/utils@6.0.0-6-next.31
|
||||
- @verdaccio/logger@6.0.0-6-next.31
|
||||
|
||||
## 6.0.0-6-next.40
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [378e907d]
|
||||
- @verdaccio/core@6.0.0-6-next.62
|
||||
- @verdaccio/logger@6.0.0-6-next.30
|
||||
- @verdaccio/local-storage@11.0.0-6-next.32
|
||||
- @verdaccio/config@6.0.0-6-next.62
|
||||
- @verdaccio/utils@6.0.0-6-next.30
|
||||
|
||||
## 6.0.0-6-next.39
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [d167f92e]
|
||||
- @verdaccio/config@6.0.0-6-next.61
|
||||
- @verdaccio/local-storage@11.0.0-6-next.31
|
||||
- @verdaccio/core@6.0.0-6-next.61
|
||||
- @verdaccio/utils@6.0.0-6-next.29
|
||||
- @verdaccio/logger@6.0.0-6-next.29
|
||||
|
||||
## 6.0.0-6-next.38
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 45c03819: refactor: render html middleware
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [45c03819]
|
||||
- @verdaccio/config@6.0.0-6-next.60
|
||||
- @verdaccio/local-storage@11.0.0-6-next.30
|
||||
- @verdaccio/core@6.0.0-6-next.60
|
||||
- @verdaccio/logger@6.0.0-6-next.28
|
||||
- @verdaccio/utils@6.0.0-6-next.28
|
||||
|
||||
## 6.0.0-6-next.37
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [65f88b82]
|
||||
- @verdaccio/logger@6.0.0-6-next.27
|
||||
- @verdaccio/local-storage@11.0.0-6-next.29
|
||||
- @verdaccio/core@6.0.0-6-next.59
|
||||
- @verdaccio/config@6.0.0-6-next.59
|
||||
- @verdaccio/utils@6.0.0-6-next.27
|
||||
|
||||
## 6.0.0-6-next.36
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@6.0.0-6-next.58
|
||||
- @verdaccio/config@6.0.0-6-next.58
|
||||
- @verdaccio/local-storage@11.0.0-6-next.28
|
||||
- @verdaccio/utils@6.0.0-6-next.26
|
||||
- @verdaccio/logger@6.0.0-6-next.26
|
||||
|
||||
## 6.0.0-6-next.35
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/local-storage@11.0.0-6-next.27
|
||||
- @verdaccio/core@6.0.0-6-next.57
|
||||
- @verdaccio/config@6.0.0-6-next.57
|
||||
- @verdaccio/logger@6.0.0-6-next.25
|
||||
- @verdaccio/utils@6.0.0-6-next.25
|
||||
|
||||
## 6.0.0-6-next.34
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [a1986e09]
|
||||
- @verdaccio/utils@6.0.0-6-next.24
|
||||
- @verdaccio/config@6.0.0-6-next.56
|
||||
- @verdaccio/local-storage@11.0.0-6-next.26
|
||||
- @verdaccio/core@6.0.0-6-next.56
|
||||
- @verdaccio/logger@6.0.0-6-next.24
|
||||
|
||||
## 6.0.0-6-next.33
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [9718e033]
|
||||
- @verdaccio/config@6.0.0-6-next.55
|
||||
- @verdaccio/core@6.0.0-6-next.55
|
||||
- @verdaccio/utils@6.0.0-6-next.23
|
||||
- @verdaccio/local-storage@11.0.0-6-next.25
|
||||
- @verdaccio/logger@6.0.0-6-next.23
|
||||
|
||||
## 6.0.0-6-next.32
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [ef88da3b]
|
||||
- @verdaccio/config@6.0.0-6-next.54
|
||||
- @verdaccio/core@6.0.0-6-next.54
|
||||
- @verdaccio/logger@6.0.0-6-next.22
|
||||
- @verdaccio/local-storage@11.0.0-6-next.24
|
||||
- @verdaccio/utils@6.0.0-6-next.22
|
||||
|
||||
## 6.0.0-6-next.31
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@6.0.0-6-next.53
|
||||
- @verdaccio/logger@6.0.0-6-next.21
|
||||
- @verdaccio/local-storage@11.0.0-6-next.23
|
||||
- @verdaccio/config@6.0.0-6-next.53
|
||||
- @verdaccio/utils@6.0.0-6-next.21
|
||||
|
||||
## 6.0.0-6-next.30
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@6.0.0-6-next.52
|
||||
- @verdaccio/config@6.0.0-6-next.52
|
||||
- @verdaccio/logger@6.0.0-6-next.20
|
||||
- @verdaccio/local-storage@11.0.0-6-next.22
|
||||
- @verdaccio/utils@6.0.0-6-next.20
|
||||
|
||||
## 6.0.0-6-next.29
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [4b29d715]
|
||||
- @verdaccio/config@6.0.0-6-next.51
|
||||
- @verdaccio/core@6.0.0-6-next.51
|
||||
- @verdaccio/local-storage@11.0.0-6-next.21
|
||||
- @verdaccio/logger@6.0.0-6-next.19
|
||||
- @verdaccio/utils@6.0.0-6-next.19
|
||||
|
||||
## 6.0.0-6-next.28
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@6.0.0-6-next.50
|
||||
- @verdaccio/config@6.0.0-6-next.50
|
||||
- @verdaccio/logger@6.0.0-6-next.18
|
||||
- @verdaccio/local-storage@11.0.0-6-next.20
|
||||
- @verdaccio/utils@6.0.0-6-next.18
|
||||
|
||||
## 6.0.0-6-next.27
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/local-storage@11.0.0-6-next.19
|
||||
- @verdaccio/core@6.0.0-6-next.49
|
||||
- @verdaccio/config@6.0.0-6-next.49
|
||||
- @verdaccio/logger@6.0.0-6-next.17
|
||||
- @verdaccio/utils@6.0.0-6-next.17
|
||||
|
||||
## 6.0.0-6-next.26
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [43f32687]
|
||||
- Updated dependencies [9fc2e796]
|
||||
- Updated dependencies [62c24b63]
|
||||
- @verdaccio/core@6.0.0-6-next.48
|
||||
- @verdaccio/config@6.0.0-6-next.48
|
||||
- @verdaccio/local-storage@11.0.0-6-next.18
|
||||
- @verdaccio/utils@6.0.0-6-next.16
|
||||
- @verdaccio/logger@6.0.0-6-next.16
|
||||
|
||||
## 6.0.0-6-next.25
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@6.0.0-6-next.47
|
||||
- @verdaccio/config@6.0.0-6-next.47
|
||||
- @verdaccio/logger@6.0.0-6-next.15
|
||||
- @verdaccio/local-storage@11.0.0-6-next.17
|
||||
- @verdaccio/utils@6.0.0-6-next.15
|
||||
|
||||
## 6.0.0-6-next.24
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [b849128d]
|
||||
- @verdaccio/core@6.0.0-6-next.8
|
||||
- @verdaccio/config@6.0.0-6-next.17
|
||||
- @verdaccio/logger@6.0.0-6-next.14
|
||||
- @verdaccio/local-storage@11.0.0-6-next.16
|
||||
- @verdaccio/utils@6.0.0-6-next.14
|
||||
|
||||
## 6.0.0-6-next.23
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 351aeeaa: fix(deps): @verdaccio/utils should be a prod dep of local-storage
|
||||
- Updated dependencies [351aeeaa]
|
||||
- @verdaccio/core@6.0.0-6-next.7
|
||||
- @verdaccio/logger@6.0.0-6-next.13
|
||||
- @verdaccio/local-storage@11.0.0-6-next.15
|
||||
- @verdaccio/config@6.0.0-6-next.16
|
||||
- @verdaccio/utils@6.0.0-6-next.13
|
||||
|
||||
## 6.0.0-6-next.22
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [37274e4c]
|
||||
- @verdaccio/local-storage@11.0.0-6-next.14
|
||||
- @verdaccio/core@6.0.0-6-next.6
|
||||
- @verdaccio/logger@6.0.0-6-next.12
|
||||
|
||||
## 6.0.0-6-next.21
|
||||
|
||||
### Major Changes
|
||||
|
||||
- 292c0a37: feat!: replace deprecated request dependency by got
|
||||
|
||||
This is a big refactoring of the core, fetching dependencies, improve code, more tests and better stability. This is essential for the next release, will take some time but would allow modularize more the core.
|
||||
|
||||
## Notes
|
||||
|
||||
- Remove deprecated `request` by other `got`, retry improved, custom Agent ( got does not include it built-in)
|
||||
- Remove `async` dependency from storage (used by core) it was linked with proxy somehow safe to remove now
|
||||
- Refactor with promises instead callback wherever is possible
|
||||
- ~Document the API~
|
||||
- Improve testing, integration tests
|
||||
- Bugfix
|
||||
- Clean up old validations
|
||||
- Improve performance
|
||||
|
||||
## 💥 Breaking changes
|
||||
|
||||
- Plugin API methods were callbacks based are returning promises, this will break current storage plugins, check documentation for upgrade.
|
||||
- Write Tarball, Read Tarball methods parameters change, a new set of options like `AbortController` signals are being provided to the `addAbortSignal` can be internally used with Streams when a request is aborted. eg: `addAbortSignal(signal, fs.createReadStream(pathName));`
|
||||
- `@verdaccio/streams` stream abort support is legacy is being deprecated removed
|
||||
- Remove AWS and Google Cloud packages for future refactoring [#2574](https://github.com/verdaccio/verdaccio/pull/2574).
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [292c0a37]
|
||||
- Updated dependencies [a3a209b5]
|
||||
- Updated dependencies [00d1d2a1]
|
||||
- @verdaccio/config@6.0.0-6-next.15
|
||||
- @verdaccio/core@6.0.0-6-next.6
|
||||
- @verdaccio/logger@6.0.0-6-next.12
|
||||
- @verdaccio/local-storage@11.0.0-6-next.13
|
||||
- @verdaccio/utils@6.0.0-6-next.12
|
||||
|
||||
## 6.0.0-6-next.20
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [d43894e8]
|
||||
- Updated dependencies [d08fe29d]
|
||||
- @verdaccio/config@6.0.0-6-next.14
|
||||
- @verdaccio/local-storage@11.0.0-6-next.12
|
||||
- @verdaccio/core@6.0.0-6-next.5
|
||||
- @verdaccio/streams@11.0.0-6-next.5
|
||||
- @verdaccio/logger@6.0.0-6-next.11
|
||||
|
||||
## 6.0.0-6-next.19
|
||||
|
||||
### Major Changes
|
||||
|
||||
- 82cb0f2b: feat!: config.logs throw an error, logging config not longer accept array or logs property
|
||||
|
||||
### 💥 Breaking change
|
||||
|
||||
This is valid
|
||||
|
||||
```yaml
|
||||
log: { type: stdout, format: pretty, level: http }
|
||||
```
|
||||
|
||||
This is invalid
|
||||
|
||||
```yaml
|
||||
logs: { type: stdout, format: pretty, level: http }
|
||||
```
|
||||
|
||||
or
|
||||
|
||||
```yaml
|
||||
logs:
|
||||
- [{ type: stdout, format: pretty, level: http }]
|
||||
```
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 5167bb52: feat: ui search support for remote, local and private packages
|
||||
|
||||
The command `npm search` search globally and return all matches, with this improvement the user interface
|
||||
is powered with the same capabilities.
|
||||
|
||||
The UI also tag where is the origin the package with a tag, also provide the latest version and description of the package.
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [82cb0f2b]
|
||||
- Updated dependencies [5167bb52]
|
||||
- @verdaccio/config@6.0.0-6-next.13
|
||||
- @verdaccio/core@6.0.0-6-next.5
|
||||
- @verdaccio/logger@6.0.0-6-next.11
|
||||
- @verdaccio/local-storage@11.0.0-6-next.12
|
||||
- @verdaccio/utils@6.0.0-6-next.11
|
||||
- @verdaccio/streams@11.0.0-6-next.5
|
||||
|
||||
## 6.0.0-6-next.18
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [b78f3525]
|
||||
- @verdaccio/logger@6.0.0-6-next.10
|
||||
|
||||
## 6.0.0-6-next.17
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [730b5d8c]
|
||||
- @verdaccio/logger@6.0.0-6-next.9
|
||||
|
||||
## 6.0.0-6-next.16
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [a828271d]
|
||||
- Updated dependencies [24b9be02]
|
||||
- Updated dependencies [e75c0a3b]
|
||||
- Updated dependencies [b13a3fef]
|
||||
- @verdaccio/local-storage@11.0.0-6-next.11
|
||||
- @verdaccio/utils@6.0.0-6-next.10
|
||||
- @verdaccio/core@6.0.0-6-next.4
|
||||
- @verdaccio/logger@6.0.0-6-next.8
|
||||
- @verdaccio/config@6.0.0-6-next.12
|
||||
- @verdaccio/streams@11.0.0-6-next.5
|
||||
|
||||
## 6.0.0-6-next.15
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [f86c31ed]
|
||||
- @verdaccio/utils@6.0.0-6-next.9
|
||||
- @verdaccio/config@6.0.0-6-next.11
|
||||
- @verdaccio/local-storage@11.0.0-6-next.10
|
||||
|
||||
## 6.0.0-6-next.14
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [6c1eb021]
|
||||
- @verdaccio/core@6.0.0-6-next.3
|
||||
- @verdaccio/logger@6.0.0-6-next.7
|
||||
- @verdaccio/config@6.0.0-6-next.10
|
||||
- @verdaccio/local-storage@11.0.0-6-next.10
|
||||
- @verdaccio/utils@6.0.0-6-next.8
|
||||
|
||||
## 6.0.0-6-next.13
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- b702ea36: abort search request support for proxy
|
||||
- 154b2ecd: refactor: remove @verdaccio/commons-api in favor @verdaccio/core and remove duplications
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [794af76c]
|
||||
- Updated dependencies [154b2ecd]
|
||||
- @verdaccio/config@6.0.0-6-next.9
|
||||
- @verdaccio/core@6.0.0-6-next.2
|
||||
- @verdaccio/streams@11.0.0-6-next.5
|
||||
- @verdaccio/logger@6.0.0-6-next.6
|
||||
- @verdaccio/utils@6.0.0-6-next.7
|
||||
- @verdaccio/local-storage@11.0.0-6-next.9
|
||||
|
||||
## 6.0.0-6-next.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [2c594910]
|
||||
- @verdaccio/logger@6.0.0-6-next.5
|
||||
|
||||
## 6.0.0-6-next.11
|
||||
|
||||
### Major Changes
|
||||
|
||||
- 459b6fa7: refactor: search v1 endpoint and local-database
|
||||
|
||||
- refactor search `api v1` endpoint, improve performance
|
||||
- remove usage of `async` dependency https://github.com/verdaccio/verdaccio/issues/1225
|
||||
- refactor method storage class
|
||||
- create new module `core` to reduce the ammount of modules with utilities
|
||||
- use `undici` instead `node-fetch`
|
||||
- use `fastify` instead `express` for functional test
|
||||
|
||||
### Breaking changes
|
||||
|
||||
- plugin storage API changes
|
||||
- remove old search endpoint (return 404)
|
||||
- filter local private packages at plugin level
|
||||
|
||||
The storage api changes for methods `get`, `add`, `remove` as promise base. The `search` methods also changes and recieves a `query` object that contains all query params from the client.
|
||||
|
||||
```ts
|
||||
export interface IPluginStorage<T> extends IPlugin {
|
||||
add(name: string): Promise<void>;
|
||||
remove(name: string): Promise<void>;
|
||||
get(): Promise<any>;
|
||||
init(): Promise<void>;
|
||||
getSecret(): Promise<string>;
|
||||
setSecret(secret: string): Promise<any>;
|
||||
getPackageStorage(packageInfo: string): IPackageStorage;
|
||||
search(query: searchUtils.SearchQuery): Promise<searchUtils.SearchItem[]>;
|
||||
saveToken(token: Token): Promise<any>;
|
||||
deleteToken(user: string, tokenKey: string): Promise<any>;
|
||||
readTokens(filter: TokenFilter): Promise<Token[]>;
|
||||
}
|
||||
```
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [459b6fa7]
|
||||
- @verdaccio/config@6.0.0-6-next.8
|
||||
- @verdaccio/commons-api@11.0.0-6-next.4
|
||||
- @verdaccio/core@6.0.0-6-next.1
|
||||
- @verdaccio/local-storage@11.0.0-6-next.8
|
||||
- @verdaccio/streams@11.0.0-6-next.4
|
||||
- @verdaccio/utils@6.0.0-6-next.6
|
||||
- @verdaccio/logger@6.0.0-6-next.4
|
||||
|
||||
## 6.0.0-6-next.10
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [df0da3d6]
|
||||
- @verdaccio/local-storage@11.0.0-6-next.7
|
||||
|
||||
## 6.0.0-6-next.9
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [d2c65da9]
|
||||
- @verdaccio/utils@6.0.0-6-next.5
|
||||
- @verdaccio/config@6.0.0-6-next.7
|
||||
|
||||
## 6.0.0-6-next.8
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [1b217fd3]
|
||||
- @verdaccio/config@6.0.0-6-next.6
|
||||
- @verdaccio/local-storage@11.0.0-6-next.6
|
||||
|
||||
## 6.0.0-6-next.7
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [1810ed0d]
|
||||
- Updated dependencies [648575aa]
|
||||
- @verdaccio/config@6.0.0-6-next.5
|
||||
- @verdaccio/utils@6.0.0-6-next.4
|
||||
|
||||
## 6.0.0-6-next.6
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [5c5057fc]
|
||||
- @verdaccio/config@6.0.0-6-next.4
|
||||
- @verdaccio/logger@6.0.0-6-next.4
|
||||
- @verdaccio/local-storage@11.0.0-6-next.5
|
||||
- @verdaccio/streams@11.0.0-alpha.3
|
||||
|
||||
## 6.0.0-6-next.5
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [cb2281a5]
|
||||
- @verdaccio/local-storage@11.0.0-6-next.5
|
||||
|
||||
## 5.0.0-alpha.4
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- fecbb9be: chore: add release step to private regisry on merge changeset pr
|
||||
- Updated dependencies [fecbb9be]
|
||||
- @verdaccio/local-storage@10.0.0-alpha.4
|
||||
- @verdaccio/config@5.0.0-alpha.3
|
||||
- @verdaccio/commons-api@10.0.0-alpha.3
|
||||
- @verdaccio/streams@10.0.0-alpha.3
|
||||
- @verdaccio/logger@5.0.0-alpha.3
|
||||
- @verdaccio/utils@5.0.0-alpha.3
|
||||
|
||||
## 5.0.0-alpha.3
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 54c58d1e: feat: add server rate limit protection to all request
|
||||
|
||||
To modify custom values, use the server settings property.
|
||||
|
||||
```markdown
|
||||
server:
|
||||
|
||||
## https://www.npmjs.com/package/express-rate-limit#configuration-options
|
||||
|
||||
rateLimit:
|
||||
windowMs: 1000
|
||||
max: 10000
|
||||
```
|
||||
|
||||
The values are intended to be high, if you want to improve security of your server consider
|
||||
using different values.
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [54c58d1e]
|
||||
- @verdaccio/config@5.0.0-alpha.2
|
||||
- @verdaccio/commons-api@10.0.0-alpha.2
|
||||
- @verdaccio/local-storage@10.0.0-alpha.3
|
||||
- @verdaccio/streams@10.0.0-alpha.2
|
||||
- @verdaccio/logger@5.0.0-alpha.2
|
||||
- @verdaccio/utils@5.0.0-alpha.2
|
||||
|
||||
## 5.0.0-alpha.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [2a327c4b]
|
||||
- @verdaccio/local-storage@10.0.0-alpha.2
|
||||
|
||||
## 5.0.0-alpha.1
|
||||
|
||||
### Major Changes
|
||||
|
||||
- d87fa026: feat!: experiments config renamed to flags
|
||||
|
||||
- The `experiments` configuration is renamed to `flags`. The functionality is exactly the same.
|
||||
|
||||
```js
|
||||
flags: token: false;
|
||||
search: false;
|
||||
```
|
||||
|
||||
- The `self_path` property from the config file is being removed in favor of `config_file` full path.
|
||||
- Refactor `config` module, better types and utilities
|
||||
|
||||
- da1ee9c8: - Replace signature handler for legacy tokens by removing deprecated crypto.createDecipher by createCipheriv
|
||||
|
||||
- Introduce environment variables for legacy tokens
|
||||
|
||||
### Code Improvements
|
||||
|
||||
- Add debug library for improve developer experience
|
||||
|
||||
### Breaking change
|
||||
|
||||
- The new signature invalidates all previous tokens generated by Verdaccio 4 or previous versions.
|
||||
- The secret key must have 32 characters long.
|
||||
|
||||
### New environment variables
|
||||
|
||||
- `VERDACCIO_LEGACY_ALGORITHM`: Allows to define the specific algorithm for the token signature which by default is `aes-256-ctr`
|
||||
- `VERDACCIO_LEGACY_ENCRYPTION_KEY`: By default, the token stores in the database, but using this variable allows to get it from memory
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 26b494cb: feat: add typescript project references settings
|
||||
|
||||
Reading https://ebaytech.berlin/optimizing-multi-package-apps-with-typescript-project-references-d5c57a3b4440 I realized I can use project references to solve the issue to pre-compile modules on develop mode.
|
||||
|
||||
It allows to navigate (IDE) trough the packages without need compile the packages.
|
||||
|
||||
Add two `tsconfig`, one using the previous existing configuration that is able to produce declaration files (`tsconfig.build`) and a new one `tsconfig` which is enables [_projects references_](https://www.typescriptlang.org/docs/handbook/project-references.html).
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- ae52ba35: refactor: migrate request to node-fetch at hooks package
|
||||
- b57b4338: Enable prerelease mode with **changesets**
|
||||
- 31af0164: ESLint Warnings Fixed
|
||||
|
||||
Related to issue #1461
|
||||
|
||||
- max-len: most of the sensible max-len errors are fixed
|
||||
- no-unused-vars: most of these types of errors are fixed by deleting not needed declarations
|
||||
- @typescript-eslint/no-unused-vars: same as above
|
||||
|
||||
- Updated dependencies [d87fa026]
|
||||
- Updated dependencies [da1ee9c8]
|
||||
- Updated dependencies [26b494cb]
|
||||
- Updated dependencies [b57b4338]
|
||||
- Updated dependencies [add778d5]
|
||||
- Updated dependencies [31af0164]
|
||||
- @verdaccio/config@5.0.0-alpha.1
|
||||
- @verdaccio/commons-api@10.0.0-alpha.1
|
||||
- @verdaccio/local-storage@10.0.0-alpha.1
|
||||
- @verdaccio/streams@10.0.0-alpha.1
|
||||
- @verdaccio/logger@5.0.0-alpha.1
|
||||
- @verdaccio/utils@5.0.0-alpha.1
|
||||
|
||||
## 5.0.0-alpha.1
|
||||
|
||||
### Major Changes
|
||||
|
||||
- d87fa0268: feat!: experiments config renamed to flags
|
||||
|
||||
- The `experiments` configuration is renamed to `flags`. The functionality is exactly the same.
|
||||
|
||||
```js
|
||||
flags: token: false;
|
||||
search: false;
|
||||
```
|
||||
|
||||
- The `self_path` property from the config file is being removed in favor of `config_file` full path.
|
||||
- Refactor `config` module, better types and utilities
|
||||
|
||||
- da1ee9c82: - Replace signature handler for legacy tokens by removing deprecated crypto.createDecipher by createCipheriv
|
||||
|
||||
- Introduce environment variables for legacy tokens
|
||||
|
||||
### Code Improvements
|
||||
|
||||
- Add debug library for improve developer experience
|
||||
|
||||
### Breaking change
|
||||
|
||||
- The new signature invalidates all previous tokens generated by Verdaccio 4 or previous versions.
|
||||
- The secret key must have 32 characters long.
|
||||
|
||||
### New environment variables
|
||||
|
||||
- `VERDACCIO_LEGACY_ALGORITHM`: Allows to define the specific algorithm for the token signature which by default is `aes-256-ctr`
|
||||
- `VERDACCIO_LEGACY_ENCRYPTION_KEY`: By default, the token stores in the database, but using this variable allows to get it from memory
|
||||
|
||||
### Minor Changes
|
||||
|
||||
- 26b494cbd: feat: add typescript project references settings
|
||||
|
||||
Reading https://ebaytech.berlin/optimizing-multi-package-apps-with-typescript-project-references-d5c57a3b4440 I realized I can use project references to solve the issue to pre-compile modules on develop mode.
|
||||
|
||||
It allows to navigate (IDE) trough the packages without need compile the packages.
|
||||
|
||||
Add two `tsconfig`, one using the previous existing configuration that is able to produce declaration files (`tsconfig.build`) and a new one `tsconfig` which is enables [_projects references_](https://www.typescriptlang.org/docs/handbook/project-references.html).
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- ae52ba352: refactor: migrate request to node-fetch at hooks package
|
||||
- b57b43388: Enable prerelease mode with **changesets**
|
||||
- 31af01641: ESLint Warnings Fixed
|
||||
|
||||
Related to issue #1461
|
||||
|
||||
- max-len: most of the sensible max-len errors are fixed
|
||||
- no-unused-vars: most of these types of errors are fixed by deleting not needed declarations
|
||||
- @typescript-eslint/no-unused-vars: same as above
|
||||
|
||||
- Updated dependencies [d87fa0268]
|
||||
- Updated dependencies [da1ee9c82]
|
||||
- Updated dependencies [26b494cbd]
|
||||
- Updated dependencies [b57b43388]
|
||||
- Updated dependencies [add778d55]
|
||||
- Updated dependencies [31af01641]
|
||||
- @verdaccio/config@5.0.0-alpha.1
|
||||
- @verdaccio/commons-api@10.0.0-alpha.0
|
||||
- @verdaccio/local-storage@10.0.0-alpha.0
|
||||
- @verdaccio/streams@10.0.0-alpha.0
|
||||
- @verdaccio/logger@5.0.0-alpha.1
|
||||
- @verdaccio/utils@5.0.0-alpha.1
|
||||
- cce258e: refactor: search package
|
||||
- @verdaccio/core@7.0.0-next-7.12
|
||||
- @verdaccio/config@7.0.0-next-7.12
|
||||
- @verdaccio/proxy@7.0.0-next-7.12
|
||||
- @verdaccio/logger@7.0.0-next-7.12
|
||||
|
||||
@@ -3,10 +3,9 @@ const config = require('../../jest/config');
|
||||
module.exports = Object.assign({}, config, {
|
||||
coverageThreshold: {
|
||||
global: {
|
||||
branches: 79,
|
||||
functions: 94,
|
||||
lines: 87,
|
||||
statements: 87,
|
||||
branches: 0,
|
||||
functions: 0,
|
||||
lines: 0,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"name": "@verdaccio/search",
|
||||
"version": "7.0.0-next.2",
|
||||
"description": "verdaccio search utitlity tools",
|
||||
"main": "./build/dist.js",
|
||||
"version": "7.0.0-next-7.1",
|
||||
"description": "verdaccio search proxy",
|
||||
"main": "./build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
"author": {
|
||||
"name": "Juan Picado",
|
||||
@@ -26,21 +26,30 @@
|
||||
"verdaccio"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
"node": ">=18"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "rimraf ./build",
|
||||
"test": "vitest run",
|
||||
"test": "jest",
|
||||
"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": "esbuild src/index.ts --bundle --outfile=build/dist.js --platform=node --target=node12 && pnpm run build:types"
|
||||
"watch": "pnpm build:js -- --watch",
|
||||
"build": "pnpm run build:js && pnpm run build:types"
|
||||
},
|
||||
"dependencies": {
|
||||
"debug": "4.3.4",
|
||||
"lodash": "4.17.21",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/proxy": "workspace:7.0.0-next-7.12"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "workspace:12.0.0-next.2",
|
||||
"@orama/orama": "1.2.4",
|
||||
"debug": "4.3.4",
|
||||
"esbuild": "0.14.10"
|
||||
"mockdate": "3.0.5",
|
||||
"nock": "13.5.1",
|
||||
"node-mocks-http": "1.14.1"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
export { default as SearchMemoryIndexer } from './indexer';
|
||||
export { Search as default } from './search';
|
||||
export * from './search-utils';
|
||||
|
||||
15
packages/search/src/search-utils.ts
Normal file
15
packages/search/src/search-utils.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { orderBy } from 'lodash';
|
||||
|
||||
import { searchUtils } from '@verdaccio/core';
|
||||
|
||||
export function removeDuplicates(results: searchUtils.SearchPackageItem[]) {
|
||||
const pkgNames: any[] = [];
|
||||
const orderByResults = orderBy(results, ['verdaccioPrivate', 'asc']);
|
||||
return orderByResults.filter((pkg) => {
|
||||
if (pkgNames.includes(pkg?.package?.name)) {
|
||||
return false;
|
||||
}
|
||||
pkgNames.push(pkg?.package?.name);
|
||||
return true;
|
||||
});
|
||||
}
|
||||
104
packages/search/src/search.ts
Normal file
104
packages/search/src/search.ts
Normal file
@@ -0,0 +1,104 @@
|
||||
import buildDebug from 'debug';
|
||||
import _ from 'lodash';
|
||||
import { PassThrough } from 'stream';
|
||||
|
||||
import { searchUtils } from '@verdaccio/core';
|
||||
import { IProxy, ProxyInstanceList, ProxySearchParams, setupUpLinks } from '@verdaccio/proxy';
|
||||
import { Config, Logger } from '@verdaccio/types';
|
||||
|
||||
import { removeDuplicates } from './search-utils';
|
||||
|
||||
const debug = buildDebug('verdaccio:search');
|
||||
|
||||
class Search {
|
||||
public readonly uplinks: ProxyInstanceList;
|
||||
public readonly logger: Logger;
|
||||
constructor(config: Config, logger: Logger) {
|
||||
this.logger = logger.child({ module: 'proxy' });
|
||||
this.uplinks = setupUpLinks(config, this.logger);
|
||||
}
|
||||
|
||||
private getProxyList() {
|
||||
const uplinksList = Object.keys(this.uplinks);
|
||||
|
||||
return uplinksList;
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle search on packages and proxies.
|
||||
* Iterate all proxies configured and search in all endpoints in v2 and pipe all responses
|
||||
* to a stream, once the proxies request has finished search in local storage for all packages
|
||||
* (privated and cached).
|
||||
*/
|
||||
public async search(options: ProxySearchParams): Promise<searchUtils.SearchPackageItem[]> {
|
||||
const results: searchUtils.SearchPackageItem[] = [];
|
||||
const upLinkList = this.getProxyList();
|
||||
// const transformResults = new TransFormResults({ objectMode: true });
|
||||
const streamPassThrough = new PassThrough({ objectMode: true });
|
||||
debug('uplinks found %s', upLinkList.length);
|
||||
const searchUplinksStreams = upLinkList.map((uplinkId: string) => {
|
||||
const uplink = this.uplinks[uplinkId];
|
||||
if (!uplink) {
|
||||
// this line should never happens
|
||||
this.logger.error({ uplinkId }, 'uplink @upLinkId not found');
|
||||
}
|
||||
return this.consumeSearchStream(uplinkId, uplink, options, streamPassThrough);
|
||||
});
|
||||
|
||||
try {
|
||||
debug('searching on %s uplinks...', searchUplinksStreams?.length);
|
||||
// only process those streams end successfully, if all request fails
|
||||
// just include local storage results (if local fails then return 500)
|
||||
await Promise.allSettled([...searchUplinksStreams]);
|
||||
streamPassThrough.end();
|
||||
|
||||
for await (const chunk of streamPassThrough) {
|
||||
if (_.isArray(chunk)) {
|
||||
(chunk as searchUtils.SearchItem[])
|
||||
.filter((pkgItem) => {
|
||||
debug(`streaming remote pkg name ${pkgItem?.package?.name}`);
|
||||
return true;
|
||||
})
|
||||
.forEach((pkgItem) => {
|
||||
// @ts-ignore
|
||||
return results.push({
|
||||
...pkgItem,
|
||||
verdaccioPkgCached: false,
|
||||
verdaccioPrivate: false,
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
debug('searching all uplinks done');
|
||||
} catch (err: any) {
|
||||
this.logger.error({ err: err?.message }, ' error on uplinks search @{err}');
|
||||
throw err;
|
||||
}
|
||||
|
||||
return removeDuplicates(results);
|
||||
}
|
||||
|
||||
/**
|
||||
* Consume the upstream and pipe it to a transformable stream.
|
||||
*/
|
||||
private consumeSearchStream(
|
||||
uplinkId: string,
|
||||
uplink: IProxy,
|
||||
options: ProxySearchParams,
|
||||
searchPassThrough: PassThrough
|
||||
): Promise<any> {
|
||||
return uplink.search({ ...options }).then((bodyStream) => {
|
||||
bodyStream.pipe(searchPassThrough, { end: false });
|
||||
bodyStream.on('error', (err: any): void => {
|
||||
this.logger.error(
|
||||
{ uplinkId, err: err },
|
||||
'search error for uplink @{uplinkId}: @{err?.message}'
|
||||
);
|
||||
searchPassThrough.end();
|
||||
});
|
||||
return new Promise((resolve) => bodyStream.on('end', resolve));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export { Search };
|
||||
273
packages/search/test/partials/search.json
Normal file
273
packages/search/test/partials/search.json
Normal file
@@ -0,0 +1,273 @@
|
||||
{
|
||||
"objects": [
|
||||
{
|
||||
"package": {
|
||||
"name": "verdaccio",
|
||||
"scope": "unscoped",
|
||||
"version": "5.29.2",
|
||||
"description": "A lightweight private npm proxy registry",
|
||||
"keywords": [
|
||||
"private",
|
||||
"package",
|
||||
"repository",
|
||||
"registry",
|
||||
"enterprise",
|
||||
"modules",
|
||||
"proxy",
|
||||
"server",
|
||||
"verdaccio"
|
||||
],
|
||||
"date": "2024-02-21T19:56:45.379Z",
|
||||
"links": {
|
||||
"npm": "https://www.npmjs.com/package/verdaccio",
|
||||
"homepage": "https://verdaccio.org",
|
||||
"repository": "https://github.com/verdaccio/verdaccio",
|
||||
"bugs": "https://github.com/verdaccio/verdaccio/issues"
|
||||
},
|
||||
"author": {
|
||||
"name": "Verdaccio Maintainers",
|
||||
"email": "test@test.com",
|
||||
"username": "verdaccio.npm"
|
||||
},
|
||||
"publisher": { "username": "verdaccio.npm", "email": "test@test.com" },
|
||||
"maintainers": [
|
||||
{ "username": "jotadeveloper", "email": "test@test.com" },
|
||||
{ "username": "ayusharma", "email": "test@test.com" },
|
||||
{ "username": "trentearl", "email": "test@test.com" },
|
||||
{ "username": "jmwilkinson", "email": "test@test.com" },
|
||||
{ "username": "sergiohgz", "email": "test@test.com" },
|
||||
{ "username": "verdaccio.npm", "email": "test@test.com" }
|
||||
]
|
||||
},
|
||||
"flags": { "insecure": 0 },
|
||||
"score": {
|
||||
"final": 0.28923397536716566,
|
||||
"detail": {
|
||||
"quality": 0.39403701233442867,
|
||||
"popularity": 0.1553034428576298,
|
||||
"maintenance": 0.3333333333333333
|
||||
}
|
||||
},
|
||||
"searchScore": 100000.26
|
||||
},
|
||||
{
|
||||
"package": {
|
||||
"name": "@verdaccio/file-locking",
|
||||
"scope": "verdaccio",
|
||||
"version": "10.3.1",
|
||||
"description": "library that handle file locking",
|
||||
"keywords": ["verdaccio", "lock", "fs"],
|
||||
"date": "2023-03-29T18:48:01.509Z",
|
||||
"links": {
|
||||
"npm": "https://www.npmjs.com/package/%40verdaccio%2Ffile-locking",
|
||||
"homepage": "https://verdaccio.org",
|
||||
"repository": "https://github.com/verdaccio/monorepo",
|
||||
"bugs": "https://github.com/verdaccio/monorepo/issues"
|
||||
},
|
||||
"author": {
|
||||
"name": "Juan Picado",
|
||||
"email": "test@test.com",
|
||||
"username": "jotadeveloper"
|
||||
},
|
||||
"publisher": { "username": "verdaccio.npm", "email": "test@test.com" },
|
||||
"maintainers": [
|
||||
{ "username": "sergiohgz", "email": "test@test.com" },
|
||||
{ "username": "verdaccio.npm", "email": "test@test.com" },
|
||||
{ "username": "jotadeveloper", "email": "test@test.com" },
|
||||
{ "username": "ayusharma", "email": "test@test.com" }
|
||||
]
|
||||
},
|
||||
"flags": { "insecure": 0 },
|
||||
"score": {
|
||||
"final": 0.4347300973147867,
|
||||
"detail": {
|
||||
"quality": 0.8773185907360584,
|
||||
"popularity": 0.15732960498192844,
|
||||
"maintenance": 0.33276902385798346
|
||||
}
|
||||
},
|
||||
"searchScore": 0.0010177421
|
||||
},
|
||||
{
|
||||
"package": {
|
||||
"name": "verdaccio-service-construct",
|
||||
"scope": "unscoped",
|
||||
"version": "0.0.602",
|
||||
"keywords": ["cdk"],
|
||||
"date": "2024-03-09T01:14:46.812Z",
|
||||
"links": { "npm": "https://www.npmjs.com/package/verdaccio-service-construct" },
|
||||
"author": {
|
||||
"name": "Ayush Goyal",
|
||||
"email": "ayush987goyal@gmail.com",
|
||||
"username": "ayush987goyal"
|
||||
},
|
||||
"publisher": { "username": "ayush987goyal", "email": "ayush987goyal@gmail.com" },
|
||||
"maintainers": [{ "username": "ayush987goyal", "email": "ayush987goyal@gmail.com" }]
|
||||
},
|
||||
"flags": { "insecure": 0, "unstable": true },
|
||||
"score": {
|
||||
"final": 0.22683523291517088,
|
||||
"detail": {
|
||||
"quality": 0.32276139168703444,
|
||||
"popularity": 0.038114710692553955,
|
||||
"maintenance": 0.3333333333333333
|
||||
}
|
||||
},
|
||||
"searchScore": 3.968321e-8
|
||||
},
|
||||
{
|
||||
"package": {
|
||||
"name": "verdaccio-theme-hilio",
|
||||
"scope": "unscoped",
|
||||
"version": "1.14.5",
|
||||
"description": "Verdaccio User Interface",
|
||||
"keywords": ["verdaccio", "verdaccio-plugin", "verdaccio-theme"],
|
||||
"date": "2021-01-12T05:48:12.643Z",
|
||||
"links": {
|
||||
"npm": "https://www.npmjs.com/package/verdaccio-theme-hilio",
|
||||
"homepage": "https://verdaccio.org",
|
||||
"repository": "https://github.com/verdaccio/ui",
|
||||
"bugs": "https://github.com/verdaccio/ui/issues"
|
||||
},
|
||||
"author": { "name": "Verdaccio Core Team", "email": "test@test.com" },
|
||||
"publisher": { "username": "joebnb", "email": "joebnb@qq.com" },
|
||||
"maintainers": [{ "username": "joebnb", "email": "joebnb@qq.com" }]
|
||||
},
|
||||
"flags": { "insecure": 0 },
|
||||
"score": {
|
||||
"final": 0.20823236027862208,
|
||||
"detail": {
|
||||
"quality": 0.6388395536236707,
|
||||
"popularity": 0.022545843955562445,
|
||||
"maintenance": 0.02482699659164002
|
||||
}
|
||||
},
|
||||
"searchScore": 3.8766167e-8
|
||||
},
|
||||
{
|
||||
"package": {
|
||||
"name": "@hamstudy/verdaccio-aws-s3-storage-sse",
|
||||
"scope": "hamstudy",
|
||||
"version": "10.3.2",
|
||||
"description": "AWS S3 storage implementation for Verdaccio - fork that adds support for SSE-C, SSE-S3, and AWS:KMS",
|
||||
"keywords": ["verdaccio", "plugin", "storage", "aws"],
|
||||
"date": "2022-10-04T21:39:04.907Z",
|
||||
"links": {
|
||||
"npm": "https://www.npmjs.com/package/%40hamstudy%2Fverdaccio-aws-s3-storage-sse",
|
||||
"homepage": "https://verdaccio.org",
|
||||
"repository": "https://github.com/taxilian/verdaccio-monorepo",
|
||||
"bugs": "https://github.com/verdaccio/monorepo/issues"
|
||||
},
|
||||
"author": {
|
||||
"name": "Richard Bateman",
|
||||
"email": "taxilian@gmail.com",
|
||||
"username": "taxilian"
|
||||
},
|
||||
"publisher": { "username": "taxilian", "email": "taxilian@gmail.com" },
|
||||
"maintainers": [
|
||||
{ "username": "rumbcam", "email": "kd7rmx@batemansr.us" },
|
||||
{ "username": "taxilian", "email": "taxilian@gmail.com" },
|
||||
{ "username": "bloveridge", "email": "bloveridge@gmail.com" }
|
||||
]
|
||||
},
|
||||
"flags": { "insecure": 0 },
|
||||
"score": {
|
||||
"final": 0.220856041974831,
|
||||
"detail": {
|
||||
"quality": 0.6217078604565084,
|
||||
"popularity": 0.0008629747032998004,
|
||||
"maintenance": 0.09726183626206726
|
||||
}
|
||||
},
|
||||
"searchScore": 3.8267025e-8
|
||||
},
|
||||
{
|
||||
"package": {
|
||||
"name": "testing-verdaccio",
|
||||
"scope": "unscoped",
|
||||
"version": "1.1.2",
|
||||
"description": "this is just for Assignment puropse",
|
||||
"date": "2023-03-20T07:58:49.325Z",
|
||||
"links": { "npm": "https://www.npmjs.com/package/testing-verdaccio" },
|
||||
"publisher": { "username": "samyak3009", "email": "samyak3009@gmail.com" },
|
||||
"maintainers": [{ "username": "samyak3009", "email": "samyak3009@gmail.com" }]
|
||||
},
|
||||
"flags": { "insecure": 0 },
|
||||
"score": {
|
||||
"final": 0.23106132265338952,
|
||||
"detail": {
|
||||
"quality": 0.39172042177373956,
|
||||
"popularity": 0.0012551184665870981,
|
||||
"maintenance": 0.3231597275941777
|
||||
}
|
||||
},
|
||||
"searchScore": 3.383671e-8
|
||||
},
|
||||
{
|
||||
"package": {
|
||||
"name": "verdaccio-staryauthgroup",
|
||||
"scope": "unscoped",
|
||||
"version": "0.0.1",
|
||||
"description": "A verdaccio plugin to control auth group",
|
||||
"keywords": ["verdaccio,auth,plugin,verdaccio-]"],
|
||||
"date": "2023-07-12T01:59:29.928Z",
|
||||
"links": { "npm": "https://www.npmjs.com/package/verdaccio-staryauthgroup" },
|
||||
"author": { "name": "weihuago4", "email": "weihuago4@gmail.com" },
|
||||
"publisher": { "username": "liuweihua", "email": "weihualau@126.com" },
|
||||
"maintainers": [{ "username": "liuweihua", "email": "weihualau@126.com" }]
|
||||
},
|
||||
"flags": { "insecure": 0, "unstable": true },
|
||||
"score": {
|
||||
"final": 0.2222439493540912,
|
||||
"detail": {
|
||||
"quality": 0.4337548917356935,
|
||||
"popularity": 0.0006994438979026641,
|
||||
"maintenance": 0.262493361340335
|
||||
}
|
||||
},
|
||||
"searchScore": 3.2598397e-8
|
||||
},
|
||||
{
|
||||
"package": {
|
||||
"name": "verdaccio-auth-gitlab",
|
||||
"scope": "unscoped",
|
||||
"version": "2.0.0-beta.11",
|
||||
"description": "Verdaccio authentication plugin by gitlab personal access token or oauth token or ci job token.",
|
||||
"keywords": [
|
||||
"verdaccio",
|
||||
"authentication",
|
||||
"auth",
|
||||
"plugin",
|
||||
"gitlab",
|
||||
"personal",
|
||||
"access",
|
||||
"oauth",
|
||||
"ci",
|
||||
"job",
|
||||
"token"
|
||||
],
|
||||
"date": "2022-12-07T11:00:06.767Z",
|
||||
"links": {
|
||||
"npm": "https://www.npmjs.com/package/verdaccio-auth-gitlab",
|
||||
"homepage": "https://github.com/pfdgithub/verdaccio-auth-gitlab",
|
||||
"repository": "https://github.com/pfdgithub/verdaccio-auth-gitlab",
|
||||
"bugs": "https://github.com/pfdgithub/verdaccio-auth-gitlab/issues"
|
||||
},
|
||||
"publisher": { "username": "pfdnpm", "email": "pfdfree@gmail.com" },
|
||||
"maintainers": [{ "username": "pfdnpm", "email": "pfdfree@gmail.com" }]
|
||||
},
|
||||
"flags": { "insecure": 0 },
|
||||
"score": {
|
||||
"final": 0.2194863817767726,
|
||||
"detail": {
|
||||
"quality": 0.4542787957560298,
|
||||
"popularity": 0.0025512045517420002,
|
||||
"maintenance": 0.2351709184481542
|
||||
}
|
||||
},
|
||||
"searchScore": 2.5283079e-8
|
||||
}
|
||||
],
|
||||
"total": 351,
|
||||
"time": "Sat Mar 09 2024 15:20:36 GMT+0000 (Coordinated Universal Time)"
|
||||
}
|
||||
102
packages/search/test/search.test.ts
Normal file
102
packages/search/test/search.test.ts
Normal file
@@ -0,0 +1,102 @@
|
||||
import nock from 'nock';
|
||||
|
||||
import { Config, getDefaultConfig } from '@verdaccio/config';
|
||||
import { logger, setup } from '@verdaccio/logger';
|
||||
|
||||
import { Search } from '../src/search';
|
||||
|
||||
setup({});
|
||||
|
||||
const domain = 'https://registry.npmjs.org';
|
||||
|
||||
describe('search', () => {
|
||||
const response = require('./partials/search.json');
|
||||
test('search', async () => {
|
||||
nock(domain).get('/-/v1/search').reply(200, response);
|
||||
const abort = new AbortController();
|
||||
const config = new Config(getDefaultConfig());
|
||||
const searchInstance = new Search(config, logger);
|
||||
const results = await searchInstance.search({
|
||||
query: { text: 'verdaccio', maintenance: 0, popularity: 0, quality: 0, size: 0 },
|
||||
abort,
|
||||
url: '/-/v1/search',
|
||||
});
|
||||
expect(results).toHaveLength(8);
|
||||
|
||||
expect(results[0]).toEqual({
|
||||
package: {
|
||||
name: 'verdaccio',
|
||||
scope: 'unscoped',
|
||||
version: '5.29.2',
|
||||
description: 'A lightweight private npm proxy registry',
|
||||
keywords: [
|
||||
'private',
|
||||
'package',
|
||||
'repository',
|
||||
'registry',
|
||||
'enterprise',
|
||||
'modules',
|
||||
'proxy',
|
||||
'server',
|
||||
'verdaccio',
|
||||
],
|
||||
date: '2024-02-21T19:56:45.379Z',
|
||||
links: {
|
||||
npm: 'https://www.npmjs.com/package/verdaccio',
|
||||
homepage: 'https://verdaccio.org',
|
||||
repository: 'https://github.com/verdaccio/verdaccio',
|
||||
bugs: 'https://github.com/verdaccio/verdaccio/issues',
|
||||
},
|
||||
author: {
|
||||
name: 'Verdaccio Maintainers',
|
||||
email: 'test@test.com',
|
||||
username: 'verdaccio.npm',
|
||||
},
|
||||
publisher: {
|
||||
username: 'verdaccio.npm',
|
||||
email: 'test@test.com',
|
||||
},
|
||||
maintainers: [
|
||||
{
|
||||
username: 'jotadeveloper',
|
||||
email: 'test@test.com',
|
||||
},
|
||||
{
|
||||
username: 'ayusharma',
|
||||
email: 'test@test.com',
|
||||
},
|
||||
{
|
||||
username: 'trentearl',
|
||||
email: 'test@test.com',
|
||||
},
|
||||
{
|
||||
username: 'jmwilkinson',
|
||||
email: 'test@test.com',
|
||||
},
|
||||
{
|
||||
username: 'sergiohgz',
|
||||
email: 'test@test.com',
|
||||
},
|
||||
{
|
||||
username: 'verdaccio.npm',
|
||||
email: 'test@test.com',
|
||||
},
|
||||
],
|
||||
},
|
||||
flags: {
|
||||
insecure: 0,
|
||||
},
|
||||
score: {
|
||||
final: 0.28923397536716566,
|
||||
detail: {
|
||||
quality: 0.39403701233442867,
|
||||
popularity: 0.1553034428576298,
|
||||
maintenance: 0.3333333333333333,
|
||||
},
|
||||
},
|
||||
searchScore: 100000.26,
|
||||
verdaccioPkgCached: false,
|
||||
verdaccioPrivate: false,
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -10,12 +10,6 @@
|
||||
{
|
||||
"path": "../config"
|
||||
},
|
||||
{
|
||||
"path": "../core/core"
|
||||
},
|
||||
{
|
||||
"path": "../logger/logger"
|
||||
},
|
||||
{
|
||||
"path": "../utils"
|
||||
}
|
||||
|
||||
@@ -1,5 +1,21 @@
|
||||
# @verdaccio/server
|
||||
|
||||
## 7.0.0-next-7.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/store@7.0.0-next-7.12
|
||||
- @verdaccio/api@7.0.0-next-7.12
|
||||
- @verdaccio/web@7.0.0-next-7.12
|
||||
- @verdaccio/core@7.0.0-next-7.12
|
||||
- @verdaccio/config@7.0.0-next-7.12
|
||||
- @verdaccio/auth@7.0.0-next-7.12
|
||||
- @verdaccio/loaders@7.0.0-next-7.12
|
||||
- @verdaccio/middleware@7.0.0-next-7.12
|
||||
- verdaccio-audit@12.0.0-next-7.12
|
||||
- @verdaccio/utils@7.0.0-next-7.12
|
||||
- @verdaccio/logger@7.0.0-next-7.12
|
||||
|
||||
## 7.0.0-next-7.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/server",
|
||||
"version": "7.0.0-next-7.11",
|
||||
"version": "7.0.0-next-7.12",
|
||||
"description": "server logic",
|
||||
"main": "./build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -29,17 +29,17 @@
|
||||
"node": ">=18"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/api": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/auth": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/loaders": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/middleware": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/store": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/web": "workspace:7.0.0-next-7.11",
|
||||
"verdaccio-audit": "workspace:12.0.0-next-7.11",
|
||||
"@verdaccio/api": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/auth": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/loaders": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/middleware": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/store": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/web": "workspace:7.0.0-next-7.12",
|
||||
"verdaccio-audit": "workspace:12.0.0-next-7.12",
|
||||
"compression": "1.7.4",
|
||||
"cors": "2.8.5",
|
||||
"debug": "4.3.4",
|
||||
@@ -47,7 +47,7 @@
|
||||
"lodash": "4.17.21"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/proxy": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/proxy": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/test-helper": "workspace:3.0.0-next-7.2",
|
||||
"http-errors": "2.0.0"
|
||||
},
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
# @verdaccio/server-fastify
|
||||
|
||||
## 7.0.0-next-7.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/store@7.0.0-next-7.12
|
||||
- @verdaccio/core@7.0.0-next-7.12
|
||||
- @verdaccio/config@7.0.0-next-7.12
|
||||
- @verdaccio/auth@7.0.0-next-7.12
|
||||
- @verdaccio/tarball@12.0.0-next-7.12
|
||||
- @verdaccio/utils@7.0.0-next-7.12
|
||||
- @verdaccio/logger@7.0.0-next-7.12
|
||||
|
||||
## 7.0.0-next-7.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/server-fastify",
|
||||
"version": "7.0.0-next-7.11",
|
||||
"version": "7.0.0-next-7.12",
|
||||
"description": "fastify server api implementation",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -33,13 +33,13 @@
|
||||
"access": "public"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/auth": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/store": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/tarball": "workspace:12.0.0-next-7.11",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/auth": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/store": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/tarball": "workspace:12.0.0-next-7.12",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.12",
|
||||
"core-js": "3.35.0",
|
||||
"debug": "4.3.4",
|
||||
"fastify": "4.25.2",
|
||||
|
||||
@@ -16,7 +16,7 @@ async function tarballRoute(fastify: FastifyInstance) {
|
||||
const { package: pkg, filename } = request.params;
|
||||
debug('stream tarball for %s@%s', pkg, filename);
|
||||
const abort = new AbortController();
|
||||
const stream = (await fastify.storage.getTarballNext(pkg, filename, {
|
||||
const stream = (await fastify.storage.getTarball(pkg, filename, {
|
||||
signal: abort.signal,
|
||||
// enableRemote: true,
|
||||
})) as any;
|
||||
@@ -46,7 +46,7 @@ async function tarballRoute(fastify: FastifyInstance) {
|
||||
const { scope, name, filename } = request.params;
|
||||
const scopedPackage = `${scope}/${name}`;
|
||||
debug('stream scope tarball for %s@%s', scopedPackage, filename);
|
||||
const stream = (await fastify.storage.getTarballNext(scopedPackage, filename, {
|
||||
const stream = (await fastify.storage.getTarball(scopedPackage, filename, {
|
||||
signal: abort.signal,
|
||||
// enableRemote: true,
|
||||
})) as any;
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
"debug": "4.3.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/types": "workspace:12.0.0-next.2"
|
||||
},
|
||||
"funding": {
|
||||
|
||||
@@ -32,8 +32,8 @@
|
||||
"homepage": "https://verdaccio.org",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@verdaccio/cli": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/ui-theme": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/cli": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/ui-theme": "workspace:7.0.0-next-7.12",
|
||||
"fs-extra": "11.2.0",
|
||||
"webpack": "5.90.0",
|
||||
"webpack-bundle-analyzer": "4.10.1",
|
||||
|
||||
@@ -1,5 +1,22 @@
|
||||
# @verdaccio/store
|
||||
|
||||
## 7.0.0-next-7.12
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [cce258e]
|
||||
- @verdaccio/search@7.0.0-next-7.1
|
||||
- @verdaccio/core@7.0.0-next-7.12
|
||||
- @verdaccio/config@7.0.0-next-7.12
|
||||
- @verdaccio/tarball@12.0.0-next-7.12
|
||||
- @verdaccio/url@12.0.0-next-7.12
|
||||
- @verdaccio/hooks@7.0.0-next-7.12
|
||||
- @verdaccio/loaders@7.0.0-next-7.12
|
||||
- @verdaccio/local-storage@12.0.0-next-7.12
|
||||
- @verdaccio/proxy@7.0.0-next-7.12
|
||||
- @verdaccio/utils@7.0.0-next-7.12
|
||||
- @verdaccio/logger@7.0.0-next-7.12
|
||||
|
||||
## 7.0.0-next-7.11
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,13 +1,32 @@
|
||||
# @verdaccio/store
|
||||
# Verdaccio Search API
|
||||
|
||||
[](https://opencollective.com/verdaccio)
|
||||
[](https://stackshare.io/verdaccio)
|
||||
[](https://github.com/verdaccio/verdaccio/blob/master/LICENSE)
|
||||
[](https://crowdin.com/project/verdaccio)
|
||||
[](https://www.tickgit.com/browse?repo=github.com/verdaccio/verdaccio)
|
||||
The **Search** class in Verdaccio provides a convenient API for searching packages across both configured proxies and local storage. It enables efficient package discovery and retrieval by aggregating search results from multiple upstream sources.
|
||||
|
||||
[](https://twitter.com/verdaccio_npm)
|
||||
[](https://github.com/verdaccio/verdaccio/stargazers)
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
npm install @verdaccio/search
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```ts
|
||||
import { Config } from '@verdaccio/config';
|
||||
import { logger } from '@verdaccio/logger';
|
||||
import { Search } from '@verdaccio/search';
|
||||
|
||||
const config = new Config(configYaml);
|
||||
// Instantiate Search class
|
||||
const search = new Search(config, logger);
|
||||
|
||||
// Define search parameters
|
||||
const searchParams = {
|
||||
// specify search parameters as needed
|
||||
};
|
||||
|
||||
// Perform a search and retrieve the results
|
||||
const searchResults = await search.search(searchParams);
|
||||
```
|
||||
|
||||
## Donations
|
||||
|
||||
@@ -15,58 +34,6 @@ Verdaccio is run by **volunteers**; nobody is working full-time on it. If you fi
|
||||
|
||||
**[Donate](https://opencollective.com/verdaccio)** 💵👍🏻 starting from _\$1/month_ or just one single contribution.
|
||||
|
||||
## Report a vulnerability
|
||||
|
||||
If you want to report a security vulnerability, please follow the steps which we have defined for you in our [security policy](https://github.com/verdaccio/verdaccio/security/policy).
|
||||
|
||||
## Open Collective Sponsors
|
||||
|
||||
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/verdaccio#sponsor)]
|
||||
|
||||
[](https://opencollective.com/verdaccio/sponsor/0/website)
|
||||
[](https://opencollective.com/verdaccio/sponsor/1/website)
|
||||
[](https://opencollective.com/verdaccio/sponsor/2/website)
|
||||
[](https://opencollective.com/verdaccio/sponsor/3/website)
|
||||
[](https://opencollective.com/verdaccio/sponsor/4/website)
|
||||
[](https://opencollective.com/verdaccio/sponsor/5/website)
|
||||
[](https://opencollective.com/verdaccio/sponsor/6/website)
|
||||
[](https://opencollective.com/verdaccio/sponsor/7/website)
|
||||
[](https://opencollective.com/verdaccio/sponsor/8/website)
|
||||
[](https://opencollective.com/verdaccio/sponsor/9/website)
|
||||
|
||||
## Open Collective Backers
|
||||
|
||||
Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/verdaccio#backer)]
|
||||
|
||||
[](https://opencollective.com/verdaccio#backers)
|
||||
|
||||
## Special Thanks
|
||||
|
||||
Thanks to the following companies to help us to achieve our goals providing free open source licenses.
|
||||
|
||||
[](https://www.jetbrains.com/)
|
||||
[](https://crowdin.com/)
|
||||
[](https://balsamiq.com/)
|
||||
|
||||
## Contributors
|
||||
|
||||
This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].
|
||||
|
||||
[](../../graphs/contributors)
|
||||
|
||||
### FAQ / Contact / Troubleshoot
|
||||
|
||||
If you have any issue you can try the following options, do no desist to ask or check our issues database, perhaps someone has asked already what you are looking for.
|
||||
|
||||
- [Blog](https://verdaccio.org/blog/)
|
||||
- [Donations](https://opencollective.com/verdaccio)
|
||||
- [Reporting an issue](https://github.com/verdaccio/verdaccio/blob/master/CONTRIBUTING.md#reporting-a-bug)
|
||||
- [Running discussions](https://github.com/verdaccio/verdaccio/issues?q=is%3Aissue+is%3Aopen+label%3Adiscuss)
|
||||
- [Chat](http://chat.verdaccio.org/)
|
||||
- [Logos](https://verdaccio.org/docs/en/logo)
|
||||
- [Docker Examples](https://github.com/verdaccio/docker-examples)
|
||||
- [FAQ](https://github.com/verdaccio/verdaccio/issues?utf8=%E2%9C%93&q=is%3Aissue%20label%3Aquestion%20)
|
||||
|
||||
### License
|
||||
|
||||
Verdaccio is [MIT licensed](https://github.com/verdaccio/verdaccio/blob/master/LICENSE)
|
||||
|
||||
@@ -5,8 +5,8 @@ module.exports = Object.assign({}, config, {
|
||||
global: {
|
||||
// FIXME: increase to 90
|
||||
branches: 62,
|
||||
functions: 86,
|
||||
lines: 76,
|
||||
functions: 84,
|
||||
lines: 74,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/store",
|
||||
"version": "7.0.0-next-7.11",
|
||||
"version": "7.0.0-next-7.12",
|
||||
"description": "loaders logic",
|
||||
"main": "./build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -38,16 +38,17 @@
|
||||
"build": "pnpm run build:js && pnpm run build:types"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/hooks": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/loaders": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/local-storage": "workspace:12.0.0-next-7.11",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/proxy": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/tarball": "workspace:12.0.0-next-7.11",
|
||||
"@verdaccio/url": "workspace:12.0.0-next-7.11",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.11",
|
||||
"@verdaccio/config": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/core": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/hooks": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/loaders": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/local-storage": "workspace:12.0.0-next-7.12",
|
||||
"@verdaccio/logger": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/search": "workspace:7.0.0-next-7.1",
|
||||
"@verdaccio/proxy": "workspace:7.0.0-next-7.12",
|
||||
"@verdaccio/tarball": "workspace:12.0.0-next-7.12",
|
||||
"@verdaccio/url": "workspace:12.0.0-next-7.12",
|
||||
"@verdaccio/utils": "workspace:7.0.0-next-7.12",
|
||||
"JSONStream": "1.3.5",
|
||||
"debug": "4.3.4",
|
||||
"lodash": "4.17.21",
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
export { Storage } from './storage';
|
||||
export * from './lib/storage-utils';
|
||||
export * from './lib/search-utils';
|
||||
export * from './lib/versions-utils';
|
||||
export * from './lib/star-utils';
|
||||
export * from './type';
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user