mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
e4573c7e15
* fix: avoid setting body for GET requests When making a GET request to certain uplinks, such as https://registry.npmmirror.com, setting the body field can result in a 413 error. Previously, the code was setting the body field for all requests, including GET requests. This commit fixes the issue by checking the request method and avoiding setting the body field for GET requests. This ensures that GET requests are not affected by the issue and can be made without error. Fixes #3601 * add missing deps for run test locally * test(up-storage): add unit test about uplink is npmmirror Cause thers is a bug in `isObject` function from `@verdaccio/core`, when `options.json` is `true` GET request body will be string 'true', some uplinks might return 413 status code such as https://registry.npmmirror.com fix #3601 * chore(deps): update @verdaccio/core --------- Co-authored-by: Juan Picado <juanpicado19@gmail.com> Co-authored-by: botao <botao@tal.com>
195 lines
7 KiB
JSON
195 lines
7 KiB
JSON
{
|
|
"name": "verdaccio",
|
|
"version": "5.21.1",
|
|
"description": "A lightweight private npm proxy registry",
|
|
"author": {
|
|
"name": "Verdaccio Maintainers",
|
|
"email": "verdaccio.npm@gmail.com"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git://github.com/verdaccio/verdaccio"
|
|
},
|
|
"homepage": "https://verdaccio.org",
|
|
"main": "build/index.js",
|
|
"types": "build/index.d.ts",
|
|
"bin": "./bin/verdaccio",
|
|
"funding": {
|
|
"type": "opencollective",
|
|
"url": "https://opencollective.com/verdaccio"
|
|
},
|
|
"dependencies": {
|
|
"@verdaccio/config": "6.0.0-6-next.61",
|
|
"@verdaccio/core": "6.0.0-6-next.62",
|
|
"@verdaccio/local-storage": "10.3.1",
|
|
"@verdaccio/logger-7": "6.0.0-6-next.6",
|
|
"@verdaccio/middleware": "6.0.0-6-next.40",
|
|
"@verdaccio/streams": "10.2.0",
|
|
"@verdaccio/tarball": "11.0.0-6-next.30",
|
|
"@verdaccio/ui-theme": "6.0.0-6-next.61",
|
|
"@verdaccio/url": "11.0.0-6-next.27",
|
|
"@verdaccio/utils": "6.0.0-6-next.29",
|
|
"JSONStream": "1.3.5",
|
|
"async": "3.2.4",
|
|
"body-parser": "1.20.1",
|
|
"clipanion": "3.2.0-rc.14",
|
|
"compression": "1.7.4",
|
|
"cookies": "0.8.0",
|
|
"cors": "2.8.5",
|
|
"debug": "^4.3.4",
|
|
"envinfo": "7.8.1",
|
|
"express": "4.18.2",
|
|
"express-rate-limit": "5.5.1",
|
|
"fast-safe-stringify": "2.1.1",
|
|
"handlebars": "4.7.7",
|
|
"js-yaml": "4.1.0",
|
|
"jsonwebtoken": "9.0.0",
|
|
"kleur": "4.1.5",
|
|
"lodash": "4.17.21",
|
|
"lru-cache": "7.17.0",
|
|
"lunr-mutable-indexes": "2.3.2",
|
|
"mime": "3.0.0",
|
|
"mkdirp": "1.0.4",
|
|
"mv": "2.1.1",
|
|
"pkginfo": "0.4.1",
|
|
"request": "2.88.0",
|
|
"semver": "7.3.8",
|
|
"validator": "13.7.0",
|
|
"verdaccio-audit": "11.0.0-6-next.23",
|
|
"verdaccio-htpasswd": "10.5.2"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/cli": "7.20.7",
|
|
"@babel/core": "7.20.12",
|
|
"@babel/node": "7.20.7",
|
|
"@babel/plugin-proposal-class-properties": "7.18.6",
|
|
"@babel/plugin-proposal-decorators": "7.20.7",
|
|
"@babel/plugin-proposal-export-namespace-from": "7.18.9",
|
|
"@babel/plugin-proposal-function-sent": "7.18.6",
|
|
"@babel/plugin-proposal-json-strings": "7.18.6",
|
|
"@babel/plugin-proposal-nullish-coalescing-operator": "7.18.6",
|
|
"@babel/plugin-proposal-numeric-separator": "7.18.6",
|
|
"@babel/plugin-proposal-object-rest-spread": "7.20.7",
|
|
"@babel/plugin-proposal-optional-chaining": "7.20.7",
|
|
"@babel/plugin-proposal-throw-expressions": "7.18.6",
|
|
"@babel/plugin-syntax-dynamic-import": "7.8.3",
|
|
"@babel/plugin-syntax-import-meta": "7.10.4",
|
|
"@babel/plugin-transform-async-to-generator": "7.20.7",
|
|
"@babel/plugin-transform-classes": "7.20.7",
|
|
"@babel/plugin-transform-runtime": "7.19.6",
|
|
"@babel/polyfill": "^7.12.1",
|
|
"@babel/preset-env": "7.20.2",
|
|
"@babel/preset-typescript": "7.18.6",
|
|
"@babel/register": "7.18.9",
|
|
"@babel/runtime": "7.20.7",
|
|
"@octokit/rest": "19.0.7",
|
|
"@trivago/prettier-plugin-sort-imports": "4.0.0",
|
|
"@types/async": "3.2.16",
|
|
"@types/express": "4.17.14",
|
|
"@types/express-serve-static-core": "4.17.28",
|
|
"@types/http-errors": "2.0.1",
|
|
"@types/jest": "26.0.24",
|
|
"@types/lodash": "4.14.191",
|
|
"@types/mime": "2.0.3",
|
|
"@types/minimatch": "3.0.5",
|
|
"@types/node": "18.11.18",
|
|
"@types/pino": "6.3.12",
|
|
"@types/request": "2.48.8",
|
|
"@types/semver": "7.3.13",
|
|
"@typescript-eslint/eslint-plugin": "5.49.0",
|
|
"@typescript-eslint/parser": "5.49.0",
|
|
"@verdaccio-scope/verdaccio-auth-foo": "0.0.2",
|
|
"@verdaccio/types": "10.7.0",
|
|
"babel-eslint": "10.1.0",
|
|
"babel-jest": "29.4.1",
|
|
"babel-plugin-dynamic-import-node": "2.3.3",
|
|
"cross-env": "7.0.3",
|
|
"detect-secrets": "1.0.6",
|
|
"eslint": "8.32.0",
|
|
"eslint-config-google": "0.14.0",
|
|
"eslint-config-prettier": "8.6.0",
|
|
"eslint-plugin-babel": "5.3.1",
|
|
"eslint-plugin-import": "2.27.5",
|
|
"eslint-plugin-jest": "27.2.1",
|
|
"eslint-plugin-prettier": "4.2.1",
|
|
"eslint-plugin-simple-import-sort": "9.0.0",
|
|
"eslint-plugin-verdaccio": "10.0.0",
|
|
"fs-extra": "10.1.0",
|
|
"get-port": "5.1.1",
|
|
"husky": "6.0.0",
|
|
"jest": "29.4.1",
|
|
"jest-config": "29.4.1",
|
|
"jest-environment-node": "29.4.1",
|
|
"jest-junit": "15.0.0",
|
|
"lint-staged": "11.0.1",
|
|
"lockfile-lint": "4.6.2",
|
|
"nock": "12.0.3",
|
|
"node-mocks-http": "^1.12.1",
|
|
"pinst": "2.1.6",
|
|
"prettier": "2.8.3",
|
|
"rimraf": "3.0.2",
|
|
"selfsigned": "1.10.14",
|
|
"standard-version": "9.5.0",
|
|
"supertest": "6.3.3",
|
|
"ts-node": "10.9.1",
|
|
"typescript": "4.1.3",
|
|
"verdaccio-auth-memory": "10.2.0",
|
|
"verdaccio-memory": "10.3.0"
|
|
},
|
|
"keywords": [
|
|
"private",
|
|
"package",
|
|
"repository",
|
|
"registry",
|
|
"enterprise",
|
|
"modules",
|
|
"proxy",
|
|
"server",
|
|
"verdaccio"
|
|
],
|
|
"scripts": {
|
|
"release": "standard-version -a -s",
|
|
"type-check": "tsc --noEmit",
|
|
"cache:clean": "yarn cache clean --mirror && yarn cache clean --all",
|
|
"type-check:watch": "yarn run type-check -- --watch",
|
|
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,yml,yaml,md}\"",
|
|
"format:check": "prettier --check \"**/*.{js,jsx,ts,tsx,json,yml,yaml,md}\"",
|
|
"test": "yarn run test:unit",
|
|
"test:clean": "npx jest --clearCache",
|
|
"test:unit": "cross-env NODE_ENV=test TZ=UTC FORCE_COLOR=1 jest --config ./jest.config.js --maxWorkers 2 --passWithNoTests",
|
|
"test:functional": "cross-env NODE_ENV=test jest --config ./test/jest.config.functional.js --testPathPattern ./test/functional/index* --passWithNoTests",
|
|
"test:e2e:cli": "cross-env NODE_ENV=test jest --config ./test/e2e-cli/jest.config.e2e.cli.js --passWithNoTests",
|
|
"test:all": "yarn run test && yarn run test:functional",
|
|
"pre:ci": "yarn run lint",
|
|
"lint:ts": "yarn run type-check",
|
|
"lint": "eslint \"**/*.{js,jsx,ts}\" --max-warnings 145 -c ./eslintrc.js",
|
|
"lint:lockfile": "lockfile-lint --path yarn.lock --type yarn --validate-https --allowed-hosts verdaccio npm yarn",
|
|
"start": "yarn babel-node --extensions \".ts,.tsx\" src/lib/cli --inspect",
|
|
"start:brk": "yarn babel-node --extensions \".ts,.tsx\" src/lib/cli --inspect-brk",
|
|
"start:debug": "yarn node debug/bootstrap.js",
|
|
"start:run-server": "yarn node debug/bootstrap-runserver.js",
|
|
"build": "yarn babel src/ --out-dir build/ --copy-files --extensions \".ts,.tsx\" --source-maps inline",
|
|
"code:types": "tsc --emitDeclarationOnly -p tsconfig.json",
|
|
"code:docker-build": "yarn babel src/ --out-dir build/ --copy-files --extensions \".ts,.tsx\"",
|
|
"docker": "docker build -t verdaccio/verdaccio:local . --no-cache",
|
|
"docker:run": "docker run -it --rm -p 4873:4873 verdaccio/verdaccio:local"
|
|
},
|
|
"engines": {
|
|
"node": ">=12.18"
|
|
},
|
|
"preferGlobal": true,
|
|
"license": "MIT",
|
|
"lint-staged": {
|
|
"*.{js,ts,tsx,json,yml,yaml,md}": "prettier --write",
|
|
"*.{js,ts,tsx}": "eslint --fix -c ./eslintrc.js"
|
|
},
|
|
"resolutions": {
|
|
"@types/serve-static": "1.13.10"
|
|
},
|
|
"collective": {
|
|
"type": "opencollective",
|
|
"url": "https://opencollective.com/verdaccio",
|
|
"logo": "https://opencollective.com/verdaccio/logo.txt"
|
|
},
|
|
"packageManager": "yarn@3.3.1"
|
|
}
|