mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
feat: replace middleware and logger core (#3586)
Use verdaccio 6 modules for middleware and logger with pino 7
This commit is contained in:
parent
cbe4a17337
commit
bf9ed26d90
237 changed files with 1206 additions and 2051 deletions
37
.github/workflows/e2e-angular-cli-workflow.yml
vendored
37
.github/workflows/e2e-angular-cli-workflow.yml
vendored
|
@ -152,6 +152,43 @@ jobs:
|
|||
npm install @angular-devkit/core@next @babel/preset-env @babel/core -D
|
||||
|
||||
npm run ng build --aot
|
||||
npm9:
|
||||
name: 'npm9:angular example'
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2
|
||||
|
||||
- name: 'Use Node.js 18.x'
|
||||
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561 # tag=v2.5.1
|
||||
with:
|
||||
node-version: 18.x
|
||||
- name: 'install latest npm'
|
||||
run: npm i -g npm@next-9
|
||||
- name: Install Dependencies
|
||||
run: yarn install
|
||||
- name: 'Run verdaccio in the background'
|
||||
run: |
|
||||
nohup yarn node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml &
|
||||
- name: 'Ping to verdaccio'
|
||||
run: |
|
||||
npm ping --registry http://localhost:4873
|
||||
- name: 'Running the integration test'
|
||||
run: |
|
||||
source scripts/e2e-setup-ci.sh
|
||||
echo "registry=http://localhost:4873" > ~/.npmrc
|
||||
npm config set loglevel="silent"
|
||||
npm config set fetch-retries="5"
|
||||
npm config set fetch-retry-factor="50"
|
||||
npm config set fetch-retry-mintimeout="20000"
|
||||
npm config set fetch-retry-maxtimeout="80000"
|
||||
npm install -g @angular/cli
|
||||
ng new verdaccio-angular --interactive=false
|
||||
|
||||
cd verdaccio-angular
|
||||
npm install @angular-devkit/core@next @babel/preset-env @babel/core -D
|
||||
|
||||
npm run ng build --aot
|
||||
|
||||
# pnpm throws errors worth to check why
|
||||
# pnpm:
|
||||
|
|
35
.github/workflows/e2e-gatsbyjs-cli-workflow.yml
vendored
35
.github/workflows/e2e-gatsbyjs-cli-workflow.yml
vendored
|
@ -42,3 +42,38 @@ jobs:
|
|||
gatsby new my-gatsby
|
||||
cd my-gatsby
|
||||
npm run build
|
||||
npm9:
|
||||
name: 'npm9:gatsby example'
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2
|
||||
|
||||
- name: 'Use Node.js 18.x'
|
||||
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561 # tag=v2.5.1
|
||||
with:
|
||||
node-version: 18.x
|
||||
- name: 'install npm 9'
|
||||
run: npm i -g npm@9.4.2
|
||||
- name: Install Dependencies
|
||||
run: yarn install
|
||||
- name: 'Run verdaccio in the background'
|
||||
run: |
|
||||
nohup yarn node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml &
|
||||
- name: 'Ping to verdaccio'
|
||||
run: |
|
||||
npm ping --registry http://localhost:4873
|
||||
- name: 'Running the integration test'
|
||||
run: |
|
||||
source scripts/e2e-setup-ci.sh
|
||||
echo "registry=http://localhost:4873
|
||||
loglevel="warn"
|
||||
fetch-retries=10
|
||||
fetch-retry-factor=2
|
||||
fetch-retry-mintimeout=10000
|
||||
fetch-retry-maxtimeout=80000" > ~/.npmrc
|
||||
npm config list
|
||||
npm i -g gatsby@5.6.0
|
||||
gatsby new my-gatsby
|
||||
cd my-gatsby
|
||||
npm run build
|
||||
|
|
33
.github/workflows/e2e-jest-workflow.yml
vendored
33
.github/workflows/e2e-jest-workflow.yml
vendored
|
@ -138,6 +138,39 @@ jobs:
|
|||
yarn add left-pad --registry http://localhost:4873 --verbose
|
||||
echo "const leftPad = require('left-pad'); it('should resolve a module', () => { expect(typeof leftPad).toBe('function');});" | tee module.test.js
|
||||
yarn jest module.test.js
|
||||
npm9:
|
||||
name: 'npm9:jest example'
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2
|
||||
|
||||
- name: 'Use Node.js 18.x'
|
||||
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561 # tag=v2.5.1
|
||||
with:
|
||||
node-version: 18.x
|
||||
- name: 'install latest npm'
|
||||
run: npm i -g npm@next-9
|
||||
- name: Install Dependencies
|
||||
run: yarn install
|
||||
- name: 'Run verdaccio in the background'
|
||||
run: |
|
||||
nohup yarn node ./scripts/run-verdaccio.js --config ./scripts/e2e-config.yaml &
|
||||
- name: 'Ping to verdaccio'
|
||||
run: |
|
||||
npm ping --registry http://localhost:4873
|
||||
- name: 'Running the integration test'
|
||||
run: |
|
||||
source scripts/e2e-setup-ci.sh
|
||||
npm init --force
|
||||
npm install jest@29.4.2 --registry http://localhost:4873
|
||||
|
||||
echo "it('should pass', () => { expect(true).toBeTruthy(); });" | tee pass.test.js
|
||||
yarn jest pass.test.js
|
||||
|
||||
yarn add left-pad --registry http://localhost:4873 --verbose
|
||||
echo "const leftPad = require('left-pad'); it('should resolve a module', () => { expect(typeof leftPad).toBe('function');});" | tee module.test.js
|
||||
yarn jest module.test.js
|
||||
|
||||
pnpm6:
|
||||
name: 'pnpm:latest-6:jest example'
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@babel-generator-npm-7.20.14-5716f26903-5f6aa2d86a.zip
vendored
Normal file
BIN
.yarn/cache/@babel-generator-npm-7.20.14-5716f26903-5f6aa2d86a.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@babel-helper-create-class-features-plugin-npm-7.20.12-8baca9b204-1e9ed4243b.zip
vendored
Normal file
BIN
.yarn/cache/@babel-helper-create-class-features-plugin-npm-7.20.12-8baca9b204-1e9ed4243b.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@babel-helper-create-regexp-features-plugin-npm-7.20.5-acca88343d-7f29c3cb74.zip
vendored
Normal file
BIN
.yarn/cache/@babel-helper-create-regexp-features-plugin-npm-7.20.5-acca88343d-7f29c3cb74.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@babel-helper-wrap-function-npm-7.20.5-9d89bdc0c2-11a6fc2833.zip
vendored
Normal file
BIN
.yarn/cache/@babel-helper-wrap-function-npm-7.20.5-9d89bdc0c2-11a6fc2833.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@babel-helpers-npm-7.20.13-e6e7b0deb9-d62076fa83.zip
vendored
Normal file
BIN
.yarn/cache/@babel-helpers-npm-7.20.13-e6e7b0deb9-d62076fa83.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@babel-parser-npm-7.20.15-f05df4b4ba-1d0f47ca67.zip
vendored
Normal file
BIN
.yarn/cache/@babel-parser-npm-7.20.15-f05df4b4ba-1d0f47ca67.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@babel-plugin-proposal-async-generator-functions-npm-7.20.7-14b8ab2230-111109ee11.zip
vendored
Normal file
BIN
.yarn/cache/@babel-plugin-proposal-async-generator-functions-npm-7.20.7-14b8ab2230-111109ee11.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@babel-plugin-proposal-class-static-block-npm-7.20.7-111161ca4c-ce1f3e8fd9.zip
vendored
Normal file
BIN
.yarn/cache/@babel-plugin-proposal-class-static-block-npm-7.20.7-111161ca4c-ce1f3e8fd9.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@babel-plugin-proposal-logical-assignment-operators-npm-7.20.7-14484768d8-cdd7b8136c.zip
vendored
Normal file
BIN
.yarn/cache/@babel-plugin-proposal-logical-assignment-operators-npm-7.20.7-14484768d8-cdd7b8136c.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@babel-plugin-proposal-private-property-in-object-npm-7.20.5-1a8a63e08f-513b5e0e2c.zip
vendored
Normal file
BIN
.yarn/cache/@babel-plugin-proposal-private-property-in-object-npm-7.20.5-1a8a63e08f-513b5e0e2c.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@babel-plugin-transform-arrow-functions-npm-7.20.7-52bf9374d6-b43cabe379.zip
vendored
Normal file
BIN
.yarn/cache/@babel-plugin-transform-arrow-functions-npm-7.20.7-52bf9374d6-b43cabe379.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@babel-plugin-transform-block-scoping-npm-7.20.15-ec659d1c22-1dddf7be57.zip
vendored
Normal file
BIN
.yarn/cache/@babel-plugin-transform-block-scoping-npm-7.20.15-ec659d1c22-1dddf7be57.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@babel-plugin-transform-computed-properties-npm-7.20.7-12c660b0c5-be70e54bda.zip
vendored
Normal file
BIN
.yarn/cache/@babel-plugin-transform-computed-properties-npm-7.20.7-12c660b0c5-be70e54bda.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@babel-plugin-transform-modules-amd-npm-7.20.11-ba779cdd73-23665c1c20.zip
vendored
Normal file
BIN
.yarn/cache/@babel-plugin-transform-modules-amd-npm-7.20.11-ba779cdd73-23665c1c20.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@babel-plugin-transform-modules-commonjs-npm-7.20.11-9923f9acaa-ddd0623e2a.zip
vendored
Normal file
BIN
.yarn/cache/@babel-plugin-transform-modules-commonjs-npm-7.20.11-9923f9acaa-ddd0623e2a.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@babel-plugin-transform-modules-systemjs-npm-7.20.11-920d0f703b-4546c47587.zip
vendored
Normal file
BIN
.yarn/cache/@babel-plugin-transform-modules-systemjs-npm-7.20.11-920d0f703b-4546c47587.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@babel-plugin-transform-regenerator-npm-7.20.5-51795f805e-13164861e7.zip
vendored
Normal file
BIN
.yarn/cache/@babel-plugin-transform-regenerator-npm-7.20.5-51795f805e-13164861e7.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@babel-plugin-transform-spread-npm-7.20.7-dad04f117e-8ea698a12d.zip
vendored
Normal file
BIN
.yarn/cache/@babel-plugin-transform-spread-npm-7.20.7-dad04f117e-8ea698a12d.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@babel-plugin-transform-typescript-npm-7.20.13-659a096edd-0b0c3a3e53.zip
vendored
Normal file
BIN
.yarn/cache/@babel-plugin-transform-typescript-npm-7.20.13-659a096edd-0b0c3a3e53.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@babel-runtime-npm-7.20.13-45eeb6d8ad-09b7a97a05.zip
vendored
Normal file
BIN
.yarn/cache/@babel-runtime-npm-7.20.13-45eeb6d8ad-09b7a97a05.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@octokit-auth-token-npm-3.0.3-6fba099166-9b3f569cec.zip
vendored
Normal file
BIN
.yarn/cache/@octokit-auth-token-npm-3.0.3-6fba099166-9b3f569cec.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@octokit-endpoint-npm-7.0.5-82841b7e23-81c9e9eabf.zip
vendored
Normal file
BIN
.yarn/cache/@octokit-endpoint-npm-7.0.5-82841b7e23-81c9e9eabf.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@octokit-graphql-npm-5.0.5-0534ea7757-eb2d1a6305.zip
vendored
Normal file
BIN
.yarn/cache/@octokit-graphql-npm-5.0.5-0534ea7757-eb2d1a6305.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@octokit-request-error-npm-3.0.3-cbba4d6220-5db0b51473.zip
vendored
Normal file
BIN
.yarn/cache/@octokit-request-error-npm-3.0.3-cbba4d6220-5db0b51473.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@octokit-request-npm-6.2.3-1b72fec7bb-fef4097be8.zip
vendored
Normal file
BIN
.yarn/cache/@octokit-request-npm-6.2.3-1b72fec7bb-fef4097be8.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@types-babel__traverse-npm-7.18.3-db279a0ed0-d20953338b.zip
vendored
Normal file
BIN
.yarn/cache/@types-babel__traverse-npm-7.18.3-db279a0ed0-d20953338b.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@types-express-npm-4.17.17-46fe8173db-0196dacc27.zip
vendored
Normal file
BIN
.yarn/cache/@types-express-npm-4.17.17-46fe8173db-0196dacc27.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@types-express-serve-static-core-npm-4.17.33-0366bd5654-dce580d16b.zip
vendored
Normal file
BIN
.yarn/cache/@types-express-serve-static-core-npm-4.17.33-0366bd5654-dce580d16b.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@types-yargs-npm-17.0.22-35cdb1bdeb-0773523fda.zip
vendored
Normal file
BIN
.yarn/cache/@types-yargs-npm-17.0.22-35cdb1bdeb-0773523fda.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@typescript-eslint-types-npm-5.50.0-0fafb2cf85-1189c63d35.zip
vendored
Normal file
BIN
.yarn/cache/@typescript-eslint-types-npm-5.50.0-0fafb2cf85-1189c63d35.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue