Compare commits
24 Commits
@verdaccio
...
changeset-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c05db541f1 | ||
|
|
ab3bf4a5d4 | ||
|
|
265c94af37 | ||
|
|
430b3173b1 | ||
|
|
05c8e517c1 | ||
|
|
b24f513b92 | ||
|
|
6c0f9f9ba0 | ||
|
|
87b9c1e8da | ||
|
|
3aff890593 | ||
|
|
b1ceb7b3ad | ||
|
|
92a65eb6b4 | ||
|
|
9ecfd5a256 | ||
|
|
f3d696facb | ||
|
|
6d1a84aba1 | ||
|
|
6b9ac25158 | ||
|
|
a94cc9c8e5 | ||
|
|
f831a6508f | ||
|
|
87d99ec1ed | ||
|
|
1661abb5a8 | ||
|
|
26a339518f | ||
|
|
a97c85e975 | ||
|
|
1da9aefce3 | ||
|
|
c2ef25dfa1 | ||
|
|
8dc3f3e1bc |
@@ -10,7 +10,6 @@
|
||||
'verdaccio-memory': major
|
||||
'@verdaccio/search-indexer': major
|
||||
'@verdaccio/server': major
|
||||
'@verdaccio/server-fastify': major
|
||||
'@verdaccio/logger': major
|
||||
'verdaccio-audit': major
|
||||
'@verdaccio/ui-components': major
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
---
|
||||
'@verdaccio/local-storage': patch
|
||||
'@verdaccio/server': patch
|
||||
'@verdaccio/server-fastify': patch
|
||||
'@verdaccio/test-helper': patch
|
||||
'@verdaccio/ui-components': patch
|
||||
'@verdaccio/tarball': patch
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
'@verdaccio/local-scripts': patch
|
||||
'@verdaccio/file-locking': patch
|
||||
'@verdaccio/ui-theme': patch
|
||||
'@verdaccio/server-fastify': patch
|
||||
'@verdaccio/test-helper': patch
|
||||
'@verdaccio/middleware': patch
|
||||
'verdaccio': patch
|
||||
|
||||
9
.changeset/cool-emus-know.md
Normal file
9
.changeset/cool-emus-know.md
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
'@verdaccio/url': patch
|
||||
'@verdaccio/config': patch
|
||||
'@verdaccio/auth': patch
|
||||
'@verdaccio/api': patch
|
||||
'@verdaccio/cli': patch
|
||||
---
|
||||
|
||||
chore(deps): api, auth, cli, config, url
|
||||
6
.changeset/famous-hornets-know.md
Normal file
6
.changeset/famous-hornets-know.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
'@verdaccio/proxy': patch
|
||||
'@verdaccio/website': patch
|
||||
---
|
||||
|
||||
fix(proxy): proxy protocol check
|
||||
@@ -1,6 +1,5 @@
|
||||
---
|
||||
'@verdaccio/local-storage': patch
|
||||
'@verdaccio/server-fastify': patch
|
||||
'@verdaccio/middleware': patch
|
||||
'@verdaccio/core': patch
|
||||
'@verdaccio/config': patch
|
||||
|
||||
6
.changeset/fuzzy-cups-help.md
Normal file
6
.changeset/fuzzy-cups-help.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
'@verdaccio/middleware': patch
|
||||
'@verdaccio/api': patch
|
||||
---
|
||||
|
||||
chore: replace mime package with constants
|
||||
13
.changeset/lemon-baboons-double.md
Normal file
13
.changeset/lemon-baboons-double.md
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
'@verdaccio/local-storage': patch
|
||||
'@verdaccio/ui-theme': patch
|
||||
'verdaccio-memory': patch
|
||||
'@verdaccio/ui-components': patch
|
||||
'@verdaccio/eslint-config': patch
|
||||
'@verdaccio/middleware': patch
|
||||
'@verdaccio/config': patch
|
||||
'@verdaccio/store': patch
|
||||
'@verdaccio/api': patch
|
||||
---
|
||||
|
||||
chore(lint): switch rules from jest to vitest
|
||||
@@ -11,7 +11,6 @@
|
||||
'verdaccio-memory': patch
|
||||
'@verdaccio/search-indexer': patch
|
||||
'@verdaccio/server': patch
|
||||
'@verdaccio/server-fastify': patch
|
||||
'@verdaccio/logger': patch
|
||||
'@verdaccio/test-helper': patch
|
||||
'@verdaccio/ui-components': patch
|
||||
|
||||
7
.changeset/pink-mayflies-hide.md
Normal file
7
.changeset/pink-mayflies-hide.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
'@verdaccio/ui-components': patch
|
||||
'@verdaccio/node-api': patch
|
||||
'@verdaccio/web': patch
|
||||
---
|
||||
|
||||
chore(deps): node-api, fastify, ui-comp, web
|
||||
@@ -41,7 +41,6 @@
|
||||
"@verdaccio/search": "7.0.0",
|
||||
"@verdaccio/search-indexer": "7.0.0",
|
||||
"@verdaccio/server": "7.0.0",
|
||||
"@verdaccio/server-fastify": "7.0.0",
|
||||
"@verdaccio/signature": "7.0.0",
|
||||
"@verdaccio/cli-standalone": "7.0.0",
|
||||
"@verdaccio/store": "7.0.0",
|
||||
@@ -87,6 +86,7 @@
|
||||
"clean-rings-listen",
|
||||
"clever-bees-happen",
|
||||
"cool-balloons-search",
|
||||
"cool-emus-know",
|
||||
"cool-seals-watch",
|
||||
"cuddly-paws-laugh",
|
||||
"curly-mirrors-smile",
|
||||
@@ -100,6 +100,7 @@
|
||||
"eight-countries-think",
|
||||
"eighty-apes-think",
|
||||
"eleven-rocks-dream",
|
||||
"famous-hornets-know",
|
||||
"few-beds-itch",
|
||||
"few-ears-deny",
|
||||
"few-poets-bathe",
|
||||
@@ -111,6 +112,7 @@
|
||||
"friendly-feet-sing",
|
||||
"friendly-worms-drum",
|
||||
"funny-fireants-tan",
|
||||
"fuzzy-cups-help",
|
||||
"fuzzy-ears-yawn",
|
||||
"gentle-stingrays-repeat",
|
||||
"gold-files-speak",
|
||||
@@ -128,6 +130,7 @@
|
||||
"hungry-dolls-destroy",
|
||||
"itchy-glasses-end",
|
||||
"large-turkeys-change",
|
||||
"lemon-baboons-double",
|
||||
"long-eyes-drum",
|
||||
"long-singers-drive",
|
||||
"loud-dingos-cough",
|
||||
@@ -144,6 +147,7 @@
|
||||
"odd-fishes-cry",
|
||||
"old-clocks-destroy",
|
||||
"pink-jeans-lick",
|
||||
"pink-mayflies-hide",
|
||||
"pink-pants-try",
|
||||
"poor-hats-smile",
|
||||
"poor-queens-shop",
|
||||
@@ -165,6 +169,7 @@
|
||||
"rude-birds-design",
|
||||
"rude-socks-walk",
|
||||
"serious-apes-rule",
|
||||
"seven-eggs-sparkle",
|
||||
"seven-peas-obey",
|
||||
"seven-suits-kneel",
|
||||
"sharp-queens-rhyme",
|
||||
|
||||
5
.changeset/seven-eggs-sparkle.md
Normal file
5
.changeset/seven-eggs-sparkle.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@verdaccio/ui-components': patch
|
||||
---
|
||||
|
||||
fix(ui): regression after mui 7 upgrade
|
||||
@@ -12,7 +12,6 @@
|
||||
'verdaccio-memory': patch
|
||||
'@verdaccio/search-indexer': patch
|
||||
'@verdaccio/server': patch
|
||||
'@verdaccio/server-fastify': patch
|
||||
'@verdaccio/logger': patch
|
||||
'verdaccio-audit': patch
|
||||
'@verdaccio/test-helper': patch
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
'@verdaccio/ui-theme': patch
|
||||
'@verdaccio/search-indexer': patch
|
||||
'@verdaccio/server': patch
|
||||
'@verdaccio/server-fastify': patch
|
||||
'@verdaccio/test-helper': patch
|
||||
'@verdaccio/middleware': patch
|
||||
'verdaccio': patch
|
||||
|
||||
@@ -19,3 +19,5 @@ yarn.js
|
||||
packages/ui-components/storybook-static
|
||||
dist.js
|
||||
bundle.js
|
||||
# generator templates
|
||||
packages/tools/generator-verdaccio-plugin/generators/app/**
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
module.exports = {
|
||||
extends: ['@verdaccio/eslint-config'],
|
||||
extends: ['@verdaccio/eslint-config', 'plugin:storybook/recommended'],
|
||||
};
|
||||
|
||||
6
.github/workflows/codeql-analysis.yml
vendored
6
.github/workflows/codeql-analysis.yml
vendored
@@ -37,7 +37,7 @@ jobs:
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.29.5
|
||||
uses: github/codeql-action/init@51f77329afa6477de8c49fc9c7046c15b9a4e79d # v3.29.5
|
||||
with:
|
||||
config: |
|
||||
paths-ignore:
|
||||
@@ -50,7 +50,7 @@ jobs:
|
||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||
# If this step fails, then you should remove it and run the build manually (see below)
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.29.5
|
||||
uses: github/codeql-action/autobuild@51f77329afa6477de8c49fc9c7046c15b9a4e79d # v3.29.5
|
||||
|
||||
# ℹ️ Command-line programs to run using the OS shell.
|
||||
# 📚 https://git.io/JvXDl
|
||||
@@ -64,4 +64,4 @@ jobs:
|
||||
# make release
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@3599b3baa15b485a2e49ef411a7a4bb2452e7f93 # v3.29.5
|
||||
uses: github/codeql-action/analyze@51f77329afa6477de8c49fc9c7046c15b9a4e79d # v3.29.5
|
||||
|
||||
@@ -136,7 +136,6 @@ Any interaction with the server should be done through the port `8000` eg: `npm
|
||||
#### Useful commands
|
||||
|
||||
- `pnpm debug`: Run the server in debug mode `--inspect`. UI runs too but without hot reload. For automatic break use `pnpm debug:break`.
|
||||
- `pnpm debug:fastify`: To contribute on the [fastify migration](https://github.com/verdaccio/verdaccio/discussions/2155) this is a temporary command for such purpose.
|
||||
- `pnpm website`: Build the website, for more commands to run the _website_, run `cd website` and then `pnpm serve`, website will run on port `3000`.
|
||||
- `pnpm docker`: Build the docker image. Requires `docker` command available in your system.
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
"version": "2.0.0-next-8.1",
|
||||
"main": "src/index.ts",
|
||||
"devDependencies": {
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/types": "workspace:13.0.0-next-8.8",
|
||||
"debug": "4.4.3",
|
||||
"fs-extra": "11.2.0",
|
||||
@@ -13,7 +13,7 @@
|
||||
"got": "11.8.6",
|
||||
"js-yaml": "4.1.0",
|
||||
"lodash": "4.17.21",
|
||||
"verdaccio": "workspace:8.0.0-next-8.24"
|
||||
"verdaccio": "workspace:8.0.0-next-8.25"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo no test",
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
"name": "@verdaccio/e2e-ui",
|
||||
"version": "2.0.1-next-8.0",
|
||||
"devDependencies": {
|
||||
"verdaccio": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/test-helper": "workspace:4.0.0-next-8.8",
|
||||
"verdaccio": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/test-helper": "workspace:4.0.0-next-8.9",
|
||||
"debug": "4.4.3",
|
||||
"cypress": "15.4.0",
|
||||
"cypress": "15.6.0",
|
||||
"get-port": "5.1.1"
|
||||
},
|
||||
"scripts": {
|
||||
|
||||
@@ -147,7 +147,6 @@
|
||||
"_debug:reload": "nodemon -d 3 packages/verdaccio/debug/bootstrap.js",
|
||||
"start:ts": "ts-node packages/verdaccio/src/start.ts -- --listen 8000",
|
||||
"debug": "node --trace-warnings --trace-uncaught --inspect packages/verdaccio/debug/bootstrap.js",
|
||||
"debug:fastify": "cross-env VERDACCIO_SERVER=fastify node --trace-warnings --trace-uncaught --inspect packages/verdaccio/debug/bootstrap.js",
|
||||
"debug:break": "node --trace-warnings --trace-uncaught --inspect-brk packages/verdaccio/debug/bootstrap.js",
|
||||
"changeset": "changeset",
|
||||
"changeset:check": "changeset status --since-master",
|
||||
|
||||
@@ -1,5 +1,22 @@
|
||||
# @verdaccio/api
|
||||
|
||||
## 8.1.0-next-8.25
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 3aff890: chore(deps): api, auth, cli, config, url
|
||||
- ab3bf4a: chore: replace mime package with constants
|
||||
- b24f513: chore(lint): switch rules from jest to vitest
|
||||
- Updated dependencies [3aff890]
|
||||
- Updated dependencies [ab3bf4a]
|
||||
- Updated dependencies [b24f513]
|
||||
- @verdaccio/config@8.0.0-next-8.25
|
||||
- @verdaccio/auth@8.0.0-next-8.25
|
||||
- @verdaccio/middleware@8.0.0-next-8.25
|
||||
- @verdaccio/store@8.0.0-next-8.25
|
||||
- @verdaccio/core@8.0.0-next-8.25
|
||||
- @verdaccio/logger@8.0.0-next-8.25
|
||||
|
||||
## 8.1.0-next-8.24
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/api",
|
||||
"version": "8.1.0-next-8.24",
|
||||
"version": "8.1.0-next-8.25",
|
||||
"description": "Verdaccio Registry API",
|
||||
"main": "./build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -42,26 +42,23 @@
|
||||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@verdaccio/auth": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/middleware": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/store": "workspace:8.0.0-next-8.24",
|
||||
"abortcontroller-polyfill": "1.7.8",
|
||||
"body-parser": "1.20.3",
|
||||
"cookies": "0.9.1",
|
||||
"@verdaccio/auth": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/middleware": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/store": "workspace:8.0.0-next-8.25",
|
||||
"debug": "4.4.3",
|
||||
"express": "4.21.2",
|
||||
"lodash": "4.17.21",
|
||||
"mime": "2.6.0",
|
||||
"semver": "7.7.3"
|
||||
"lodash": "4.17.21"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/test-helper": "workspace:4.0.0-next-8.8",
|
||||
"@verdaccio/test-helper": "workspace:4.0.0-next-8.9",
|
||||
"@verdaccio/types": "workspace:13.0.0-next-8.8",
|
||||
"mockdate": "3.0.5",
|
||||
"supertest": "7.1.4"
|
||||
"nock": "13.5.6",
|
||||
"supertest": "7.1.4",
|
||||
"vitest": "3.2.4"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
import { Router } from 'express';
|
||||
import _ from 'lodash';
|
||||
import mime from 'mime';
|
||||
|
||||
import { Auth } from '@verdaccio/auth';
|
||||
import { constants, errorUtils } from '@verdaccio/core';
|
||||
import { HEADERS, constants, errorUtils } from '@verdaccio/core';
|
||||
import { allow, media } from '@verdaccio/middleware';
|
||||
import { DIST_TAGS_API_ENDPOINTS } from '@verdaccio/middleware';
|
||||
import { Storage } from '@verdaccio/store';
|
||||
@@ -42,14 +41,14 @@ export default function (route: Router, auth: Auth, storage: Storage, logger: Lo
|
||||
route.put(
|
||||
DIST_TAGS_API_ENDPOINTS.tagging,
|
||||
can('publish'),
|
||||
media(mime.getType('json')),
|
||||
media(HEADERS.JSON),
|
||||
addTagPackageVersionMiddleware
|
||||
);
|
||||
|
||||
route.put(
|
||||
DIST_TAGS_API_ENDPOINTS.tagging_package,
|
||||
can('publish'),
|
||||
media(mime.getType('json')),
|
||||
media(HEADERS.JSON),
|
||||
addTagPackageVersionMiddleware
|
||||
);
|
||||
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
import buildDebug from 'debug';
|
||||
import { Router } from 'express';
|
||||
import mime from 'mime';
|
||||
|
||||
import { Auth } from '@verdaccio/auth';
|
||||
import { API_MESSAGE, HTTP_STATUS } from '@verdaccio/core';
|
||||
import { API_MESSAGE, HEADERS, HTTP_STATUS } from '@verdaccio/core';
|
||||
import { allow, expectJson, media } from '@verdaccio/middleware';
|
||||
// import star from './star';
|
||||
import { PUBLISH_API_ENDPOINTS } from '@verdaccio/middleware';
|
||||
@@ -122,7 +121,7 @@ export default function publish(
|
||||
router.put(
|
||||
PUBLISH_API_ENDPOINTS.add_package,
|
||||
can('publish'),
|
||||
media(mime.getType('json')),
|
||||
media(HEADERS.JSON),
|
||||
expectJson,
|
||||
publishPackage(storage, logger, 'publish one version')
|
||||
);
|
||||
@@ -130,7 +129,7 @@ export default function publish(
|
||||
router.put(
|
||||
PUBLISH_API_ENDPOINTS.publish_package,
|
||||
can('unpublish'),
|
||||
media(mime.getType('json')),
|
||||
media(HEADERS.JSON),
|
||||
expectJson,
|
||||
publishPackage(storage, logger, 'publish with revision')
|
||||
);
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* eslint-disable jest/no-commented-out-tests */
|
||||
import nock from 'nock';
|
||||
import { describe, expect, test } from 'vitest';
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@ import { HEADERS, HEADER_TYPE, HTTP_STATUS, TOKEN_BEARER } from '@verdaccio/core
|
||||
|
||||
import { buildToken, createUser, initializeServer } from './_helper';
|
||||
|
||||
describe('profile ', () => {
|
||||
describe('get profile ', () => {
|
||||
describe('profile', () => {
|
||||
describe('get profile', () => {
|
||||
test('should return Unauthorized if header token is missing', async () => {
|
||||
const app = await initializeServer('profile.yaml');
|
||||
return supertest(app)
|
||||
@@ -26,7 +26,7 @@ describe('profile ', () => {
|
||||
.expect(HTTP_STATUS.OK);
|
||||
});
|
||||
});
|
||||
describe('post profile ', () => {
|
||||
describe('post profile', () => {
|
||||
test('should return Unauthorized if header token is missing', async () => {
|
||||
const app = await initializeServer('profile.yaml');
|
||||
return supertest(app)
|
||||
|
||||
@@ -1,5 +1,18 @@
|
||||
# @verdaccio/auth
|
||||
|
||||
## 8.0.0-next-8.25
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 3aff890: chore(deps): api, auth, cli, config, url
|
||||
- Updated dependencies [3aff890]
|
||||
- Updated dependencies [b24f513]
|
||||
- @verdaccio/config@8.0.0-next-8.25
|
||||
- @verdaccio/loaders@8.0.0-next-8.15
|
||||
- verdaccio-htpasswd@13.0.0-next-8.25
|
||||
- @verdaccio/signature@8.0.0-next-8.17
|
||||
- @verdaccio/core@8.0.0-next-8.25
|
||||
|
||||
## 8.0.0-next-8.24
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/auth",
|
||||
"version": "8.0.0-next-8.24",
|
||||
"version": "8.0.0-next-8.25",
|
||||
"description": "Verdaccio Authentication",
|
||||
"main": "./build/index.js",
|
||||
"types": "./build/index.d.ts",
|
||||
@@ -42,20 +42,21 @@
|
||||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/loaders": "workspace:8.0.0-next-8.14",
|
||||
"@verdaccio/signature": "workspace:8.0.0-next-8.16",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/loaders": "workspace:8.0.0-next-8.15",
|
||||
"@verdaccio/signature": "workspace:8.0.0-next-8.17",
|
||||
"debug": "4.4.3",
|
||||
"lodash": "4.17.21",
|
||||
"verdaccio-htpasswd": "workspace:13.0.0-next-8.24"
|
||||
"verdaccio-htpasswd": "workspace:13.0.0-next-8.25"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/middleware": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/middleware": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/types": "workspace:13.0.0-next-8.8",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.25",
|
||||
"express": "4.21.2",
|
||||
"supertest": "7.1.4"
|
||||
"supertest": "7.1.4",
|
||||
"vitest": "3.2.4"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { NextFunction, Request, Response } from 'express';
|
||||
import type { NextFunction, Request, Response } from 'express';
|
||||
|
||||
import { VerdaccioError } from '@verdaccio/core';
|
||||
import { AuthPackageAllow, JWTSignOptions, Logger, RemoteUser } from '@verdaccio/types';
|
||||
|
||||
@@ -1,5 +1,18 @@
|
||||
# @verdaccio/cli
|
||||
|
||||
## 8.0.0-next-8.25
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 3aff890: chore(deps): api, auth, cli, config, url
|
||||
- Updated dependencies [3aff890]
|
||||
- Updated dependencies [b24f513]
|
||||
- Updated dependencies [6d1a84a]
|
||||
- @verdaccio/config@8.0.0-next-8.25
|
||||
- @verdaccio/node-api@8.0.0-next-8.25
|
||||
- @verdaccio/core@8.0.0-next-8.25
|
||||
- @verdaccio/logger@8.0.0-next-8.25
|
||||
|
||||
## 8.0.0-next-8.24
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/cli",
|
||||
"version": "8.0.0-next-8.24",
|
||||
"version": "8.0.0-next-8.25",
|
||||
"author": {
|
||||
"name": "Juan Picado",
|
||||
"email": "juanpicado19@gmail.com"
|
||||
@@ -47,17 +47,18 @@
|
||||
"start": "ts-node src/index.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/node-api": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/node-api": "workspace:8.0.0-next-8.25",
|
||||
"clipanion": "4.0.0-rc.4",
|
||||
"envinfo": "7.19.0",
|
||||
"kleur": "4.1.5",
|
||||
"semver": "7.7.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"ts-node": "10.9.2"
|
||||
"@verdaccio/types": "workspace:13.0.0-next-8.8",
|
||||
"ts-node": "10.9.2",
|
||||
"vitest": "3.2.4"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# @verdaccio/config
|
||||
|
||||
## 8.0.0-next-8.25
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 3aff890: chore(deps): api, auth, cli, config, url
|
||||
- b24f513: chore(lint): switch rules from jest to vitest
|
||||
- @verdaccio/core@8.0.0-next-8.25
|
||||
|
||||
## 8.0.0-next-8.24
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/config",
|
||||
"version": "8.0.0-next-8.24",
|
||||
"version": "8.0.0-next-8.25",
|
||||
"description": "Verdaccio Configuration",
|
||||
"main": "./build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -42,14 +42,14 @@
|
||||
"build": "pnpm run build:js && pnpm run build:types"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.25",
|
||||
"debug": "4.4.3",
|
||||
"js-yaml": "4.1.0",
|
||||
"lodash": "4.17.21",
|
||||
"minimatch": "7.4.6"
|
||||
"lodash": "4.17.21"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/minimatch": "5.1.2"
|
||||
"@verdaccio/types": "workspace:13.0.0-next-8.8",
|
||||
"vitest": "3.2.4"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
|
||||
@@ -137,7 +137,6 @@ describe('checkSecretKey', () => {
|
||||
const config = new Config(parseConfigFile(resolveConf('default')), {
|
||||
forceMigrateToSecureLegacySignature: false,
|
||||
});
|
||||
// eslint-disable-next-line jest/no-standalone-expect
|
||||
expect(() =>
|
||||
// 64 characters secret long
|
||||
config.checkSecretKey('b4982dbb0108531fafb552374d7e83724b6458a2b3ffa97ad0edb899bdaefc4a')
|
||||
@@ -149,7 +148,6 @@ describe('checkSecretKey', () => {
|
||||
forceMigrateToSecureLegacySignature: false,
|
||||
});
|
||||
config.security.api.migrateToSecureLegacySignature = true;
|
||||
// eslint-disable-next-line jest/no-standalone-expect
|
||||
expect(
|
||||
config.checkSecretKey('b4982dbb0108531fafb552374d7e83724b6458a2b3ffa97ad0edb899bdaefc4a')
|
||||
).toHaveLength(TOKEN_VALID_LENGTH);
|
||||
@@ -161,7 +159,6 @@ describe('checkSecretKey', () => {
|
||||
const config = new Config(parseConfigFile(resolveConf('default')));
|
||||
config.security.api.migrateToSecureLegacySignature = false;
|
||||
// 64 characters secret long
|
||||
// eslint-disable-next-line jest/no-standalone-expect
|
||||
expect(
|
||||
config.checkSecretKey('b4982dbb0108531fafb552374d7e83724b6458a2b3ffa97ad0edb899bdaefc4a')
|
||||
).toHaveLength(64);
|
||||
@@ -172,17 +169,16 @@ describe('checkSecretKey', () => {
|
||||
const config = new Config(parseConfigFile(resolveConf('default')));
|
||||
config.security.api.migrateToSecureLegacySignature = true;
|
||||
// 64 characters secret long
|
||||
// eslint-disable-next-line jest/no-standalone-expect
|
||||
expect(
|
||||
config.checkSecretKey('b4982dbb0108531fafb552374d7e83724b6458a2b3ffa97ad0edb899bdaefc4a')
|
||||
).toHaveLength(TOKEN_VALID_LENGTH);
|
||||
});
|
||||
|
||||
test.todo('test emit warning with secret key');
|
||||
test.todo('emit warning with secret key');
|
||||
});
|
||||
|
||||
describe('getMatchedPackagesSpec', () => {
|
||||
test('should match with react as defined in config file', () => {
|
||||
test('should match with react as defined in config file - react', () => {
|
||||
const configParsed = parseConfigFile(parseConfigurationFile('config-getMatchedPackagesSpec'));
|
||||
const config = new Config(configParsed);
|
||||
expect(config.getMatchedPackagesSpec('react')).toEqual({
|
||||
@@ -193,7 +189,7 @@ describe('getMatchedPackagesSpec', () => {
|
||||
});
|
||||
});
|
||||
|
||||
test('should not match with react as defined in config file', () => {
|
||||
test('should not match with react as defined in config file - somePackage', () => {
|
||||
const configParsed = parseConfigFile(parseConfigurationFile('config-getMatchedPackagesSpec'));
|
||||
const config = new Config(configParsed);
|
||||
expect(config.getMatchedPackagesSpec('somePackage')).toEqual({
|
||||
|
||||
@@ -12,7 +12,7 @@ describe('getConfigParsed', () => {
|
||||
expect(config).toBeDefined();
|
||||
});
|
||||
|
||||
test('parses config from a YAML file path', () => {
|
||||
test('parses config from JSON', () => {
|
||||
const yamlFile = path.join(partialsDir, 'config-getMatchedPackagesSpec.yaml');
|
||||
const config = getConfigParsed(parseConfigFile(yamlFile));
|
||||
expect(config).toBeDefined();
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# @verdaccio/core
|
||||
|
||||
## 8.0.0-next-8.25
|
||||
|
||||
## 8.0.0-next-8.24
|
||||
|
||||
## 8.0.0-next-8.23
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/core",
|
||||
"version": "8.0.0-next-8.24",
|
||||
"version": "8.0.0-next-8.25",
|
||||
"description": "Verdaccio Core Components",
|
||||
"keywords": [
|
||||
"private",
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# Change Log
|
||||
|
||||
## 13.0.0-next-8.25
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3aff890]
|
||||
- @verdaccio/url@13.0.0-next-8.25
|
||||
- @verdaccio/core@8.0.0-next-8.25
|
||||
|
||||
## 13.0.0-next-8.24
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/tarball",
|
||||
"version": "13.0.0-next-8.24",
|
||||
"version": "13.0.0-next-8.25",
|
||||
"description": "Verdaccio Tarball Utilities",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -33,8 +33,8 @@
|
||||
"access": "public"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/url": "workspace:13.0.0-next-8.24",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/url": "workspace:13.0.0-next-8.25",
|
||||
"debug": "4.4.3",
|
||||
"gunzip-maybe": "1.4.2",
|
||||
"tar-stream": "3.1.7"
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
# Change Log
|
||||
|
||||
## 13.0.0-next-8.25
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 3aff890: chore(deps): api, auth, cli, config, url
|
||||
- @verdaccio/core@8.0.0-next-8.25
|
||||
|
||||
## 13.0.0-next-8.24
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/url",
|
||||
"version": "13.0.0-next-8.24",
|
||||
"version": "13.0.0-next-8.25",
|
||||
"description": "Verdaccio URL Utilities",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -33,13 +33,11 @@
|
||||
"access": "public"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.25",
|
||||
"debug": "4.4.3",
|
||||
"lodash": "4.17.21",
|
||||
"validator": "13.15.15"
|
||||
"validator": "13.15.22"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "workspace:13.0.0-next-8.8",
|
||||
"node-mocks-http": "1.14.1",
|
||||
"vitest": "3.2.4"
|
||||
},
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
# @verdaccio/hooks
|
||||
|
||||
## 8.0.0-next-8.25
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@8.0.0-next-8.25
|
||||
- @verdaccio/logger@8.0.0-next-8.25
|
||||
|
||||
## 8.0.0-next-8.24
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/hooks",
|
||||
"version": "8.0.0-next-8.24",
|
||||
"version": "8.0.0-next-8.25",
|
||||
"description": "Verdaccio Hooks",
|
||||
"main": "./build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -33,14 +33,14 @@
|
||||
"node": ">=18"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.25",
|
||||
"debug": "4.4.3",
|
||||
"got-cjs": "12.5.4",
|
||||
"handlebars": "4.7.8"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/types": "workspace:13.0.0-next-8.8",
|
||||
"nock": "13.5.6",
|
||||
"vitest": "3.2.4"
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# @verdaccio/loaders
|
||||
|
||||
## 8.0.0-next-8.15
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@8.0.0-next-8.25
|
||||
|
||||
## 8.0.0-next-8.14
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/loaders",
|
||||
"version": "8.0.0-next-8.14",
|
||||
"version": "8.0.0-next-8.15",
|
||||
"description": "Verdaccio Loader Logic",
|
||||
"main": "./build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -17,14 +17,14 @@
|
||||
"url": "https://github.com/verdaccio/verdaccio/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.25",
|
||||
"debug": "4.4.3",
|
||||
"lodash": "4.17.21"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio-scope/verdaccio-auth-foo": "0.0.2",
|
||||
"customprefix-auth": "workspace:2.0.0",
|
||||
"verdaccio-auth-memory": "workspace:*",
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# @verdaccio/logger-commons
|
||||
|
||||
## 8.0.0-next-8.25
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@8.0.0-next-8.25
|
||||
|
||||
## 8.0.0-next-8.24
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/logger-commons",
|
||||
"version": "8.0.0-next-8.24",
|
||||
"version": "8.0.0-next-8.25",
|
||||
"description": "Verdaccio Logger Commons",
|
||||
"main": "./build/index.js",
|
||||
"types": "./build/index.d.ts",
|
||||
@@ -42,14 +42,14 @@
|
||||
"build": "pnpm run build:js && pnpm run build:types"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/logger-prettify": "workspace:8.0.0-next-8.4",
|
||||
"debug": "4.4.3",
|
||||
"colorette": "2.0.20"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "workspace:13.0.0-next-8.8",
|
||||
"pino": "9.13.1",
|
||||
"pino": "9.14.0",
|
||||
"vitest": "3.2.4"
|
||||
},
|
||||
"funding": {
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
"sonic-boom": "3.8.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"pino": "9.13.1",
|
||||
"pino": "9.14.0",
|
||||
"vitest": "3.2.4"
|
||||
},
|
||||
"funding": {
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# @verdaccio/logger
|
||||
|
||||
## 8.0.0-next-8.25
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/logger-commons@8.0.0-next-8.25
|
||||
|
||||
## 8.0.0-next-8.24
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/logger",
|
||||
"version": "8.0.0-next-8.24",
|
||||
"version": "8.0.0-next-8.25",
|
||||
"description": "Verdaccio Logger",
|
||||
"main": "./build/index.js",
|
||||
"types": "./build/index.d.ts",
|
||||
@@ -42,8 +42,8 @@
|
||||
"build": "pnpm run build:js && pnpm run build:types"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/logger-commons": "workspace:8.0.0-next-8.24",
|
||||
"pino": "9.13.1"
|
||||
"@verdaccio/logger-commons": "workspace:8.0.0-next-8.25",
|
||||
"pino": "9.14.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "workspace:13.0.0-next-8.8"
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
# @verdaccio/middleware
|
||||
|
||||
## 8.0.0-next-8.25
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- ab3bf4a: chore: replace mime package with constants
|
||||
- b24f513: chore(lint): switch rules from jest to vitest
|
||||
- Updated dependencies [3aff890]
|
||||
- Updated dependencies [b24f513]
|
||||
- @verdaccio/url@13.0.0-next-8.25
|
||||
- @verdaccio/config@8.0.0-next-8.25
|
||||
- @verdaccio/core@8.0.0-next-8.25
|
||||
|
||||
## 8.0.0-next-8.24
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/middleware",
|
||||
"version": "8.0.0-next-8.24",
|
||||
"version": "8.0.0-next-8.25",
|
||||
"description": "Verdaccio Express Middleware",
|
||||
"main": "./build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -42,22 +42,21 @@
|
||||
"build": "pnpm run build:js && pnpm run build:types"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/url": "workspace:13.0.0-next-8.24",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/url": "workspace:13.0.0-next-8.25",
|
||||
"debug": "4.4.3",
|
||||
"express": "4.21.2",
|
||||
"express-rate-limit": "5.5.1",
|
||||
"lodash": "4.17.21",
|
||||
"lru-cache": "7.18.3",
|
||||
"mime": "2.6.0"
|
||||
"lru-cache": "7.18.3"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/verdaccio"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/types": "workspace:13.0.0-next-8.8",
|
||||
"http-errors": "2.0.0",
|
||||
"supertest": "7.1.4",
|
||||
|
||||
@@ -65,7 +65,7 @@ describe('packages requests', () => {
|
||||
expect(res.status).toEqual(HTTP_STATUS.OK);
|
||||
});
|
||||
|
||||
test('scoped package with encoded @ and path ', async () => {
|
||||
test('scoped package with encoded @ and path', async () => {
|
||||
const res = await request(app).get('/%40scope%2ffoo');
|
||||
expect(res.body).toEqual({ package: '@scope/foo' });
|
||||
expect(res.status).toEqual(HTTP_STATUS.OK);
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import mime from 'mime';
|
||||
import request from 'supertest';
|
||||
import { test } from 'vitest';
|
||||
|
||||
@@ -9,7 +8,7 @@ import { getApp } from './helper';
|
||||
|
||||
test('media is json', async () => {
|
||||
const app = getApp([]);
|
||||
app.get('/json', media(mime.getType('json')), (req, res) => {
|
||||
app.get('/json', media(HEADERS.JSON), (req, res) => {
|
||||
res.status(200).json();
|
||||
});
|
||||
|
||||
@@ -22,7 +21,7 @@ test('media is json', async () => {
|
||||
|
||||
test('media is json with charset', async () => {
|
||||
const app = getApp([]);
|
||||
app.get('/json', media(mime.getType('json')), (req, res) => {
|
||||
app.get('/json', media(HEADERS.JSON), (req, res) => {
|
||||
res.status(200).json();
|
||||
});
|
||||
|
||||
@@ -35,7 +34,7 @@ test('media is json with charset', async () => {
|
||||
|
||||
test('media is not json', async () => {
|
||||
const app = getApp([]);
|
||||
app.get('/json', media(mime.getType('json')), (req, res) => {
|
||||
app.get('/json', media(HEADERS.JSON), (req, res) => {
|
||||
res.status(HTTP_STATUS.OK).json({});
|
||||
});
|
||||
|
||||
@@ -48,7 +47,7 @@ test('media is not json', async () => {
|
||||
|
||||
test('missing content-type', async () => {
|
||||
const app = getApp([]);
|
||||
app.get('/json', media(mime.getType('json')), (req, res) => {
|
||||
app.get('/json', media(HEADERS.JSON), (req, res) => {
|
||||
res.status(HTTP_STATUS.OK).json({});
|
||||
});
|
||||
|
||||
|
||||
@@ -1,5 +1,16 @@
|
||||
# @verdaccio/node-api
|
||||
|
||||
## 8.0.0-next-8.25
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 6d1a84a: chore(deps): node-api, fastify, ui-comp, web
|
||||
- Updated dependencies [3aff890]
|
||||
- Updated dependencies [b24f513]
|
||||
- @verdaccio/config@8.0.0-next-8.25
|
||||
- @verdaccio/server@8.0.0-next-8.25
|
||||
- @verdaccio/logger@8.0.0-next-8.25
|
||||
|
||||
## 8.0.0-next-8.24
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/node-api",
|
||||
"version": "8.0.0-next-8.24",
|
||||
"version": "8.0.0-next-8.25",
|
||||
"description": "Verdaccio Node API",
|
||||
"main": "build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -42,17 +42,14 @@
|
||||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/server": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/server-fastify": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/server": "workspace:8.0.0-next-8.25",
|
||||
"debug": "4.4.3",
|
||||
"lodash": "4.17.21"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "workspace:13.0.0-next-8.8",
|
||||
"selfsigned": "2.4.1",
|
||||
"supertest": "7.1.4",
|
||||
"vitest": "3.2.4"
|
||||
},
|
||||
|
||||
@@ -10,7 +10,6 @@ import url from 'node:url';
|
||||
import { getConfigParsed, getListenAddress } from '@verdaccio/config';
|
||||
import { logger, setup } from '@verdaccio/logger';
|
||||
import expressServer from '@verdaccio/server';
|
||||
import fastifyServer from '@verdaccio/server-fastify';
|
||||
import { ConfigYaml, HttpsConfKeyCert, HttpsConfPfx } from '@verdaccio/types';
|
||||
|
||||
import { displayExperimentsInfoBox } from './experiments';
|
||||
@@ -123,60 +122,48 @@ export async function initServer(
|
||||
const addr = getListenAddress(port ?? config?.listen, logger);
|
||||
displayExperimentsInfoBox(config.flags);
|
||||
|
||||
let app;
|
||||
if (process.env.VERDACCIO_SERVER === 'fastify') {
|
||||
app = await fastifyServer(config);
|
||||
app.listen({ port: addr.port, host: addr.host }, (err) => {
|
||||
if (err) {
|
||||
reject(err);
|
||||
} else {
|
||||
resolve();
|
||||
let app = await expressServer(config);
|
||||
const serverFactory = createServerFactory(config, addr, app);
|
||||
serverFactory
|
||||
.listen(addr.port || addr.path, addr.host, (): void => {
|
||||
// send a message for test
|
||||
if (isFunction(process.send)) {
|
||||
process.send({
|
||||
verdaccio_started: true,
|
||||
});
|
||||
}
|
||||
const addressServer = `${
|
||||
addr.path
|
||||
? url.format({
|
||||
protocol: 'unix',
|
||||
pathname: addr.path,
|
||||
})
|
||||
: url.format({
|
||||
protocol: addr.proto,
|
||||
hostname: addr.host,
|
||||
port: addr.port,
|
||||
pathname: '/',
|
||||
})
|
||||
}`;
|
||||
logger.info({ addressServer }, 'http address: @{addressServer}');
|
||||
logger.info({ version }, 'version: @{version}');
|
||||
resolve();
|
||||
})
|
||||
.on('error', function (err): void {
|
||||
reject(err);
|
||||
process.exitCode = 1;
|
||||
});
|
||||
} else {
|
||||
app = await expressServer(config);
|
||||
const serverFactory = createServerFactory(config, addr, app);
|
||||
serverFactory
|
||||
.listen(addr.port || addr.path, addr.host, (): void => {
|
||||
// send a message for test
|
||||
if (isFunction(process.send)) {
|
||||
process.send({
|
||||
verdaccio_started: true,
|
||||
});
|
||||
}
|
||||
const addressServer = `${
|
||||
addr.path
|
||||
? url.format({
|
||||
protocol: 'unix',
|
||||
pathname: addr.path,
|
||||
})
|
||||
: url.format({
|
||||
protocol: addr.proto,
|
||||
hostname: addr.host,
|
||||
port: addr.port,
|
||||
pathname: '/',
|
||||
})
|
||||
}`;
|
||||
logger.info({ addressServer }, 'http address: @{addressServer}');
|
||||
logger.info({ version }, 'version: @{version}');
|
||||
resolve();
|
||||
})
|
||||
.on('error', function (err): void {
|
||||
reject(err);
|
||||
process.exitCode = 1;
|
||||
});
|
||||
function handleShutdownGracefully() {
|
||||
logger.info('received shutdown signal - closing server gracefully...');
|
||||
serverFactory.close(() => {
|
||||
logger.info('server closed.');
|
||||
process.exit(0);
|
||||
});
|
||||
}
|
||||
function handleShutdownGracefully() {
|
||||
logger.info('received shutdown signal - closing server gracefully...');
|
||||
serverFactory.close(() => {
|
||||
logger.info('server closed.');
|
||||
process.exit(0);
|
||||
});
|
||||
}
|
||||
|
||||
for (const signal of ['SIGINT', 'SIGTERM', 'SIGHUP']) {
|
||||
// Use once() so that receiving double signals exit the app.
|
||||
process.once(signal, handleShutdownGracefully);
|
||||
}
|
||||
for (const signal of ['SIGINT', 'SIGTERM', 'SIGHUP']) {
|
||||
// Use once() so that receiving double signals exit the app.
|
||||
process.once(signal, handleShutdownGracefully);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -15,9 +15,6 @@
|
||||
},
|
||||
{
|
||||
"path": "../server/express"
|
||||
},
|
||||
{
|
||||
"path": "../server/fastify"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1,14 +1,16 @@
|
||||
import { vi } from 'vitest';
|
||||
|
||||
import { Logger } from '@verdaccio/types';
|
||||
|
||||
const logger: Logger = {
|
||||
warn: jest.fn(),
|
||||
error: jest.fn(),
|
||||
fatal: jest.fn(),
|
||||
info: jest.fn(),
|
||||
debug: jest.fn(),
|
||||
child: jest.fn(),
|
||||
http: jest.fn(),
|
||||
trace: jest.fn(),
|
||||
warn: vi.fn(),
|
||||
error: vi.fn(),
|
||||
fatal: vi.fn(),
|
||||
info: vi.fn(),
|
||||
debug: vi.fn(),
|
||||
child: vi.fn(),
|
||||
http: vi.fn(),
|
||||
trace: vi.fn(),
|
||||
};
|
||||
|
||||
export default logger;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import ActiveDirectory from 'activedirectory2';
|
||||
import { vi } from 'vitest';
|
||||
|
||||
import { HTTP_STATUS } from '@verdaccio/core';
|
||||
|
||||
import ActiveDirectoryPlugin, { NotAuthMessage } from '../src/active-directory';
|
||||
// eslint-disable-next-line jest/no-mocks-import
|
||||
import logger from './__mocks__/Logger';
|
||||
|
||||
describe('Active Directory Plugin', () => {
|
||||
@@ -34,12 +34,12 @@ describe('Active Directory Plugin', () => {
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
jest.resetModules();
|
||||
vi.resetModules();
|
||||
});
|
||||
|
||||
test('get error when connection fails', (done) => {
|
||||
const errorMessage = 'Unknown error';
|
||||
ActiveDirectory.prototype.authenticate = jest.fn((_1, _2, cb) => cb(errorMessage, undefined));
|
||||
ActiveDirectory.prototype.authenticate = vi.fn((_1, _2, cb) => cb(errorMessage, undefined));
|
||||
|
||||
adPlugin.authenticate('', '', (error, authUser) => {
|
||||
expect(ActiveDirectory.prototype.authenticate).toHaveBeenCalled();
|
||||
@@ -52,7 +52,7 @@ describe('Active Directory Plugin', () => {
|
||||
});
|
||||
|
||||
test('get error when not authenticated satisfactory', (done) => {
|
||||
ActiveDirectory.prototype.authenticate = jest.fn((_1, _2, cb) => cb(null, false));
|
||||
ActiveDirectory.prototype.authenticate = vi.fn((_1, _2, cb) => cb(null, false));
|
||||
|
||||
adPlugin.authenticate('', '', (error, authUser) => {
|
||||
expect(ActiveDirectory.prototype.authenticate).toHaveBeenCalled();
|
||||
@@ -68,7 +68,7 @@ describe('Active Directory Plugin', () => {
|
||||
const user = 'user';
|
||||
const password = 'password';
|
||||
|
||||
ActiveDirectory.prototype.authenticate = jest.fn((_1, _2, cb) => cb(null, true));
|
||||
ActiveDirectory.prototype.authenticate = vi.fn((_1, _2, cb) => cb(null, true));
|
||||
|
||||
adPlugin.authenticate(user, password, (error, authUser) => {
|
||||
expect(ActiveDirectory.prototype.authenticate).toHaveBeenCalled();
|
||||
@@ -81,10 +81,10 @@ describe('Active Directory Plugin', () => {
|
||||
|
||||
test('get error when getting groups for user', (done) => {
|
||||
const errorMessage = 'Unknown error retrieving groups';
|
||||
ActiveDirectory.prototype.authenticate = jest.fn((_1, _2, cb) => cb(null, true));
|
||||
ActiveDirectory.prototype.getGroupMembershipForUser = jest.fn((_, cb) =>
|
||||
ActiveDirectory.prototype.authenticate = vi.fn((_1, _2, cb) => cb(null, true));
|
||||
ActiveDirectory.prototype.getGroupMembershipForUser = vi.fn((_, cb) =>
|
||||
cb(errorMessage as unknown as object, null)
|
||||
) as jest.Mock;
|
||||
);
|
||||
|
||||
adPluginSingleGroup.authenticate('', '', (error, authUser) => {
|
||||
expect(ActiveDirectory.prototype.authenticate).toHaveBeenCalled();
|
||||
@@ -101,10 +101,10 @@ describe('Active Directory Plugin', () => {
|
||||
const user = 'user';
|
||||
const password = 'password';
|
||||
|
||||
ActiveDirectory.prototype.authenticate = jest.fn((_1, _2, cb) => cb(null, true));
|
||||
ActiveDirectory.prototype.getGroupMembershipForUser = jest.fn((_, cb) =>
|
||||
ActiveDirectory.prototype.authenticate = vi.fn((_1, _2, cb) => cb(null, true));
|
||||
ActiveDirectory.prototype.getGroupMembershipForUser = vi.fn((_, cb) =>
|
||||
cb(null, [{ cn: 'notMatchGroup' }])
|
||||
) as jest.Mock;
|
||||
);
|
||||
|
||||
adPluginSingleGroup.authenticate(user, password, (error, authUser) => {
|
||||
expect(ActiveDirectory.prototype.authenticate).toHaveBeenCalled();
|
||||
@@ -124,10 +124,10 @@ describe('Active Directory Plugin', () => {
|
||||
const user = 'user';
|
||||
const password = 'password';
|
||||
|
||||
ActiveDirectory.prototype.authenticate = jest.fn((_1, _2, cb) => cb(null, true));
|
||||
ActiveDirectory.prototype.getGroupMembershipForUser = jest.fn((_, cb) =>
|
||||
ActiveDirectory.prototype.authenticate = vi.fn((_1, _2, cb) => cb(null, true));
|
||||
ActiveDirectory.prototype.getGroupMembershipForUser = vi.fn((_, cb) =>
|
||||
cb(null, [{ cn: groupName }])
|
||||
) as jest.Mock;
|
||||
);
|
||||
|
||||
adPluginSingleGroup.authenticate(user, password, (error, authUser) => {
|
||||
expect(ActiveDirectory.prototype.authenticate).toHaveBeenCalled();
|
||||
@@ -144,10 +144,10 @@ describe('Active Directory Plugin', () => {
|
||||
const user = 'user';
|
||||
const password = 'password';
|
||||
|
||||
ActiveDirectory.prototype.authenticate = jest.fn((_1, _2, cb) => cb(null, true));
|
||||
ActiveDirectory.prototype.getGroupMembershipForUser = jest.fn((_, cb) =>
|
||||
ActiveDirectory.prototype.authenticate = vi.fn((_1, _2, cb) => cb(null, true));
|
||||
ActiveDirectory.prototype.getGroupMembershipForUser = vi.fn((_, cb) =>
|
||||
cb(null, [{ cn: group2 }, { dn: group3 }])
|
||||
) as jest.Mock;
|
||||
);
|
||||
|
||||
adPluginMultiGroups.authenticate(user, password, (error, authUser) => {
|
||||
expect(ActiveDirectory.prototype.authenticate).toHaveBeenCalled();
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
# Change Log
|
||||
|
||||
## 13.0.0-next-8.25
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3aff890]
|
||||
- Updated dependencies [b24f513]
|
||||
- @verdaccio/config@8.0.0-next-8.25
|
||||
- @verdaccio/core@8.0.0-next-8.25
|
||||
|
||||
## 13.0.0-next-8.24
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "verdaccio-audit",
|
||||
"version": "13.0.0-next-8.24",
|
||||
"version": "13.0.0-next-8.25",
|
||||
"description": "Verdaccio Middleware plugin to bypass npmjs audit",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -30,15 +30,15 @@
|
||||
"node": ">=18"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.25",
|
||||
"express": "4.21.2",
|
||||
"https-proxy-agent": "5.0.1",
|
||||
"node-fetch": "cjs"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/auth": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/auth": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/types": "workspace:13.0.0-next-8.8",
|
||||
"nock": "13.5.6",
|
||||
"supertest": "7.1.4",
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# Change Log
|
||||
|
||||
## 13.0.0-next-8.25
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@8.0.0-next-8.25
|
||||
|
||||
## 13.0.0-next-8.24
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "verdaccio-auth-memory",
|
||||
"version": "13.0.0-next-8.24",
|
||||
"version": "13.0.0-next-8.25",
|
||||
"description": "Auth plugin for Verdaccio that keeps users in memory",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -30,12 +30,12 @@
|
||||
"node": ">=18"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.25",
|
||||
"debug": "4.4.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/debug": "4.1.12",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/types": "workspace:13.0.0-next-8.8"
|
||||
},
|
||||
"scripts": {
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# Change Log
|
||||
|
||||
## 13.0.0-next-8.25
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- @verdaccio/core@8.0.0-next-8.25
|
||||
|
||||
## 13.0.0-next-8.24
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "verdaccio-htpasswd",
|
||||
"version": "13.0.0-next-8.24",
|
||||
"version": "13.0.0-next-8.25",
|
||||
"description": "Htpasswd Authentication Plugin for Verdaccio",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -33,7 +33,7 @@
|
||||
"node": ">=18"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/file-locking": "workspace:13.0.0-next-8.6",
|
||||
"apache-md5": "1.1.8",
|
||||
"bcryptjs": "2.4.3",
|
||||
@@ -44,7 +44,7 @@
|
||||
"devDependencies": {
|
||||
"@types/bcryptjs": "2.4.6",
|
||||
"@verdaccio/types": "workspace:13.0.0-next-8.8",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.25",
|
||||
"mockdate": "3.0.5",
|
||||
"vitest": "3.2.4"
|
||||
},
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# Change Log
|
||||
|
||||
## 13.0.0-next-8.25
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- b24f513: chore(lint): switch rules from jest to vitest
|
||||
- @verdaccio/core@8.0.0-next-8.25
|
||||
- @verdaccio/utils@8.1.0-next-8.25
|
||||
|
||||
## 13.0.0-next-8.24
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/local-storage",
|
||||
"version": "13.0.0-next-8.24",
|
||||
"version": "13.0.0-next-8.25",
|
||||
"description": "Verdaccio Local Storage Plugin",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -36,9 +36,9 @@
|
||||
"node": ">=18"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/file-locking": "workspace:13.0.0-next-8.6",
|
||||
"@verdaccio/utils": "workspace:8.1.0-next-8.24",
|
||||
"@verdaccio/utils": "workspace:8.1.0-next-8.25",
|
||||
"debug": "4.4.3",
|
||||
"globby": "11.1.0",
|
||||
"lodash": "4.17.21",
|
||||
@@ -46,7 +46,7 @@
|
||||
"sanitize-filename": "1.6.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/types": "workspace:13.0.0-next-8.8",
|
||||
"vitest": "3.2.4"
|
||||
},
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* eslint-disable jest/no-mocks-import */
|
||||
import path from 'node:path';
|
||||
import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@ const logger: Logger = {
|
||||
warn: vi.fn(),
|
||||
http: vi.fn(),
|
||||
trace: vi.fn(),
|
||||
fatal: vi.fn(),
|
||||
};
|
||||
|
||||
vi.setConfig({ testTimeout: 20000 });
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* eslint-disable jest/no-mocks-import */
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';
|
||||
@@ -16,6 +15,7 @@ const logger: Logger = {
|
||||
warn: vi.fn(),
|
||||
http: vi.fn(),
|
||||
trace: vi.fn(),
|
||||
fatal: vi.fn(),
|
||||
};
|
||||
|
||||
describe('Local Database', () => {
|
||||
|
||||
@@ -16,6 +16,7 @@ const logger: Logger = {
|
||||
warn: vi.fn(),
|
||||
http: vi.fn(),
|
||||
trace: vi.fn(),
|
||||
fatal: vi.fn(),
|
||||
};
|
||||
|
||||
describe('Utitlies', () => {
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
# Change Log
|
||||
|
||||
## 13.0.0-next-8.25
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- b24f513: chore(lint): switch rules from jest to vitest
|
||||
- @verdaccio/core@8.0.0-next-8.25
|
||||
|
||||
## 13.0.0-next-8.24
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "verdaccio-memory",
|
||||
"version": "13.0.0-next-8.24",
|
||||
"version": "13.0.0-next-8.25",
|
||||
"description": "Verdaccio Memory Storage Plugin",
|
||||
"keywords": [
|
||||
"private",
|
||||
@@ -30,14 +30,14 @@
|
||||
"node": ">=18"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.25",
|
||||
"debug": "4.4.3",
|
||||
"memfs": "4.17.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "workspace:13.0.0-next-8.8",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.25",
|
||||
"vitest": "3.2.4"
|
||||
},
|
||||
"scripts": {
|
||||
|
||||
@@ -72,7 +72,7 @@ describe('MemoryHandler', () => {
|
||||
expect(updated.name).toBe(pkgExample.name);
|
||||
});
|
||||
|
||||
test('should fail on update a package', async () => {
|
||||
test('should fail on update a package - mock implementation', async () => {
|
||||
mockParsePackage.mockImplementationOnce(() => {
|
||||
throw new Error('error on parse');
|
||||
});
|
||||
@@ -86,7 +86,7 @@ describe('MemoryHandler', () => {
|
||||
);
|
||||
});
|
||||
|
||||
test('should fail updateHandler update a package', async () => {
|
||||
test('should fail on update a package - internal error', async () => {
|
||||
const localMemory = new LocalMemory(memoryConfig, defaultConfig);
|
||||
const pkgName = 'test6';
|
||||
const handler = localMemory.getPackageStorage(pkgName);
|
||||
@@ -99,7 +99,7 @@ describe('MemoryHandler', () => {
|
||||
).rejects.toEqual(errorUtils.getInternalError('some error'));
|
||||
});
|
||||
|
||||
test('should fail on update a package', async () => {
|
||||
test('should fail on update a package - throw error', async () => {
|
||||
const localMemory = new LocalMemory(memoryConfig, defaultConfig);
|
||||
const pkgName = 'test7';
|
||||
const handler = localMemory.getPackageStorage(pkgName);
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"react/jsx-curly-brace-presence": ["warn", { "props": "ignore", "children": "ignore" }],
|
||||
"react/jsx-pascal-case": ["error"],
|
||||
"react/jsx-props-no-multi-spaces": ["error"],
|
||||
"react/jsx-sort-default-props": ["error"],
|
||||
"react/sort-default-props": ["error"],
|
||||
"react/jsx-sort-props": ["error"],
|
||||
"react/no-string-refs": ["error"],
|
||||
"react/no-danger-with-children": ["error"],
|
||||
@@ -78,7 +78,6 @@
|
||||
"react-hooks/exhaustive-deps": "warn",
|
||||
"verdaccio/jsx-no-style": ["warn"],
|
||||
"verdaccio/jsx-spread": ["warn"],
|
||||
"jest/expect-expect": 0,
|
||||
"quote-props":["error", "as-needed"],
|
||||
"prefer-spread": 1,
|
||||
"linebreak-style": 0,
|
||||
@@ -94,7 +93,6 @@
|
||||
"__DEBUG__": true
|
||||
},
|
||||
"env": {
|
||||
"browser": true,
|
||||
"jest/globals": true
|
||||
"browser": true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# @verdaccio/ui-theme
|
||||
|
||||
## 8.0.0-next-8.25
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- b24f513: chore(lint): switch rules from jest to vitest
|
||||
|
||||
## 8.0.0-next-8.24
|
||||
|
||||
## 8.0.0-next-8.23
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/ui-theme",
|
||||
"version": "8.0.0-next-8.24",
|
||||
"version": "8.0.0-next-8.25",
|
||||
"description": "Verdaccio User Interface (Theme)",
|
||||
"author": {
|
||||
"name": "Verdaccio Contributors",
|
||||
@@ -26,7 +26,7 @@
|
||||
"@testing-library/react": "16.3.0",
|
||||
"@types/history": "5.0.0",
|
||||
"@verdaccio/types": "workspace:*",
|
||||
"@verdaccio/ui-components": "workspace:4.0.0-next-8.11",
|
||||
"@verdaccio/ui-components": "workspace:4.0.0-next-8.12",
|
||||
"@verdaccio/ui-i18n": "workspace:8.0.0-next-8.13",
|
||||
"@vitejs/plugin-react": "5.0.4",
|
||||
"babel-loader": "9.2.1",
|
||||
|
||||
@@ -199,14 +199,14 @@
|
||||
"username": "Utwo",
|
||||
"id": 282668
|
||||
},
|
||||
{
|
||||
"username": "BartDubois",
|
||||
"id": 1180931
|
||||
},
|
||||
{
|
||||
"username": "CrispyConductor",
|
||||
"id": 2132722
|
||||
},
|
||||
{
|
||||
"username": "BartDubois",
|
||||
"id": 1180931
|
||||
},
|
||||
{
|
||||
"username": "SnirBroshi",
|
||||
"id": 26556598
|
||||
@@ -280,20 +280,20 @@
|
||||
"id": 38713281
|
||||
},
|
||||
{
|
||||
"username": "kfatehi",
|
||||
"id": 175305
|
||||
},
|
||||
{
|
||||
"username": "gkalpak",
|
||||
"id": 8604205
|
||||
"username": "brenordr",
|
||||
"id": 19731692
|
||||
},
|
||||
{
|
||||
"username": "karfau",
|
||||
"id": 135657
|
||||
},
|
||||
{
|
||||
"username": "brenordr",
|
||||
"id": 19731692
|
||||
"username": "gkalpak",
|
||||
"id": 8604205
|
||||
},
|
||||
{
|
||||
"username": "kfatehi",
|
||||
"id": 175305
|
||||
},
|
||||
{
|
||||
"username": "frimuchkov",
|
||||
@@ -343,6 +343,22 @@
|
||||
"username": "jhonmike",
|
||||
"id": 2499937
|
||||
},
|
||||
{
|
||||
"username": "somethingSTRANGE",
|
||||
"id": 6905832
|
||||
},
|
||||
{
|
||||
"username": "plitex",
|
||||
"id": 2946823
|
||||
},
|
||||
{
|
||||
"username": "naveensrinivasan",
|
||||
"id": 172697
|
||||
},
|
||||
{
|
||||
"username": "nphyatt",
|
||||
"id": 6487450
|
||||
},
|
||||
{
|
||||
"username": "mysiar",
|
||||
"id": 13708162
|
||||
@@ -355,22 +371,6 @@
|
||||
"username": "Marin-Kitagawa",
|
||||
"id": 49131888
|
||||
},
|
||||
{
|
||||
"username": "nphyatt",
|
||||
"id": 6487450
|
||||
},
|
||||
{
|
||||
"username": "naveensrinivasan",
|
||||
"id": 172697
|
||||
},
|
||||
{
|
||||
"username": "plitex",
|
||||
"id": 2946823
|
||||
},
|
||||
{
|
||||
"username": "somethingSTRANGE",
|
||||
"id": 6905832
|
||||
},
|
||||
{
|
||||
"username": "varijkapil13",
|
||||
"id": 8291077
|
||||
@@ -392,29 +392,29 @@
|
||||
"id": 2234539
|
||||
},
|
||||
{
|
||||
"username": "okv",
|
||||
"id": 465522
|
||||
"username": "danielo515",
|
||||
"id": 2270425
|
||||
},
|
||||
{
|
||||
"username": "SheetJSDev",
|
||||
"id": 6070939
|
||||
},
|
||||
{
|
||||
"username": "danielo515",
|
||||
"id": 2270425
|
||||
"username": "okv",
|
||||
"id": 465522
|
||||
},
|
||||
{
|
||||
"username": "s-h-a-d-o-w",
|
||||
"id": 16936908
|
||||
},
|
||||
{
|
||||
"username": "alan-agius4",
|
||||
"id": 17563226
|
||||
},
|
||||
{
|
||||
"username": "awshanks",
|
||||
"id": 18176417
|
||||
},
|
||||
{
|
||||
"username": "alan-agius4",
|
||||
"id": 17563226
|
||||
},
|
||||
{
|
||||
"username": "imsnif",
|
||||
"id": 795598
|
||||
@@ -451,22 +451,22 @@
|
||||
"username": "josephg",
|
||||
"id": 47413
|
||||
},
|
||||
{
|
||||
"username": "MasterOdin",
|
||||
"id": 1845314
|
||||
},
|
||||
{
|
||||
"username": "marnel",
|
||||
"id": 3189424
|
||||
},
|
||||
{
|
||||
"username": "aledbf",
|
||||
"id": 161571
|
||||
},
|
||||
{
|
||||
"username": "kba",
|
||||
"id": 273367
|
||||
},
|
||||
{
|
||||
"username": "MasterOdin",
|
||||
"id": 1845314
|
||||
},
|
||||
{
|
||||
"username": "aledbf",
|
||||
"id": 161571
|
||||
},
|
||||
{
|
||||
"username": "Shreynik",
|
||||
"id": 25787910
|
||||
@@ -588,16 +588,16 @@
|
||||
"id": 1174257
|
||||
},
|
||||
{
|
||||
"username": "saurabh-gohil",
|
||||
"id": 7500357
|
||||
"username": "Skn0tt",
|
||||
"id": 14912729
|
||||
},
|
||||
{
|
||||
"username": "starizard",
|
||||
"id": 4953349
|
||||
},
|
||||
{
|
||||
"username": "Skn0tt",
|
||||
"id": 14912729
|
||||
"username": "saurabh-gohil",
|
||||
"id": 7500357
|
||||
},
|
||||
{
|
||||
"username": "saintmalik",
|
||||
@@ -615,10 +615,6 @@
|
||||
"username": "rostislav-simonik",
|
||||
"id": 25525736
|
||||
},
|
||||
{
|
||||
"username": "morlay",
|
||||
"id": 1667873
|
||||
},
|
||||
{
|
||||
"username": "fhp",
|
||||
"id": 374671
|
||||
@@ -659,6 +655,14 @@
|
||||
"username": "Tiny-Fendy",
|
||||
"id": 8954107
|
||||
},
|
||||
{
|
||||
"username": "tomcoonen",
|
||||
"id": 988013
|
||||
},
|
||||
{
|
||||
"username": "hedocode",
|
||||
"id": 22884999
|
||||
},
|
||||
{
|
||||
"username": "morrain",
|
||||
"id": 9381634
|
||||
@@ -823,10 +827,6 @@
|
||||
"username": "melodyVoid",
|
||||
"id": 26846212
|
||||
},
|
||||
{
|
||||
"username": "tomcoonen",
|
||||
"id": 988013
|
||||
},
|
||||
{
|
||||
"username": "grrowl",
|
||||
"id": 907140
|
||||
@@ -859,6 +859,10 @@
|
||||
"username": "stek29",
|
||||
"id": 11808223
|
||||
},
|
||||
{
|
||||
"username": "vsugrob",
|
||||
"id": 1497471
|
||||
},
|
||||
{
|
||||
"username": "vitalybaev",
|
||||
"id": 724423
|
||||
@@ -919,10 +923,6 @@
|
||||
"username": "divdavem",
|
||||
"id": 1152706
|
||||
},
|
||||
{
|
||||
"username": "hedocode",
|
||||
"id": 22884999
|
||||
},
|
||||
{
|
||||
"username": "bchenSyd",
|
||||
"id": 8207081
|
||||
@@ -1096,8 +1096,8 @@
|
||||
"id": 47446
|
||||
},
|
||||
{
|
||||
"username": "jchilton",
|
||||
"id": 181054
|
||||
"username": "ericmutta",
|
||||
"id": 20465797
|
||||
},
|
||||
{
|
||||
"username": "jondlm",
|
||||
@@ -1176,8 +1176,8 @@
|
||||
"id": 8955528
|
||||
},
|
||||
{
|
||||
"username": "ericmutta",
|
||||
"id": 20465797
|
||||
"username": "morlay",
|
||||
"id": 1667873
|
||||
},
|
||||
{
|
||||
"username": "einfallstoll",
|
||||
@@ -1255,6 +1255,10 @@
|
||||
"username": "johannespfeiffer",
|
||||
"id": 6780316
|
||||
},
|
||||
{
|
||||
"username": "jchilton",
|
||||
"id": 181054
|
||||
},
|
||||
{
|
||||
"username": "notsag",
|
||||
"id": 674589
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
# @verdaccio/proxy
|
||||
|
||||
## 8.0.0-next-8.25
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- 265c94a: fix(proxy): proxy protocol check
|
||||
- Updated dependencies [3aff890]
|
||||
- Updated dependencies [b24f513]
|
||||
- @verdaccio/config@8.0.0-next-8.25
|
||||
- @verdaccio/core@8.0.0-next-8.25
|
||||
|
||||
## 8.0.0-next-8.24
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/proxy",
|
||||
"version": "8.0.0-next-8.24",
|
||||
"version": "8.0.0-next-8.25",
|
||||
"description": "Verdaccio Proxy Fetcher",
|
||||
"main": "./build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -42,8 +42,8 @@
|
||||
"build": "pnpm run build:js && pnpm run build:types"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.25",
|
||||
"JSONStream": "1.3.5",
|
||||
"debug": "4.4.3",
|
||||
"got-cjs": "12.5.4",
|
||||
@@ -51,7 +51,7 @@
|
||||
"lodash": "4.17.21"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/types": "workspace:13.0.0-next-8.8",
|
||||
"get-stream": "6.0.1",
|
||||
"nock": "13.5.6",
|
||||
|
||||
@@ -15,7 +15,9 @@ class CustomAgents {
|
||||
this.proxy = proxy;
|
||||
this.url = url;
|
||||
this.agentOptions = agentOptions;
|
||||
const { protocol } = this.getParsedUrl();
|
||||
// Type of agent depends on the protocol of the server URL (no on the proxy)
|
||||
// See https://www.npmjs.com/package/hpagent
|
||||
const { protocol } = new URL(this.url);
|
||||
this.agent = this.getAgent(protocol);
|
||||
}
|
||||
|
||||
@@ -41,10 +43,6 @@ class CustomAgents {
|
||||
: { http: new HttpAgent(this.agentOptions) };
|
||||
}
|
||||
}
|
||||
|
||||
private getParsedUrl() {
|
||||
return this.proxy ? new URL(this.proxy) : new URL(this.url);
|
||||
}
|
||||
}
|
||||
|
||||
export default CustomAgents;
|
||||
|
||||
@@ -632,20 +632,6 @@ class ProxyStorage implements IProxy {
|
||||
}
|
||||
}
|
||||
|
||||
// validate proxy protocol matches the proxy_key type
|
||||
if (this.proxy) {
|
||||
const proxyUrl = new URL(this.proxy);
|
||||
const expectedProtocol = isHTTPS ? 'https:' : 'http:';
|
||||
if (proxyUrl.protocol !== expectedProtocol) {
|
||||
this.logger.error(
|
||||
{ proxy: this.proxy, expectedProtocol },
|
||||
`invalid protocol for ${proxy_key} - must be ${expectedProtocol}`
|
||||
);
|
||||
this.proxy = undefined;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof this.proxy === 'string') {
|
||||
debug('using proxy @{proxy} for @{url}', this.proxy, this.url.href);
|
||||
this.logger.debug(
|
||||
|
||||
@@ -28,60 +28,47 @@ describe('Check protocol of proxy', () => {
|
||||
beforeEach(() => {
|
||||
vi.clearAllMocks();
|
||||
});
|
||||
test('validate main config protocol - http', () => {
|
||||
test('main config - http registry, http proxy', () => {
|
||||
expect(
|
||||
getProxyInstance(
|
||||
'http://registry.domain.org',
|
||||
{ http_proxy: 'http://registry.local.org' },
|
||||
{}
|
||||
).proxy
|
||||
).toEqual('http://registry.local.org');
|
||||
getProxyInstance('http://registry.domain.org', { http_proxy: 'http://proxy.local' }, {}).proxy
|
||||
).toEqual('http://proxy.local');
|
||||
});
|
||||
test('main config invalid protocol - http', () => {
|
||||
test('main config - http registry, https proxy', () => {
|
||||
expect(
|
||||
getProxyInstance(
|
||||
'http://registry.domain.org',
|
||||
{ http_proxy: 'https://registry.local.org' },
|
||||
{}
|
||||
).proxy
|
||||
).toEqual(undefined);
|
||||
expect(mockError).toHaveBeenCalledOnce();
|
||||
getProxyInstance('http://registry.domain.org', { http_proxy: 'https://proxy.local' }, {})
|
||||
.proxy
|
||||
).toEqual('https://proxy.local');
|
||||
});
|
||||
test('main config invalid protocol - https', () => {
|
||||
test('main config invalid config key - http registry', () => {
|
||||
expect(
|
||||
getProxyInstance(
|
||||
'https://registry.domain.org',
|
||||
{ https_proxy: 'http://registry.local.org' },
|
||||
{}
|
||||
).proxy
|
||||
getProxyInstance('http://registry.domain.org', { https_proxy: 'anything' }, {}).proxy
|
||||
).toEqual(undefined);
|
||||
});
|
||||
test('main config invalid config key - https registry', () => {
|
||||
expect(
|
||||
getProxyInstance('https://registry.domain.org', { http_proxy: 'anything' }, {}).proxy
|
||||
).toEqual(undefined);
|
||||
expect(mockError).toHaveBeenCalledOnce();
|
||||
});
|
||||
|
||||
test('validate uplink config protocol - http', () => {
|
||||
test('uplink config - http registry, http proxy', () => {
|
||||
expect(
|
||||
getProxyInstance(
|
||||
'https://registry.domain.org',
|
||||
{},
|
||||
{ https_proxy: 'https://proxy.domain.org' }
|
||||
).proxy
|
||||
).toEqual('https://proxy.domain.org');
|
||||
getProxyInstance('http://registry.domain.org', {}, { http_proxy: 'http://proxy.local' }).proxy
|
||||
).toEqual('http://proxy.local');
|
||||
});
|
||||
test('uplink config invalid protocol - http', () => {
|
||||
test('uplink config - http registry, https proxy', () => {
|
||||
expect(
|
||||
getProxyInstance('http://registry.domain.org', {}, { http_proxy: 'https://proxy.domain.org' })
|
||||
getProxyInstance('http://registry.domain.org', {}, { http_proxy: 'https://proxy.local' })
|
||||
.proxy
|
||||
).toEqual(undefined);
|
||||
expect(mockError).toHaveBeenCalledOnce();
|
||||
).toEqual('https://proxy.local');
|
||||
});
|
||||
test('uplink config invalid protocol - https', () => {
|
||||
test('uplink config invalid config key - http registry', () => {
|
||||
expect(
|
||||
getProxyInstance(
|
||||
'https://registry.domain.org',
|
||||
{},
|
||||
{ https_proxy: 'http://proxy.domain.org' }
|
||||
).proxy
|
||||
getProxyInstance('http://registry.domain.org', {}, { https_proxy: 'anything' }).proxy
|
||||
).toEqual(undefined);
|
||||
});
|
||||
test('uplink config invalid config key - https registry', () => {
|
||||
expect(
|
||||
getProxyInstance('https://registry.domain.org', {}, { http_proxy: 'anything' }).proxy
|
||||
).toEqual(undefined);
|
||||
expect(mockError).toHaveBeenCalledOnce();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
# @verdaccio/search
|
||||
|
||||
## 8.0.0-next-8.25
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3aff890]
|
||||
- Updated dependencies [265c94a]
|
||||
- Updated dependencies [b24f513]
|
||||
- @verdaccio/config@8.0.0-next-8.25
|
||||
- @verdaccio/proxy@8.0.0-next-8.25
|
||||
- @verdaccio/core@8.0.0-next-8.25
|
||||
- @verdaccio/logger@8.0.0-next-8.25
|
||||
|
||||
## 8.0.0-next-8.24
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/search",
|
||||
"version": "8.0.0-next-8.24",
|
||||
"version": "8.0.0-next-8.25",
|
||||
"description": "Verdaccio Search Proxy",
|
||||
"main": "./build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -42,10 +42,10 @@
|
||||
"build": "pnpm run build:js && pnpm run build:types"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/proxy": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/proxy": "workspace:8.0.0-next-8.25",
|
||||
"debug": "4.4.3",
|
||||
"lodash": "4.17.21"
|
||||
},
|
||||
|
||||
@@ -1,5 +1,24 @@
|
||||
# @verdaccio/server
|
||||
|
||||
## 8.0.0-next-8.25
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies [3aff890]
|
||||
- Updated dependencies [ab3bf4a]
|
||||
- Updated dependencies [b24f513]
|
||||
- Updated dependencies [6d1a84a]
|
||||
- @verdaccio/config@8.0.0-next-8.25
|
||||
- @verdaccio/auth@8.0.0-next-8.25
|
||||
- @verdaccio/api@8.1.0-next-8.25
|
||||
- @verdaccio/middleware@8.0.0-next-8.25
|
||||
- @verdaccio/store@8.0.0-next-8.25
|
||||
- @verdaccio/web@8.1.0-next-8.25
|
||||
- @verdaccio/loaders@8.0.0-next-8.15
|
||||
- verdaccio-audit@13.0.0-next-8.25
|
||||
- @verdaccio/core@8.0.0-next-8.25
|
||||
- @verdaccio/logger@8.0.0-next-8.25
|
||||
|
||||
## 8.0.0-next-8.24
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@verdaccio/server",
|
||||
"version": "8.0.0-next-8.24",
|
||||
"version": "8.0.0-next-8.25",
|
||||
"description": "Verdaccio Express Server",
|
||||
"main": "./build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
@@ -33,16 +33,16 @@
|
||||
"node": ">=18"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/api": "workspace:8.1.0-next-8.24",
|
||||
"@verdaccio/auth": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/loaders": "workspace:8.0.0-next-8.14",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/middleware": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/store": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/web": "workspace:8.1.0-next-8.24",
|
||||
"verdaccio-audit": "workspace:13.0.0-next-8.24",
|
||||
"@verdaccio/api": "workspace:8.1.0-next-8.25",
|
||||
"@verdaccio/auth": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/loaders": "workspace:8.0.0-next-8.15",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/middleware": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/store": "workspace:8.0.0-next-8.25",
|
||||
"@verdaccio/web": "workspace:8.1.0-next-8.25",
|
||||
"verdaccio-audit": "workspace:13.0.0-next-8.25",
|
||||
"compression": "1.8.1",
|
||||
"cors": "2.8.5",
|
||||
"debug": "4.4.3",
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"extends": "../../../.babelrc"
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
node_modules
|
||||
coverage/
|
||||
lib/
|
||||
.nyc_output
|
||||
tests-report/
|
||||
build/
|
||||
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"rules": {
|
||||
"@typescript-eslint/no-use-before-define": "off"
|
||||
}
|
||||
}
|
||||
1
packages/server/fastify/.gitignore
vendored
1
packages/server/fastify/.gitignore
vendored
@@ -1 +0,0 @@
|
||||
lib/
|
||||
@@ -1,6 +0,0 @@
|
||||
/*
|
||||
!/bin/**/*
|
||||
!/build/**/*
|
||||
!index.js
|
||||
!LICENSE
|
||||
!README.md
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,21 +0,0 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2025 Verdaccio contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
@@ -1,88 +0,0 @@
|
||||
# @verdaccio/server-fastify - Verdaccio Fastify Server
|
||||
|
||||
[](https://verdaccio.org)
|
||||
[](https://github.com/verdaccio/verdaccio/blob/master/LICENSE)
|
||||
[](https://github.com/verdaccio/verdaccio)
|
||||
[](https://npmjs.com/package/@verdaccio/server-fastify)
|
||||
|
||||
[](https://verdaccio.org/docs)
|
||||
[](https://discord.com/channels/388674437219745793)
|
||||
[](https://bsky.app/profile/verdaccio.org)
|
||||
[](https://opencollective.com/verdaccio/contribute)
|
||||
[](https://opencollective.com/verdaccio/contribute)
|
||||
|
||||
[](https://www.npmjs.com/package/verdaccio)
|
||||
[](https://hub.docker.com/r/verdaccio/verdaccio)
|
||||
[](https://github.com/verdaccio/verdaccio/stargazers)
|
||||
|
||||
A package intended to start a migration from Express to fastify. (WIP).
|
||||
|
||||
Run from root folder
|
||||
|
||||
```js
|
||||
pnpm debug -- new
|
||||
```
|
||||
|
||||
## Donations
|
||||
|
||||
Verdaccio is run by **volunteers**; nobody is working full-time on it. If you find this project to be useful and would like to support its development, consider making a donation - **your logo might end up in this readme.** 😉
|
||||
|
||||
**[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/contribute)]
|
||||
|
||||
[](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/contribute)]
|
||||
|
||||
[](https://opencollective.com/verdaccio/contributes)
|
||||
|
||||
## 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/)
|
||||
|
||||
## Contributors
|
||||
|
||||
This project exists thanks to all the people who contribute. [[Contribute](https://github.com/verdaccio/verdaccio/blob/master/CONTRIBUTING.md)].
|
||||
|
||||
[](https://github.com/verdaccio/verdaccio/graphs/contributors)
|
||||
|
||||
## FAQ / Contact / Troubleshoot
|
||||
|
||||
If you have any issue you can try the following options. Do not hesitate to ask or check our issues database. Perhaps someone has asked already what you are looking for.
|
||||
|
||||
- [Blog](https://verdaccio.org/blog/)
|
||||
- [Donations](https://opencollective.com/verdaccio)
|
||||
- [Reporting an issue](https://github.com/verdaccio/verdaccio/blob/master/CONTRIBUTING.md#reporting-a-bug)
|
||||
- [Running discussions](https://github.com/orgs/verdaccio/discussions)
|
||||
- [Chat](https://discord.com/channels/388674437219745793)
|
||||
- [Logos](https://verdaccio.org/docs/logo)
|
||||
- [Docker Examples](https://github.com/verdaccio/verdaccio/tree/master/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)
|
||||
|
||||
The Verdaccio documentation and logos (excluding /thanks, e.g., .md, .png, .sketch files within the /assets folder) are
|
||||
[Creative Commons licensed](https://creativecommons.org/licenses/by/4.0/).
|
||||
@@ -1,39 +0,0 @@
|
||||
storage: ./storage
|
||||
plugins: ./plugins
|
||||
web:
|
||||
title: Verdaccio
|
||||
|
||||
auth:
|
||||
htpasswd:
|
||||
file: ./htpasswd
|
||||
uplinks:
|
||||
npmjs:
|
||||
url: https://registry.npmjs.org/
|
||||
|
||||
packages:
|
||||
'@*/*':
|
||||
access: $all
|
||||
publish: $authenticated
|
||||
unpublish: $authenticated
|
||||
proxy: npmjs
|
||||
|
||||
'**':
|
||||
access: $all
|
||||
publish: $authenticated
|
||||
unpublish: $authenticated
|
||||
proxy: npmjs
|
||||
|
||||
server:
|
||||
keepAliveTimeout: 60
|
||||
|
||||
middlewares:
|
||||
audit:
|
||||
enabled: true
|
||||
|
||||
log: { type: stdout, format: pretty, level: http }
|
||||
flags:
|
||||
token: false
|
||||
search: false
|
||||
|
||||
i18n:
|
||||
web: en-US
|
||||
@@ -1,32 +0,0 @@
|
||||
import buildDebug from 'debug';
|
||||
import path from 'node:path';
|
||||
|
||||
import { parseConfigFile } from '@verdaccio/config';
|
||||
import { logger, setup } from '@verdaccio/logger';
|
||||
|
||||
import server from '../src/index';
|
||||
|
||||
const debug = buildDebug('verdaccio:fastify:debug');
|
||||
|
||||
/**
|
||||
* This file is intended for fast development and debug, it should
|
||||
* be removed eventually and the app start from @verdaccio/cli package.
|
||||
*/
|
||||
(async () => {
|
||||
try {
|
||||
const configFile = path.join(__dirname, './fastify-conf.yaml');
|
||||
debug('configFile %s', configFile);
|
||||
const configParsed = parseConfigFile(configFile);
|
||||
setup(configParsed.log);
|
||||
logger.info(`config location ${configFile}`);
|
||||
debug('configParsed %s', configParsed);
|
||||
process.title = 'fastify-verdaccio';
|
||||
const ser = await server({ logger, config: configParsed });
|
||||
await ser.listen(4873);
|
||||
logger.info('fastify running on port 4873');
|
||||
} catch (err: any) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error(err);
|
||||
process.exit(1);
|
||||
}
|
||||
})();
|
||||
@@ -1,65 +0,0 @@
|
||||
{
|
||||
"name": "@verdaccio/server-fastify",
|
||||
"version": "8.0.0-next-8.24",
|
||||
"description": "Verdaccio Fastify Server",
|
||||
"keywords": [
|
||||
"private",
|
||||
"package",
|
||||
"repository",
|
||||
"registry",
|
||||
"enterprise",
|
||||
"modules",
|
||||
"proxy",
|
||||
"server",
|
||||
"verdaccio"
|
||||
],
|
||||
"main": "./build/index.js",
|
||||
"types": "./build/index.d.ts",
|
||||
"author": "Juan Picado <juanpicado19@gmail.com>",
|
||||
"license": "MIT",
|
||||
"homepage": "https://verdaccio.org",
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
},
|
||||
"repository": {
|
||||
"type": "https",
|
||||
"url": "https://github.com/verdaccio/verdaccio",
|
||||
"directory": "packages/server/fastify"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/verdaccio/verdaccio/issues"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/core": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/config": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/auth": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/logger": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/store": "workspace:8.0.0-next-8.24",
|
||||
"@verdaccio/tarball": "workspace:13.0.0-next-8.24",
|
||||
"core-js": "3.45.1",
|
||||
"debug": "4.4.3",
|
||||
"fastify": "4.25.2",
|
||||
"fastify-plugin": "4.5.1",
|
||||
"lodash": "4.17.21"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "workspace:13.0.0-next-8.8",
|
||||
"ts-node": "10.9.2"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "rimraf ./build",
|
||||
"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",
|
||||
"watch": "pnpm build:js -- --watch",
|
||||
"build": "pnpm run build:js && pnpm run build:types",
|
||||
"start": "ts-node debug/index.ts"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/verdaccio"
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user