mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-08 23:25:51 +01:00
eb7a8e3528
fix #1328 and #720 Type: bug The following has been addressed in the PR: Instead of returning a 404 (Not Found) when npm, yarn, etc requests a package and the package cannot be acquired from an uplink due to a connection timeout, socket timeout, or connection reset problem, a 503 (service unavailable) is returned by Verdaccio instead. In limited testing of a few versions of npm and yarn, both of these clients correctly attempt to retry the request when a 503 is returned. Added functional tests to verify the behavior (this adds a dev dependency on nock, which provides HTTP request mocking Description: This resolves issue #1328 and #720, and ensures npm/yarn install commands don't fail immediately when there is an intermittent network timeout problem with an uplink. Instead Verdaccio will appropriately respond to the client with a 503. A 404 response (current behavior) incorrectly tells the client that the package does not exist (which may or may not be true) and to not try again.
155 lines
4.3 KiB
JSON
155 lines
4.3 KiB
JSON
{
|
|
"name": "verdaccio",
|
|
"version": "4.0.2",
|
|
"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"
|
|
},
|
|
"main": "build/index.js",
|
|
"bin": {
|
|
"verdaccio": "./bin/verdaccio"
|
|
},
|
|
"dependencies": {
|
|
"@verdaccio/local-storage": "2.1.0",
|
|
"@verdaccio/readme": "1.0.3",
|
|
"@verdaccio/streams": "2.0.0",
|
|
"@verdaccio/ui-theme": "0.1.11",
|
|
"JSONStream": "1.3.5",
|
|
"async": "3.0.1",
|
|
"body-parser": "1.19.0",
|
|
"bunyan": "1.8.12",
|
|
"commander": "2.20.0",
|
|
"compression": "1.7.4",
|
|
"cookies": "0.7.3",
|
|
"cors": "2.8.5",
|
|
"dayjs": "1.8.14",
|
|
"express": "4.16.4",
|
|
"handlebars": "4.1.2",
|
|
"http-errors": "1.7.2",
|
|
"js-yaml": "3.13.1",
|
|
"jsonwebtoken": "8.5.1",
|
|
"kleur": "3.0.3",
|
|
"lodash": "4.17.11",
|
|
"lunr-mutable-indexes": "2.3.2",
|
|
"marked": "0.6.2",
|
|
"mime": "2.4.4",
|
|
"minimatch": "3.0.4",
|
|
"mkdirp": "0.5.1",
|
|
"mv": "2.1.1",
|
|
"pkginfo": "0.4.1",
|
|
"request": "2.87.0",
|
|
"semver": "6.1.1",
|
|
"verdaccio-audit": "1.2.0",
|
|
"verdaccio-htpasswd": "2.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@commitlint/cli": "7.5.2",
|
|
"@commitlint/config-conventional": "7.5.0",
|
|
"@octokit/rest": "16.25.0",
|
|
"@verdaccio/babel-preset": "0.1.0",
|
|
"@verdaccio/types": "5.0.0-beta.4",
|
|
"codecov": "3.3.0",
|
|
"cross-env": "5.2.0",
|
|
"eslint": "5.16.0",
|
|
"eslint-config-google": "0.12.0",
|
|
"eslint-config-prettier": "4.2.0",
|
|
"eslint-plugin-babel": "5.3.0",
|
|
"eslint-plugin-flowtype": "3.6.1",
|
|
"eslint-plugin-import": "2.17.2",
|
|
"eslint-plugin-jest": "22.5.1",
|
|
"eslint-plugin-jsx-a11y": "6.2.1",
|
|
"eslint-plugin-prettier": "3.0.1",
|
|
"eslint-plugin-verdaccio": "0.0.5",
|
|
"flow-bin": "0.81.0",
|
|
"flow-runtime": "0.17.0",
|
|
"get-stdin": "7.0.0",
|
|
"husky": "2.1.0",
|
|
"in-publish": "2.0.0",
|
|
"jest": "24.7.1",
|
|
"jest-environment-node": "24.7.1",
|
|
"lint-staged": "8.1.5",
|
|
"nock": "10.0.6",
|
|
"prettier": "1.17.0",
|
|
"puppeteer": "1.8.0",
|
|
"rimraf": "2.6.3",
|
|
"standard-version": "5.0.2",
|
|
"supertest": "4.0.2",
|
|
"verdaccio-auth-memory": "0.0.4",
|
|
"verdaccio-memory": "2.0.0"
|
|
},
|
|
"keywords": [
|
|
"private",
|
|
"package",
|
|
"repository",
|
|
"registry",
|
|
"enterprise",
|
|
"modules",
|
|
"proxy",
|
|
"server",
|
|
"verdaccio"
|
|
],
|
|
"scripts": {
|
|
"release": "standard-version -a -s",
|
|
"prepublish": "in-publish && npm run code:build || not-in-publish",
|
|
"flow": "flow check",
|
|
"pretest": "npm run code:build",
|
|
"test": "npm run test:unit",
|
|
"test:clean": "npx jest --clearCache",
|
|
"test:unit": "cross-env NODE_ENV=test BABEL_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": "cross-env BABEL_ENV=test jest --config ./test/jest.config.e2e.js",
|
|
"test:all": "npm run test && npm run test:functional && npm run test:e2e",
|
|
"pre:ci": "npm run lint",
|
|
"coverage:publish": "codecov",
|
|
"lint": "npm run flow && npm run lint:js",
|
|
"lint:js": "eslint .",
|
|
"dev:start": "cross-env BABEL_ENV=registry babel-node src/lib/cli",
|
|
"code:build": "cross-env BABEL_ENV=registry babel src/ --out-dir build/ --copy-files",
|
|
"code:docker-build": "cross-env BABEL_ENV=registry-docker babel src/ --out-dir build/ --copy-files",
|
|
"build:docker": "docker build -t verdaccio . --no-cache"
|
|
},
|
|
"engines": {
|
|
"node": ">=8",
|
|
"npm": ">=5"
|
|
},
|
|
"preferGlobal": true,
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "lint-staged",
|
|
"commit-msg": "commitlint -e $GIT_PARAMS"
|
|
}
|
|
},
|
|
"lint-staged": {
|
|
"linters": {
|
|
"*.yaml": [
|
|
"prettier --parser yaml --no-config --single-quote --write",
|
|
"git add"
|
|
],
|
|
"*": [
|
|
"eslint .",
|
|
"prettier --write",
|
|
"git add"
|
|
]
|
|
},
|
|
"ignore": [
|
|
"*.json"
|
|
]
|
|
},
|
|
"license": "MIT",
|
|
"commitlint": {
|
|
"extends": [
|
|
"@commitlint/config-conventional"
|
|
]
|
|
},
|
|
"collective": {
|
|
"type": "opencollective",
|
|
"url": "https://opencollective.com/verdaccio",
|
|
"logo": "https://opencollective.com/verdaccio/logo.txt"
|
|
}
|
|
}
|