mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
chore: update dependencies (maintenance)
* chore: update deps * chore: update deps * chore: fix dependencies * chore: update deps * chore: update deps * chore: add types * chore: update jest
This commit is contained in:
parent
9bb5b50c80
commit
9946ea8bea
24 changed files with 86 additions and 85 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -9,7 +9,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
node_version: [8, 10, 12, 13]
|
||||
node_version: [10, 12, 13, 14]
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -24,3 +24,4 @@ coverage/
|
|||
|
||||
# Compiled script
|
||||
packages/partials
|
||||
tsconfig.tsbuildinfo
|
||||
|
|
2
.nvmrc
2
.nvmrc
|
@ -1 +1 @@
|
|||
13
|
||||
12
|
||||
|
|
6
.vscode/settings.json
vendored
6
.vscode/settings.json
vendored
|
@ -1,10 +1,12 @@
|
|||
// Place your settings in this file to overwrite default and user settings.
|
||||
{
|
||||
"files.exclude": {
|
||||
"**/.idea": false,
|
||||
"**/.nyc_output": true,
|
||||
"**/build": true,
|
||||
"**/coverage": true
|
||||
"**/coverage": true,
|
||||
".idea": true,
|
||||
"storage_default_storage": true,
|
||||
".yarn": true
|
||||
},
|
||||
"typescript.tsdk": "node_modules/typescript/lib"
|
||||
}
|
|
@ -3,7 +3,7 @@
|
|||
"private": true,
|
||||
"version": "1.0.0",
|
||||
"dependencies": {
|
||||
"@verdaccio/babel-preset": "^8.2.0",
|
||||
"@verdaccio/eslint-config": "^8.2.0"
|
||||
"@verdaccio/babel-preset": "9.4.0",
|
||||
"@verdaccio/eslint-config": "9.3.2"
|
||||
}
|
||||
}
|
||||
|
|
47
package.json
47
package.json
|
@ -23,41 +23,40 @@
|
|||
"@types/async": "3.0.3",
|
||||
"@types/express": "4.17.1",
|
||||
"@types/http-errors": "1.6.3",
|
||||
"@types/jest": "24.0.25",
|
||||
"@types/lodash": "4.14.149",
|
||||
"@types/mime": "2.0.1",
|
||||
"@types/jest": "25.2.3",
|
||||
"@types/lodash": "4.14.151",
|
||||
"@types/mime": "2.0.2",
|
||||
"@types/minimatch": "3.0.3",
|
||||
"@types/node": "12.12.21",
|
||||
"@types/request": "2.48.3",
|
||||
"@types/semver": "6.2.0",
|
||||
"@types/express-serve-static-core": "4.17.1",
|
||||
"@verdaccio/babel-preset": "^9.3.0",
|
||||
"@verdaccio/eslint-config": "^9.0.0",
|
||||
"@verdaccio/types": "^9.3.0",
|
||||
"@types/semver": "7.2.0",
|
||||
"@verdaccio/babel-preset": "9.4.0",
|
||||
"@verdaccio/eslint-config": "9.0.0",
|
||||
"@verdaccio/types": "9.5.0",
|
||||
"codecov": "3.6.1",
|
||||
"cross-env": "6.0.3",
|
||||
"detect-secrets": "1.0.5",
|
||||
"eslint": "6.8.0",
|
||||
"cross-env": "7.0.2",
|
||||
"detect-secrets": "1.0.6",
|
||||
"eslint": "7.0.0",
|
||||
"fs-extra": "8.1.0",
|
||||
"get-stdin": "7.0.0",
|
||||
"kleur": "3.0.3",
|
||||
"husky": "2.7.0",
|
||||
"in-publish": "2.0.0",
|
||||
"jest": "^24.9.0",
|
||||
"jest-environment-node": "^24.9.0",
|
||||
"jest-junit": "^9.0.0",
|
||||
"lerna": "^3.18.4",
|
||||
"jest": "26.0.1",
|
||||
"jest-environment-node": "26.0.1",
|
||||
"jest-junit": "10.0.0",
|
||||
"kleur": "3.0.3",
|
||||
"lerna": "3.21.0",
|
||||
"lint-staged": "8.2.1",
|
||||
"nock": "^11.7.2",
|
||||
"prettier": "^1.19.1",
|
||||
"nock": "11.7.2",
|
||||
"prettier": "1.19.1",
|
||||
"rimraf": "3.0.0",
|
||||
"selfsigned": "1.10.7",
|
||||
"standard-version": "^7.0.1",
|
||||
"supertest": "^4.0.2",
|
||||
"typescript": "beta",
|
||||
"verdaccio-auth-memory": "^9.3.0",
|
||||
"verdaccio-memory": "^9.3.0",
|
||||
"verdaccio": "^4.4.4"
|
||||
"standard-version": "7.0.1",
|
||||
"supertest": "4.0.2",
|
||||
"typescript": "3.9.2",
|
||||
"verdaccio": "4.6.2",
|
||||
"verdaccio-auth-memory": "9.3.0",
|
||||
"verdaccio-memory": "9.3.0"
|
||||
},
|
||||
"scripts": {
|
||||
"bootstrap": "lerna bootstrap",
|
||||
|
|
|
@ -23,22 +23,22 @@
|
|||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@verdaccio/commons-api": "^9.0.0",
|
||||
"@verdaccio/auth": "5.0.0-alpha.0",
|
||||
"@verdaccio/commons-api": "9.4.0",
|
||||
"@verdaccio/dev-commons": "5.0.0-alpha.0",
|
||||
"@verdaccio/hooks": "5.0.0-alpha.0",
|
||||
"@verdaccio/logger": "5.0.0-alpha.0",
|
||||
"@verdaccio/auth": "5.0.0-alpha.0",
|
||||
"@verdaccio/middleware": "5.0.0-alpha.0",
|
||||
"@verdaccio/utils": "5.0.0-alpha.0",
|
||||
"body-parser": "^1.19.0",
|
||||
"cookies": "^0.8.0",
|
||||
"body-parser": "1.19.0",
|
||||
"cookies": "0.8.0",
|
||||
"express": "4.17.1",
|
||||
"lodash": "^4.17.15",
|
||||
"mime": "^2.4.4"
|
||||
"lodash": "4.17.15",
|
||||
"mime": "2.4.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/dev-types": "5.0.0-alpha.0",
|
||||
"@verdaccio/types": "^9.3.0"
|
||||
"@verdaccio/types": "9.3.0"
|
||||
},
|
||||
"gitHead": "7c246ede52ff717707fcae66dd63fc4abd536982"
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import _ from 'lodash';
|
||||
import express from 'express';
|
||||
import express, {Express} from 'express';
|
||||
|
||||
import { match, validateName, validatePackage, encodeScopePackage, antiLoop } from '@verdaccio/middleware';
|
||||
import { IAuth, IStorageHandler } from '@verdaccio/dev-types';
|
||||
|
@ -18,16 +18,14 @@ import profile from './v1/profile';
|
|||
import token from './v1/token';
|
||||
import v1Search from './v1/search'
|
||||
|
||||
export default function(config: Config, auth: IAuth, storage: IStorageHandler) {
|
||||
export default function(config: Config, auth: IAuth, storage: IStorageHandler): Express.Application {
|
||||
/* eslint new-cap:off */
|
||||
const app = express.Router();
|
||||
/* eslint new-cap:off */
|
||||
|
||||
// validate all of these params as a package name
|
||||
// this might be too harsh, so ask if it causes trouble
|
||||
// $FlowFixMe
|
||||
app.param('package', validatePackage);
|
||||
// $FlowFixMe
|
||||
app.param('filename', validateName);
|
||||
app.param('tag', validateName);
|
||||
app.param('version', validateName);
|
||||
|
|
|
@ -23,13 +23,13 @@
|
|||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@verdaccio/commons-api": "^9.0.0",
|
||||
"@verdaccio/commons-api": "9.4.0",
|
||||
"@verdaccio/dev-commons": "5.0.0-alpha.0",
|
||||
"@verdaccio/loaders": "5.0.0-alpha.0",
|
||||
"@verdaccio/logger": "5.0.0-alpha.0",
|
||||
"@verdaccio/utils": "5.0.0-alpha.0",
|
||||
"express": "^4.17.1",
|
||||
"lodash": "^4.17.15"
|
||||
"express": "4.17.1",
|
||||
"lodash": "4.17.15"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/dev-types": "5.0.0-alpha.0"
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
"commander": "3.0.2",
|
||||
"envinfo": "7.4.0",
|
||||
"kleur": "3.0.3",
|
||||
"semver": "7.1.2"
|
||||
"semver": "7.3.2"
|
||||
},
|
||||
"gitHead": "7c246ede52ff717707fcae66dd63fc4abd536982"
|
||||
}
|
||||
|
|
|
@ -15,14 +15,14 @@
|
|||
"license": "MIT",
|
||||
"homepage": "https://verdaccio.org",
|
||||
"dependencies": {
|
||||
"@verdaccio/commons-api": "^9.0.0",
|
||||
"@verdaccio/commons-api": "9.4.0",
|
||||
"@verdaccio/logger": "5.0.0-alpha.0",
|
||||
"handlebars": "^4.5.3",
|
||||
"handlebars": "4.5.3",
|
||||
"request": "2.87.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/dev-commons": "5.0.0-alpha.0",
|
||||
"@verdaccio/types": "^9.3.0"
|
||||
"@verdaccio/types": "9.3.0"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "rimraf ./build",
|
||||
|
|
|
@ -15,10 +15,10 @@
|
|||
"dependencies": {
|
||||
"@verdaccio/dev-commons": "5.0.0-alpha.0",
|
||||
"@verdaccio/logger": "5.0.0-alpha.0",
|
||||
"lodash": "^4.17.15"
|
||||
"lodash": "4.17.15"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "9.3.0"
|
||||
"@verdaccio/types": "9.5.0"
|
||||
},
|
||||
"homepage": "https://verdaccio.org",
|
||||
"license": "MIT",
|
||||
|
|
|
@ -24,20 +24,20 @@
|
|||
"build": "npm run build:js && npm run build:types"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/commons-api": "9.4.0",
|
||||
"@verdaccio/dev-commons": "5.0.0-alpha.0",
|
||||
"@verdaccio/commons-api": "^9.4.0",
|
||||
"dayjs": "^1.8.19",
|
||||
"lodash": "^4.17.15",
|
||||
"pad-right": "0.2.2",
|
||||
"dayjs": "1.8.19",
|
||||
"fast-safe-stringify": "2.0.7",
|
||||
"kleur": "3.0.3",
|
||||
"lodash": "4.17.15",
|
||||
"pad-left": "2.1.0",
|
||||
"prettier-bytes": "^1.0.3",
|
||||
"pretty-ms": "^5.0.0",
|
||||
"fast-safe-stringify": "^2.0.7",
|
||||
"kleur": "^3.0.3"
|
||||
"pad-right": "0.2.2",
|
||||
"prettier-bytes": "1.0.3",
|
||||
"pretty-ms": "5.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/pino": "^5.17.0",
|
||||
"pino": "^5.14.0"
|
||||
"@types/pino": "6.0.1",
|
||||
"pino": "6.2.1"
|
||||
},
|
||||
"gitHead": "7c246ede52ff717707fcae66dd63fc4abd536982"
|
||||
}
|
||||
|
|
|
@ -24,12 +24,12 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/logger-prettify": "5.0.0-alpha.0",
|
||||
"pino": "^5.17.0",
|
||||
"lodash": "^4.17.15"
|
||||
"lodash": "4.17.15",
|
||||
"pino": "5.17.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "^9.3.0",
|
||||
"@types/pino": "^5.17.0"
|
||||
"@types/pino": "6.0.1",
|
||||
"@verdaccio/types": "9.3.0"
|
||||
},
|
||||
"gitHead": "7c246ede52ff717707fcae66dd63fc4abd536982"
|
||||
}
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
{"level":40,"time":1585491735899,"pid":71224,"hostname":"macbook-touch","packageName":"test","msg":"publishing or updating a new version for @{packageName}","v":1}
|
|
@ -22,11 +22,11 @@
|
|||
"build": "npm run build:js && npm run build:types"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/commons-api": "^9.0.0",
|
||||
"@verdaccio/commons-api": "9.4.0",
|
||||
"@verdaccio/dev-commons": "5.0.0-alpha.0",
|
||||
"@verdaccio/logger": "5.0.0-alpha.0",
|
||||
"@verdaccio/utils": "5.0.0-alpha.0",
|
||||
"lodash": "^4.17.15"
|
||||
"lodash": "4.17.15"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/dev-types": "5.0.0-alpha.0"
|
||||
|
|
|
@ -24,16 +24,16 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/dev-commons": "5.0.0-alpha.0",
|
||||
"@verdaccio/local-storage": "^9.0.0",
|
||||
"@verdaccio/local-storage": "9.5.0",
|
||||
"@verdaccio/logger": "5.0.0-alpha.0",
|
||||
"@verdaccio/streams": "^9.3.0",
|
||||
"@verdaccio/streams": "9.5.0",
|
||||
"@verdaccio/utils": "5.0.0-alpha.0",
|
||||
"JSONStream": "1.3.5",
|
||||
"request": "2.87.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/dev-types": "5.0.0-alpha.0",
|
||||
"@verdaccio/types": "^9.3.0"
|
||||
"@verdaccio/types": "9.3.0"
|
||||
},
|
||||
"gitHead": "7c246ede52ff717707fcae66dd63fc4abd536982"
|
||||
}
|
||||
|
|
|
@ -25,15 +25,15 @@
|
|||
"@verdaccio/store": "5.0.0-alpha.0",
|
||||
"@verdaccio/utils": "5.0.0-alpha.0",
|
||||
"@verdaccio/web": "5.0.0-alpha.0",
|
||||
"compression": "^1.7.4",
|
||||
"compression": "1.7.4",
|
||||
"cors": "2.8.5",
|
||||
"express": "^4.17.1",
|
||||
"lodash": "^4.17.15"
|
||||
"express": "4.17.1",
|
||||
"lodash": "4.17.15"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/dev-types": "5.0.0-alpha.0",
|
||||
"@verdaccio/mock": "5.0.0-alpha.0",
|
||||
"http-errors": "^1.7.3",
|
||||
"http-errors": "1.7.3",
|
||||
"request": "2.87.0",
|
||||
"verdaccio": "~4.4.0"
|
||||
},
|
||||
|
|
|
@ -23,20 +23,20 @@
|
|||
"build": "npm run build:js && npm run build:types"
|
||||
},
|
||||
"dependencies": {
|
||||
"@verdaccio/commons-api": "^9.0.0",
|
||||
"@verdaccio/commons-api": "9.4.0",
|
||||
"@verdaccio/dev-commons": "5.0.0-alpha.0",
|
||||
"@verdaccio/loaders": "5.0.0-alpha.0",
|
||||
"@verdaccio/local-storage": "^9.0.0",
|
||||
"@verdaccio/local-storage": "9.5.0",
|
||||
"@verdaccio/logger": "5.0.0-alpha.0",
|
||||
"@verdaccio/proxy": "5.0.0-alpha.0",
|
||||
"@verdaccio/streams": "^9.3.0",
|
||||
"@verdaccio/streams": "9.5.0",
|
||||
"@verdaccio/utils": "5.0.0-alpha.0",
|
||||
"async": "3.1.1",
|
||||
"lodash": "^4.17.15",
|
||||
"semver": "^7.1.2"
|
||||
"lodash": "4.17.15",
|
||||
"semver": "7.1.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/types": "^9.3.0"
|
||||
"@verdaccio/types": "9.3.0"
|
||||
},
|
||||
"gitHead": "7c246ede52ff717707fcae66dd63fc4abd536982"
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
"js-yaml": "3.13.1",
|
||||
"jsonwebtoken": "8.5.1",
|
||||
"minimatch": "3.0.4",
|
||||
"semver": "7.1.2"
|
||||
"semver": "7.3.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/minimatch": "3.0.3",
|
||||
|
|
|
@ -410,6 +410,7 @@ export const ErrorCode = {
|
|||
export function parseConfigFile(configPath: string): any {
|
||||
try {
|
||||
if (/\.ya?ml$/i.test(configPath)) {
|
||||
// @ts-ignore
|
||||
return YAML.safeLoad(fs.readFileSync(configPath, CHARACTER_ENCODING.UTF8));
|
||||
}
|
||||
return require(configPath);
|
||||
|
|
|
@ -10,13 +10,13 @@
|
|||
"@verdaccio/middleware": "5.0.0-alpha.0",
|
||||
"@verdaccio/store": "5.0.0-alpha.0",
|
||||
"@verdaccio/utils": "5.0.0-alpha.0",
|
||||
"body-parse": "^0.1.0",
|
||||
"body-parser": "^1.19.0",
|
||||
"express": "^4.17.1"
|
||||
"body-parse": "0.1.0",
|
||||
"body-parser": "1.19.0",
|
||||
"express": "4.17.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@verdaccio/dev-types": "5.0.0-alpha.0",
|
||||
"@verdaccio/types": "^9.3.0"
|
||||
"@verdaccio/types": "9.3.0"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "rimraf ./build",
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
"module": "commonjs",
|
||||
"declaration": true,
|
||||
"noImplicitAny": false,
|
||||
"incremental": true,
|
||||
"strict": true,
|
||||
"strictNullChecks": true,
|
||||
"resolveJsonModule": true,
|
||||
|
|
BIN
yarn.lock
BIN
yarn.lock
Binary file not shown.
Loading…
Reference in a new issue