0
Fork 0
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:
Juan Picado 2020-05-20 22:45:08 +02:00
parent 9bb5b50c80
commit 9946ea8bea
24 changed files with 86 additions and 85 deletions

View file

@ -9,7 +9,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
node_version: [8, 10, 12, 13] node_version: [10, 12, 13, 14]
runs-on: ubuntu-latest runs-on: ubuntu-latest

1
.gitignore vendored
View file

@ -24,3 +24,4 @@ coverage/
# Compiled script # Compiled script
packages/partials packages/partials
tsconfig.tsbuildinfo

2
.nvmrc
View file

@ -1 +1 @@
13 12

View file

@ -1,10 +1,12 @@
// Place your settings in this file to overwrite default and user settings. // Place your settings in this file to overwrite default and user settings.
{ {
"files.exclude": { "files.exclude": {
"**/.idea": false,
"**/.nyc_output": true, "**/.nyc_output": true,
"**/build": true, "**/build": true,
"**/coverage": true "**/coverage": true,
".idea": true,
"storage_default_storage": true,
".yarn": true
}, },
"typescript.tsdk": "node_modules/typescript/lib" "typescript.tsdk": "node_modules/typescript/lib"
} }

View file

@ -3,7 +3,7 @@
"private": true, "private": true,
"version": "1.0.0", "version": "1.0.0",
"dependencies": { "dependencies": {
"@verdaccio/babel-preset": "^8.2.0", "@verdaccio/babel-preset": "9.4.0",
"@verdaccio/eslint-config": "^8.2.0" "@verdaccio/eslint-config": "9.3.2"
} }
} }

View file

@ -23,41 +23,40 @@
"@types/async": "3.0.3", "@types/async": "3.0.3",
"@types/express": "4.17.1", "@types/express": "4.17.1",
"@types/http-errors": "1.6.3", "@types/http-errors": "1.6.3",
"@types/jest": "24.0.25", "@types/jest": "25.2.3",
"@types/lodash": "4.14.149", "@types/lodash": "4.14.151",
"@types/mime": "2.0.1", "@types/mime": "2.0.2",
"@types/minimatch": "3.0.3", "@types/minimatch": "3.0.3",
"@types/node": "12.12.21", "@types/node": "12.12.21",
"@types/request": "2.48.3", "@types/request": "2.48.3",
"@types/semver": "6.2.0", "@types/semver": "7.2.0",
"@types/express-serve-static-core": "4.17.1", "@verdaccio/babel-preset": "9.4.0",
"@verdaccio/babel-preset": "^9.3.0", "@verdaccio/eslint-config": "9.0.0",
"@verdaccio/eslint-config": "^9.0.0", "@verdaccio/types": "9.5.0",
"@verdaccio/types": "^9.3.0",
"codecov": "3.6.1", "codecov": "3.6.1",
"cross-env": "6.0.3", "cross-env": "7.0.2",
"detect-secrets": "1.0.5", "detect-secrets": "1.0.6",
"eslint": "6.8.0", "eslint": "7.0.0",
"fs-extra": "8.1.0", "fs-extra": "8.1.0",
"get-stdin": "7.0.0", "get-stdin": "7.0.0",
"kleur": "3.0.3",
"husky": "2.7.0", "husky": "2.7.0",
"in-publish": "2.0.0", "in-publish": "2.0.0",
"jest": "^24.9.0", "jest": "26.0.1",
"jest-environment-node": "^24.9.0", "jest-environment-node": "26.0.1",
"jest-junit": "^9.0.0", "jest-junit": "10.0.0",
"lerna": "^3.18.4", "kleur": "3.0.3",
"lerna": "3.21.0",
"lint-staged": "8.2.1", "lint-staged": "8.2.1",
"nock": "^11.7.2", "nock": "11.7.2",
"prettier": "^1.19.1", "prettier": "1.19.1",
"rimraf": "3.0.0", "rimraf": "3.0.0",
"selfsigned": "1.10.7", "selfsigned": "1.10.7",
"standard-version": "^7.0.1", "standard-version": "7.0.1",
"supertest": "^4.0.2", "supertest": "4.0.2",
"typescript": "beta", "typescript": "3.9.2",
"verdaccio-auth-memory": "^9.3.0", "verdaccio": "4.6.2",
"verdaccio-memory": "^9.3.0", "verdaccio-auth-memory": "9.3.0",
"verdaccio": "^4.4.4" "verdaccio-memory": "9.3.0"
}, },
"scripts": { "scripts": {
"bootstrap": "lerna bootstrap", "bootstrap": "lerna bootstrap",

View file

@ -23,22 +23,22 @@
}, },
"license": "MIT", "license": "MIT",
"dependencies": { "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/dev-commons": "5.0.0-alpha.0",
"@verdaccio/hooks": "5.0.0-alpha.0", "@verdaccio/hooks": "5.0.0-alpha.0",
"@verdaccio/logger": "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/middleware": "5.0.0-alpha.0",
"@verdaccio/utils": "5.0.0-alpha.0", "@verdaccio/utils": "5.0.0-alpha.0",
"body-parser": "^1.19.0", "body-parser": "1.19.0",
"cookies": "^0.8.0", "cookies": "0.8.0",
"express": "4.17.1", "express": "4.17.1",
"lodash": "^4.17.15", "lodash": "4.17.15",
"mime": "^2.4.4" "mime": "2.4.4"
}, },
"devDependencies": { "devDependencies": {
"@verdaccio/dev-types": "5.0.0-alpha.0", "@verdaccio/dev-types": "5.0.0-alpha.0",
"@verdaccio/types": "^9.3.0" "@verdaccio/types": "9.3.0"
}, },
"gitHead": "7c246ede52ff717707fcae66dd63fc4abd536982" "gitHead": "7c246ede52ff717707fcae66dd63fc4abd536982"
} }

View file

@ -1,5 +1,5 @@
import _ from 'lodash'; import _ from 'lodash';
import express from 'express'; import express, {Express} from 'express';
import { match, validateName, validatePackage, encodeScopePackage, antiLoop } from '@verdaccio/middleware'; import { match, validateName, validatePackage, encodeScopePackage, antiLoop } from '@verdaccio/middleware';
import { IAuth, IStorageHandler } from '@verdaccio/dev-types'; import { IAuth, IStorageHandler } from '@verdaccio/dev-types';
@ -18,16 +18,14 @@ import profile from './v1/profile';
import token from './v1/token'; import token from './v1/token';
import v1Search from './v1/search' 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 */ /* eslint new-cap:off */
const app = express.Router(); const app = express.Router();
/* eslint new-cap:off */ /* eslint new-cap:off */
// validate all of these params as a package name // validate all of these params as a package name
// this might be too harsh, so ask if it causes trouble // this might be too harsh, so ask if it causes trouble
// $FlowFixMe
app.param('package', validatePackage); app.param('package', validatePackage);
// $FlowFixMe
app.param('filename', validateName); app.param('filename', validateName);
app.param('tag', validateName); app.param('tag', validateName);
app.param('version', validateName); app.param('version', validateName);

View file

@ -23,13 +23,13 @@
}, },
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@verdaccio/commons-api": "^9.0.0", "@verdaccio/commons-api": "9.4.0",
"@verdaccio/dev-commons": "5.0.0-alpha.0", "@verdaccio/dev-commons": "5.0.0-alpha.0",
"@verdaccio/loaders": "5.0.0-alpha.0", "@verdaccio/loaders": "5.0.0-alpha.0",
"@verdaccio/logger": "5.0.0-alpha.0", "@verdaccio/logger": "5.0.0-alpha.0",
"@verdaccio/utils": "5.0.0-alpha.0", "@verdaccio/utils": "5.0.0-alpha.0",
"express": "^4.17.1", "express": "4.17.1",
"lodash": "^4.17.15" "lodash": "4.17.15"
}, },
"devDependencies": { "devDependencies": {
"@verdaccio/dev-types": "5.0.0-alpha.0" "@verdaccio/dev-types": "5.0.0-alpha.0"

View file

@ -34,7 +34,7 @@
"commander": "3.0.2", "commander": "3.0.2",
"envinfo": "7.4.0", "envinfo": "7.4.0",
"kleur": "3.0.3", "kleur": "3.0.3",
"semver": "7.1.2" "semver": "7.3.2"
}, },
"gitHead": "7c246ede52ff717707fcae66dd63fc4abd536982" "gitHead": "7c246ede52ff717707fcae66dd63fc4abd536982"
} }

View file

@ -15,14 +15,14 @@
"license": "MIT", "license": "MIT",
"homepage": "https://verdaccio.org", "homepage": "https://verdaccio.org",
"dependencies": { "dependencies": {
"@verdaccio/commons-api": "^9.0.0", "@verdaccio/commons-api": "9.4.0",
"@verdaccio/logger": "5.0.0-alpha.0", "@verdaccio/logger": "5.0.0-alpha.0",
"handlebars": "^4.5.3", "handlebars": "4.5.3",
"request": "2.87.0" "request": "2.87.0"
}, },
"devDependencies": { "devDependencies": {
"@verdaccio/dev-commons": "5.0.0-alpha.0", "@verdaccio/dev-commons": "5.0.0-alpha.0",
"@verdaccio/types": "^9.3.0" "@verdaccio/types": "9.3.0"
}, },
"scripts": { "scripts": {
"clean": "rimraf ./build", "clean": "rimraf ./build",

View file

@ -15,10 +15,10 @@
"dependencies": { "dependencies": {
"@verdaccio/dev-commons": "5.0.0-alpha.0", "@verdaccio/dev-commons": "5.0.0-alpha.0",
"@verdaccio/logger": "5.0.0-alpha.0", "@verdaccio/logger": "5.0.0-alpha.0",
"lodash": "^4.17.15" "lodash": "4.17.15"
}, },
"devDependencies": { "devDependencies": {
"@verdaccio/types": "9.3.0" "@verdaccio/types": "9.5.0"
}, },
"homepage": "https://verdaccio.org", "homepage": "https://verdaccio.org",
"license": "MIT", "license": "MIT",

View file

@ -24,20 +24,20 @@
"build": "npm run build:js && npm run build:types" "build": "npm run build:js && npm run build:types"
}, },
"dependencies": { "dependencies": {
"@verdaccio/commons-api": "9.4.0",
"@verdaccio/dev-commons": "5.0.0-alpha.0", "@verdaccio/dev-commons": "5.0.0-alpha.0",
"@verdaccio/commons-api": "^9.4.0", "dayjs": "1.8.19",
"dayjs": "^1.8.19", "fast-safe-stringify": "2.0.7",
"lodash": "^4.17.15", "kleur": "3.0.3",
"pad-right": "0.2.2", "lodash": "4.17.15",
"pad-left": "2.1.0", "pad-left": "2.1.0",
"prettier-bytes": "^1.0.3", "pad-right": "0.2.2",
"pretty-ms": "^5.0.0", "prettier-bytes": "1.0.3",
"fast-safe-stringify": "^2.0.7", "pretty-ms": "5.0.0"
"kleur": "^3.0.3"
}, },
"devDependencies": { "devDependencies": {
"@types/pino": "^5.17.0", "@types/pino": "6.0.1",
"pino": "^5.14.0" "pino": "6.2.1"
}, },
"gitHead": "7c246ede52ff717707fcae66dd63fc4abd536982" "gitHead": "7c246ede52ff717707fcae66dd63fc4abd536982"
} }

View file

@ -24,12 +24,12 @@
}, },
"dependencies": { "dependencies": {
"@verdaccio/logger-prettify": "5.0.0-alpha.0", "@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": { "devDependencies": {
"@verdaccio/types": "^9.3.0", "@types/pino": "6.0.1",
"@types/pino": "^5.17.0" "@verdaccio/types": "9.3.0"
}, },
"gitHead": "7c246ede52ff717707fcae66dd63fc4abd536982" "gitHead": "7c246ede52ff717707fcae66dd63fc4abd536982"
} }

View file

@ -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}

View file

@ -22,11 +22,11 @@
"build": "npm run build:js && npm run build:types" "build": "npm run build:js && npm run build:types"
}, },
"dependencies": { "dependencies": {
"@verdaccio/commons-api": "^9.0.0", "@verdaccio/commons-api": "9.4.0",
"@verdaccio/dev-commons": "5.0.0-alpha.0", "@verdaccio/dev-commons": "5.0.0-alpha.0",
"@verdaccio/logger": "5.0.0-alpha.0", "@verdaccio/logger": "5.0.0-alpha.0",
"@verdaccio/utils": "5.0.0-alpha.0", "@verdaccio/utils": "5.0.0-alpha.0",
"lodash": "^4.17.15" "lodash": "4.17.15"
}, },
"devDependencies": { "devDependencies": {
"@verdaccio/dev-types": "5.0.0-alpha.0" "@verdaccio/dev-types": "5.0.0-alpha.0"

View file

@ -24,16 +24,16 @@
}, },
"dependencies": { "dependencies": {
"@verdaccio/dev-commons": "5.0.0-alpha.0", "@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/logger": "5.0.0-alpha.0",
"@verdaccio/streams": "^9.3.0", "@verdaccio/streams": "9.5.0",
"@verdaccio/utils": "5.0.0-alpha.0", "@verdaccio/utils": "5.0.0-alpha.0",
"JSONStream": "1.3.5", "JSONStream": "1.3.5",
"request": "2.87.0" "request": "2.87.0"
}, },
"devDependencies": { "devDependencies": {
"@verdaccio/dev-types": "5.0.0-alpha.0", "@verdaccio/dev-types": "5.0.0-alpha.0",
"@verdaccio/types": "^9.3.0" "@verdaccio/types": "9.3.0"
}, },
"gitHead": "7c246ede52ff717707fcae66dd63fc4abd536982" "gitHead": "7c246ede52ff717707fcae66dd63fc4abd536982"
} }

View file

@ -25,15 +25,15 @@
"@verdaccio/store": "5.0.0-alpha.0", "@verdaccio/store": "5.0.0-alpha.0",
"@verdaccio/utils": "5.0.0-alpha.0", "@verdaccio/utils": "5.0.0-alpha.0",
"@verdaccio/web": "5.0.0-alpha.0", "@verdaccio/web": "5.0.0-alpha.0",
"compression": "^1.7.4", "compression": "1.7.4",
"cors": "2.8.5", "cors": "2.8.5",
"express": "^4.17.1", "express": "4.17.1",
"lodash": "^4.17.15" "lodash": "4.17.15"
}, },
"devDependencies": { "devDependencies": {
"@verdaccio/dev-types": "5.0.0-alpha.0", "@verdaccio/dev-types": "5.0.0-alpha.0",
"@verdaccio/mock": "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", "request": "2.87.0",
"verdaccio": "~4.4.0" "verdaccio": "~4.4.0"
}, },

View file

@ -23,20 +23,20 @@
"build": "npm run build:js && npm run build:types" "build": "npm run build:js && npm run build:types"
}, },
"dependencies": { "dependencies": {
"@verdaccio/commons-api": "^9.0.0", "@verdaccio/commons-api": "9.4.0",
"@verdaccio/dev-commons": "5.0.0-alpha.0", "@verdaccio/dev-commons": "5.0.0-alpha.0",
"@verdaccio/loaders": "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/logger": "5.0.0-alpha.0",
"@verdaccio/proxy": "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", "@verdaccio/utils": "5.0.0-alpha.0",
"async": "3.1.1", "async": "3.1.1",
"lodash": "^4.17.15", "lodash": "4.17.15",
"semver": "^7.1.2" "semver": "7.1.2"
}, },
"devDependencies": { "devDependencies": {
"@verdaccio/types": "^9.3.0" "@verdaccio/types": "9.3.0"
}, },
"gitHead": "7c246ede52ff717707fcae66dd63fc4abd536982" "gitHead": "7c246ede52ff717707fcae66dd63fc4abd536982"
} }

View file

@ -20,7 +20,7 @@
"js-yaml": "3.13.1", "js-yaml": "3.13.1",
"jsonwebtoken": "8.5.1", "jsonwebtoken": "8.5.1",
"minimatch": "3.0.4", "minimatch": "3.0.4",
"semver": "7.1.2" "semver": "7.3.2"
}, },
"devDependencies": { "devDependencies": {
"@types/minimatch": "3.0.3", "@types/minimatch": "3.0.3",

View file

@ -410,6 +410,7 @@ export const ErrorCode = {
export function parseConfigFile(configPath: string): any { export function parseConfigFile(configPath: string): any {
try { try {
if (/\.ya?ml$/i.test(configPath)) { if (/\.ya?ml$/i.test(configPath)) {
// @ts-ignore
return YAML.safeLoad(fs.readFileSync(configPath, CHARACTER_ENCODING.UTF8)); return YAML.safeLoad(fs.readFileSync(configPath, CHARACTER_ENCODING.UTF8));
} }
return require(configPath); return require(configPath);

View file

@ -10,13 +10,13 @@
"@verdaccio/middleware": "5.0.0-alpha.0", "@verdaccio/middleware": "5.0.0-alpha.0",
"@verdaccio/store": "5.0.0-alpha.0", "@verdaccio/store": "5.0.0-alpha.0",
"@verdaccio/utils": "5.0.0-alpha.0", "@verdaccio/utils": "5.0.0-alpha.0",
"body-parse": "^0.1.0", "body-parse": "0.1.0",
"body-parser": "^1.19.0", "body-parser": "1.19.0",
"express": "^4.17.1" "express": "4.17.1"
}, },
"devDependencies": { "devDependencies": {
"@verdaccio/dev-types": "5.0.0-alpha.0", "@verdaccio/dev-types": "5.0.0-alpha.0",
"@verdaccio/types": "^9.3.0" "@verdaccio/types": "9.3.0"
}, },
"scripts": { "scripts": {
"clean": "rimraf ./build", "clean": "rimraf ./build",

View file

@ -5,6 +5,7 @@
"module": "commonjs", "module": "commonjs",
"declaration": true, "declaration": true,
"noImplicitAny": false, "noImplicitAny": false,
"incremental": true,
"strict": true, "strict": true,
"strictNullChecks": true, "strictNullChecks": true,
"resolveJsonModule": true, "resolveJsonModule": true,

BIN
yarn.lock

Binary file not shown.