mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
Update & make dependency versions consistent in packages/* (#2393)
* docs: improve pnpm development setup info in CONTRIBUTING.md * build: make dependency versions consistent in packages/* Updated to latest minor/patch versions; left major version unchanged for now Did not change react dependencies in ui-theme package Added .project file for Eclipse IDE users * revert: rollback @changesets dep versions & maintain kleur v3.0.3
This commit is contained in:
parent
9805298893
commit
15d5e969c4
89 changed files with 1018 additions and 1197 deletions
11
.project
Normal file
11
.project
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<projectDescription>
|
||||||
|
<name>verdaccio-dev</name>
|
||||||
|
<comment></comment>
|
||||||
|
<projects>
|
||||||
|
</projects>
|
||||||
|
<buildSpec>
|
||||||
|
</buildSpec>
|
||||||
|
<natures>
|
||||||
|
</natures>
|
||||||
|
</projectDescription>
|
47
package.json
47
package.json
|
@ -1,4 +1,6 @@
|
||||||
{
|
{
|
||||||
|
"private": true,
|
||||||
|
"name": "verdaccio-dev",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Verdaccio Maintainers",
|
"name": "Verdaccio Maintainers",
|
||||||
"email": "verdaccio.npm@gmail.com"
|
"email": "verdaccio.npm@gmail.com"
|
||||||
|
@ -8,7 +10,6 @@
|
||||||
"url": "https://github.com/verdaccio/verdaccio"
|
"url": "https://github.com/verdaccio/verdaccio"
|
||||||
},
|
},
|
||||||
"homepage": "https://verdaccio.org",
|
"homepage": "https://verdaccio.org",
|
||||||
"private": true,
|
|
||||||
"funding": {
|
"funding": {
|
||||||
"type": "opencollective",
|
"type": "opencollective",
|
||||||
"url": "https://opencollective.com/verdaccio"
|
"url": "https://opencollective.com/verdaccio"
|
||||||
|
@ -43,31 +44,31 @@
|
||||||
"@changesets/get-dependents-graph": "^1.2.0",
|
"@changesets/get-dependents-graph": "^1.2.0",
|
||||||
"@commitlint/cli": "8.3.5",
|
"@commitlint/cli": "8.3.5",
|
||||||
"@commitlint/config-conventional": "8.2.0",
|
"@commitlint/config-conventional": "8.2.0",
|
||||||
"@crowdin/cli": "^3.6.4",
|
"@crowdin/cli": "3.6.5",
|
||||||
"@types/async": "3.2.5",
|
"@types/async": "3.2.5",
|
||||||
"@types/autocannon": "4.1.0",
|
"@types/autocannon": "4.1.0",
|
||||||
"@types/autosuggest-highlight": "3.1.1",
|
"@types/autosuggest-highlight": "3.1.1",
|
||||||
"@types/express": "4.17.6",
|
"@types/express": "4.17.6",
|
||||||
"@types/http-errors": "1.8.0",
|
"@types/http-errors": "1.8.0",
|
||||||
"@types/jest": "^26.0.20",
|
"@types/jest": "27.0.1",
|
||||||
"@types/js-base64": "3.0.0",
|
"@types/js-base64": "3.0.0",
|
||||||
"@types/lodash": "4.14.167",
|
"@types/lodash": "4.14.167",
|
||||||
"@types/lowdb": "^1.0.9",
|
"@types/lowdb": "1.0.11",
|
||||||
"@types/mime": "2.0.2",
|
"@types/mime": "2.0.2",
|
||||||
"@types/minimatch": "3.0.3",
|
"@types/minimatch": "3.0.5",
|
||||||
"@types/node": "^14.14.7",
|
"@types/node": "14.6.0",
|
||||||
"@types/react": "17.0.15",
|
"@types/react": "17.0.15",
|
||||||
"@types/react-autosuggest": "10.0.1",
|
"@types/react-autosuggest": "10.0.1",
|
||||||
"@types/react-dom": "^17.0.9",
|
"@types/react-dom": "17.0.9",
|
||||||
"@types/react-helmet": "^6.1.2",
|
"@types/react-helmet": "6.1.2",
|
||||||
"@types/react-router-dom": "5.1.6",
|
"@types/react-router-dom": "5.1.6",
|
||||||
"@types/react-virtualized": "9.21.10",
|
"@types/react-virtualized": "9.21.10",
|
||||||
"@types/request": "2.48.5",
|
"@types/request": "2.48.5",
|
||||||
"@types/semver": "7.3.4",
|
"@types/semver": "7.3.4",
|
||||||
"@types/supertest": "2.0.10",
|
"@types/supertest": "2.0.10",
|
||||||
"@types/testing-library__jest-dom": "^5.9.5",
|
"@types/testing-library__jest-dom": "5.14.1",
|
||||||
"@types/validator": "^13.1.3",
|
"@types/validator": "13.6.3",
|
||||||
"@types/webpack": "^4.41.26",
|
"@types/webpack": "4.41.26",
|
||||||
"@types/webpack-env": "1.16.0",
|
"@types/webpack-env": "1.16.0",
|
||||||
"@typescript-eslint/eslint-plugin": "4.28.4",
|
"@typescript-eslint/eslint-plugin": "4.28.4",
|
||||||
"@typescript-eslint/parser": "4.28.4",
|
"@typescript-eslint/parser": "4.28.4",
|
||||||
|
@ -80,12 +81,12 @@
|
||||||
"babel-eslint": "10.1.0",
|
"babel-eslint": "10.1.0",
|
||||||
"babel-jest": "27.0.2",
|
"babel-jest": "27.0.2",
|
||||||
"babel-plugin-dynamic-import-node": "2.3.3",
|
"babel-plugin-dynamic-import-node": "2.3.3",
|
||||||
"babel-plugin-emotion": "11.0.0",
|
"babel-plugin-emotion": "10.0.33",
|
||||||
"codecov": "3.8.1",
|
"codecov": "3.8.1",
|
||||||
"concurrently": "^5.3.0",
|
"concurrently": "5.3.0",
|
||||||
"core-js": "^3.15.1",
|
"core-js": "3.16.3",
|
||||||
"cross-env": "7.0.3",
|
"cross-env": "7.0.3",
|
||||||
"debug": "4.3.1",
|
"debug": "4.3.2",
|
||||||
"detect-secrets": "1.0.6",
|
"detect-secrets": "1.0.6",
|
||||||
"eslint": "7.26.0",
|
"eslint": "7.26.0",
|
||||||
"eslint-config-google": "0.14.0",
|
"eslint-config-google": "0.14.0",
|
||||||
|
@ -105,22 +106,22 @@
|
||||||
"in-publish": "2.0.1",
|
"in-publish": "2.0.1",
|
||||||
"jest": "27.0.4",
|
"jest": "27.0.4",
|
||||||
"jest-environment-jsdom": "27.0.3",
|
"jest-environment-jsdom": "27.0.3",
|
||||||
"jest-environment-jsdom-global": "^2.0.4",
|
"jest-environment-jsdom-global": "2.0.4",
|
||||||
"jest-environment-node": "27.0.3",
|
"jest-environment-node": "27.0.3",
|
||||||
"jest-fetch-mock": "3.0.3",
|
"jest-fetch-mock": "3.0.3",
|
||||||
"jest-junit": "11.0.1",
|
"jest-junit": "11.0.1",
|
||||||
"kleur": "4.1.4",
|
"kleur": "3.0.3",
|
||||||
"lint-staged": "8.2.1",
|
"lint-staged": "9.5.0",
|
||||||
"nock": "12.0.3",
|
"nock": "12.0.3",
|
||||||
"node-fetch": "2.6.1",
|
"node-fetch": "2.6.1",
|
||||||
"nodemon": "^2.0.7",
|
"nodemon": "2.0.12",
|
||||||
"npm-run-all": "4.1.5",
|
"npm-run-all": "4.1.5",
|
||||||
"prettier": "2.3.0",
|
"prettier": "2.3.0",
|
||||||
"rimraf": "3.0.2",
|
"rimraf": "3.0.2",
|
||||||
"selfsigned": "1.10.8",
|
"selfsigned": "1.10.11",
|
||||||
"supertest": "4.0.2",
|
"supertest": "6.1.6",
|
||||||
"ts-node": "^9.1.1",
|
"ts-node": "10.2.1",
|
||||||
"typescript": "^4.2.4",
|
"typescript": "4.4.2",
|
||||||
"update-ts-references": "2.3.0",
|
"update-ts-references": "2.3.0",
|
||||||
"verdaccio": "5.1.0",
|
"verdaccio": "5.1.0",
|
||||||
"verdaccio-audit": "workspace:*",
|
"verdaccio-audit": "workspace:*",
|
||||||
|
|
|
@ -49,18 +49,18 @@
|
||||||
"@verdaccio/tarball": "workspace:11.0.0-6-next.6",
|
"@verdaccio/tarball": "workspace:11.0.0-6-next.6",
|
||||||
"@verdaccio/utils": "workspace:6.0.0-6-next.5",
|
"@verdaccio/utils": "workspace:6.0.0-6-next.5",
|
||||||
"cookies": "0.8.0",
|
"cookies": "0.8.0",
|
||||||
"debug": "^4.3.1",
|
"debug": "4.3.2",
|
||||||
"express": "4.17.1",
|
"express": "4.17.1",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "4.17.21",
|
||||||
"mime": "2.4.4",
|
"mime": "2.4.4",
|
||||||
"semver": "7.3.2"
|
"semver": "7.3.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@verdaccio/server": "workspace:6.0.0-6-next.16",
|
"@verdaccio/server": "workspace:6.0.0-6-next.16",
|
||||||
"@verdaccio/types": "workspace:11.0.0-6-next.7",
|
"@verdaccio/types": "workspace:11.0.0-6-next.7",
|
||||||
"body-parser": "1.19.0",
|
"body-parser": "1.19.0",
|
||||||
"lodash": "^4.17.20",
|
"lodash": "4.17.21",
|
||||||
"supertest": "next"
|
"supertest": "6.1.6"
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
"type": "opencollective",
|
"type": "opencollective",
|
||||||
|
|
|
@ -269,7 +269,7 @@ export function publishPackage(storage: IStorageHandler, config: Config, auth: I
|
||||||
req.remote_user,
|
req.remote_user,
|
||||||
`${metadataCopy.name}@${versionToPublish}`
|
`${metadataCopy.name}@${versionToPublish}`
|
||||||
);
|
);
|
||||||
} catch (error) {
|
} catch (error: any) {
|
||||||
debug(
|
debug(
|
||||||
'error on notify add a new tag %o',
|
'error on notify add a new tag %o',
|
||||||
`${metadataCopy.name}@${versionToPublish}`
|
`${metadataCopy.name}@${versionToPublish}`
|
||||||
|
@ -319,7 +319,7 @@ export function publishPackage(storage: IStorageHandler, config: Config, auth: I
|
||||||
afterChange(error, API_MESSAGE.PKG_CREATED, metadata);
|
afterChange(error, API_MESSAGE.PKG_CREATED, metadata);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error: any) {
|
||||||
debug('error on publish, bad package format %o', packageName);
|
debug('error on publish, bad package format %o', packageName);
|
||||||
logger.error({ packageName }, 'error on publish, bad package data for @{packageName}');
|
logger.error({ packageName }, 'error on publish, bad package data for @{packageName}');
|
||||||
return next(ErrorCode.getBadData(API_ERROR.BAD_PACKAGE_DATA));
|
return next(ErrorCode.getBadData(API_ERROR.BAD_PACKAGE_DATA));
|
||||||
|
|
|
@ -46,7 +46,7 @@ export default function (
|
||||||
next: '', // TODO: pagination?
|
next: '', // TODO: pagination?
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error: any) {
|
||||||
logger.error({ error: error.msg }, 'token list has failed: @{error}');
|
logger.error({ error: error.msg }, 'token list has failed: @{error}');
|
||||||
return next(ErrorCode.getCode(HTTP_STATUS.INTERNAL_ERROR, error.message));
|
return next(ErrorCode.getCode(HTTP_STATUS.INTERNAL_ERROR, error.message));
|
||||||
}
|
}
|
||||||
|
@ -116,7 +116,7 @@ export default function (
|
||||||
created: saveToken.created,
|
created: saveToken.created,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
} catch (error) {
|
} catch (error: any) {
|
||||||
logger.error({ error: error.msg }, 'token creation has failed: @{error}');
|
logger.error({ error: error.msg }, 'token creation has failed: @{error}');
|
||||||
return next(ErrorCode.getCode(HTTP_STATUS.INTERNAL_ERROR, error.message));
|
return next(ErrorCode.getCode(HTTP_STATUS.INTERNAL_ERROR, error.message));
|
||||||
}
|
}
|
||||||
|
@ -138,7 +138,7 @@ export default function (
|
||||||
await storage.deleteToken(name, tokenKey);
|
await storage.deleteToken(name, tokenKey);
|
||||||
logger.info({ tokenKey, name }, 'token id @{tokenKey} was revoked for user @{name}');
|
logger.info({ tokenKey, name }, 'token id @{tokenKey} was revoked for user @{name}');
|
||||||
return next({});
|
return next({});
|
||||||
} catch (error) {
|
} catch (error: any) {
|
||||||
logger.error({ error: error.msg }, 'token creation has failed: @{error}');
|
logger.error({ error: error.msg }, 'token creation has failed: @{error}');
|
||||||
return next(ErrorCode.getCode(HTTP_STATUS.INTERNAL_ERROR, error.message));
|
return next(ErrorCode.getCode(HTTP_STATUS.INTERNAL_ERROR, error.message));
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,10 +44,10 @@
|
||||||
"@verdaccio/loaders": "workspace:6.0.0-6-next.4",
|
"@verdaccio/loaders": "workspace:6.0.0-6-next.4",
|
||||||
"@verdaccio/logger": "workspace:6.0.0-6-next.4",
|
"@verdaccio/logger": "workspace:6.0.0-6-next.4",
|
||||||
"@verdaccio/utils": "workspace:6.0.0-6-next.5",
|
"@verdaccio/utils": "workspace:6.0.0-6-next.5",
|
||||||
"debug": "^4.3.1",
|
"debug": "4.3.2",
|
||||||
"express": "4.17.1",
|
"express": "4.17.1",
|
||||||
"jsonwebtoken": "8.5.1",
|
"jsonwebtoken": "8.5.1",
|
||||||
"lodash": "4.17.15",
|
"lodash": "4.17.21",
|
||||||
"verdaccio-htpasswd": "workspace:11.0.0-alpha.6"
|
"verdaccio-htpasswd": "workspace:11.0.0-alpha.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
@ -116,7 +116,7 @@ class Auth implements IAuth {
|
||||||
let authPlugin;
|
let authPlugin;
|
||||||
try {
|
try {
|
||||||
authPlugin = new HTPasswd(plugingConf, pluginOptions);
|
authPlugin = new HTPasswd(plugingConf, pluginOptions);
|
||||||
} catch (error) {
|
} catch (error: any) {
|
||||||
debug('error on loading auth htpasswd plugin stack: %o', error);
|
debug('error on loading auth htpasswd plugin stack: %o', error);
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
@ -559,7 +559,7 @@ class Auth implements IAuth {
|
||||||
let credentials;
|
let credentials;
|
||||||
try {
|
try {
|
||||||
credentials = verifyJWTPayload(token, this.config.secret);
|
credentials = verifyJWTPayload(token, this.config.secret);
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
// FIXME: intended behaviour, do we want it?
|
// FIXME: intended behaviour, do we want it?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -59,7 +59,7 @@ export function aesDecrypt(value: string, key: string): string | void {
|
||||||
decrypted += decipher.final(inputEncoding);
|
decrypted += decipher.final(inputEncoding);
|
||||||
debug('token decrypted successfully');
|
debug('token decrypted successfully');
|
||||||
return decrypted.toString();
|
return decrypted.toString();
|
||||||
} catch (_) {
|
} catch (_: any) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -147,7 +147,7 @@ export function verifyJWTPayload(token: string, secret: string): RemoteUser {
|
||||||
const payload: RemoteUser = verifyPayload(token, secret);
|
const payload: RemoteUser = verifyPayload(token, secret);
|
||||||
|
|
||||||
return payload;
|
return payload;
|
||||||
} catch (error) {
|
} catch (error: any) {
|
||||||
// #168 this check should be removed as soon AES encrypt is removed.
|
// #168 this check should be removed as soon AES encrypt is removed.
|
||||||
if (expireReasons.includes(error.name)) {
|
if (expireReasons.includes(error.name)) {
|
||||||
// it might be possible the jwt configuration is enabled and
|
// it might be possible the jwt configuration is enabled and
|
||||||
|
|
|
@ -49,13 +49,13 @@
|
||||||
"@verdaccio/node-api": "workspace:6.0.0-6-next.17",
|
"@verdaccio/node-api": "workspace:6.0.0-6-next.17",
|
||||||
"@verdaccio/fastify-migration": "workspace:6.0.0-6-next.10",
|
"@verdaccio/fastify-migration": "workspace:6.0.0-6-next.10",
|
||||||
"commander": "6.2.0",
|
"commander": "6.2.0",
|
||||||
"clipanion": "3.0.0-rc.11",
|
"clipanion": "3.0.1",
|
||||||
"envinfo": "7.4.0",
|
"envinfo": "7.4.0",
|
||||||
"kleur": "3.0.3",
|
"kleur": "3.0.3",
|
||||||
"semver": "7.3.2"
|
"semver": "7.3.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"ts-node": "9.1.1"
|
"ts-node": "10.2.1"
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
"type": "opencollective",
|
"type": "opencollective",
|
||||||
|
|
|
@ -68,7 +68,7 @@ export class InitCommand extends Command {
|
||||||
|
|
||||||
await initServer(configParsed, this.port as string, version, name);
|
await initServer(configParsed, this.port as string, version, name);
|
||||||
logger.info('server started');
|
logger.info('server started');
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,7 +44,7 @@ export class NewServer extends Command {
|
||||||
// const { version, name } = require('../../package.json');
|
// const { version, name } = require('../../package.json');
|
||||||
const ser = await server({ logger, config: configParsed });
|
const ser = await server({ logger, config: configParsed });
|
||||||
await ser.listen(4873);
|
await ser.listen(4873);
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,15 +41,15 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
||||||
"@verdaccio/utils": "workspace:6.0.0-6-next.5",
|
"@verdaccio/utils": "workspace:6.0.0-6-next.5",
|
||||||
"debug": "^4.3.1",
|
"debug": "4.3.2",
|
||||||
"js-yaml": "3.14.0",
|
"js-yaml": "3.14.0",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "4.17.21",
|
||||||
"minimatch": "3.0.4",
|
"minimatch": "3.0.4",
|
||||||
"yup": "^0.29.3"
|
"yup": "0.32.9"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/minimatch": "3.0.3",
|
"@types/minimatch": "3.0.5",
|
||||||
"@types/yup": "^0.29.9"
|
"@types/yup": "0.29.13"
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
"type": "opencollective",
|
"type": "opencollective",
|
||||||
|
|
|
@ -9,7 +9,7 @@ export function folderExists(path: string): boolean {
|
||||||
try {
|
try {
|
||||||
const stat = fs.statSync(path);
|
const stat = fs.statSync(path);
|
||||||
return stat.isDirectory();
|
return stat.isDirectory();
|
||||||
} catch (_) {
|
} catch (_: any) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,7 @@ export function fileExists(path: string): boolean {
|
||||||
try {
|
try {
|
||||||
const stat = fs.statSync(path);
|
const stat = fs.statSync(path);
|
||||||
return stat.isFile();
|
return stat.isFile();
|
||||||
} catch (_) {
|
} catch (_: any) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@ export function parseConfigFile(configPath: string): ConfigRuntime {
|
||||||
return Object.assign({}, jsonConfig, {
|
return Object.assign({}, jsonConfig, {
|
||||||
config_path: configPath,
|
config_path: configPath,
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e: any) {
|
||||||
if (e.code !== 'MODULE_NOT_FOUND') {
|
if (e.code !== 'MODULE_NOT_FOUND') {
|
||||||
e.message = APP_ERROR.CONFIG_NOT_VALID;
|
e.message = APP_ERROR.CONFIG_NOT_VALID;
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,8 +37,8 @@
|
||||||
"npm": ">=6"
|
"npm": ">=6"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"http-errors": "^1.8.0",
|
"http-errors": "1.8.0",
|
||||||
"http-status-codes": "^1.4.0"
|
"http-status-codes": "1.4.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rimraf ./build",
|
"clean": "rimraf ./build",
|
||||||
|
|
|
@ -68,7 +68,7 @@ function readFile(
|
||||||
try {
|
try {
|
||||||
contents = JSON.parse(contents);
|
contents = JSON.parse(contents);
|
||||||
return resolve(contents);
|
return resolve(contents);
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
return reject(err);
|
return reject(err);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -42,9 +42,9 @@
|
||||||
"unix-crypt-td-js": "1.1.4"
|
"unix-crypt-td-js": "1.1.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/bcryptjs": "^2.4.2",
|
"@types/bcryptjs": "2.4.2",
|
||||||
"@verdaccio/types": "workspace:11.0.0-6-next.7",
|
"@verdaccio/types": "workspace:11.0.0-6-next.7",
|
||||||
"mockdate": "^3.0.5"
|
"mockdate": "3.0.5"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rimraf ./build",
|
"clean": "rimraf ./build",
|
||||||
|
|
|
@ -178,7 +178,7 @@ export default class HTPasswd implements IPluginAuth<HTPasswdConfig> {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
this._writeFile(addUserToHTPasswd(body, user, password, this.hashConfig), cb);
|
this._writeFile(addUserToHTPasswd(body, user, password, this.hashConfig), cb);
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
return cb(err);
|
return cb(err);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -275,7 +275,7 @@ export default class HTPasswd implements IPluginAuth<HTPasswdConfig> {
|
||||||
changePasswordToHTPasswd(body, user, password, newPassword, this.hashConfig),
|
changePasswordToHTPasswd(body, user, password, newPassword, this.hashConfig),
|
||||||
cb
|
cb
|
||||||
);
|
);
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
return cb(err);
|
return cb(err);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -252,7 +252,7 @@ describe('changePasswordToHTPasswd', () => {
|
||||||
'newPassword',
|
'newPassword',
|
||||||
defaultHashConfig
|
defaultHashConfig
|
||||||
);
|
);
|
||||||
} catch (error) {
|
} catch (error: any) {
|
||||||
expect(error.message).toEqual('Invalid old Password');
|
expect(error.message).toEqual('Invalid old Password');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -40,16 +40,16 @@
|
||||||
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
||||||
"@verdaccio/file-locking": "workspace:11.0.0-alpha.3",
|
"@verdaccio/file-locking": "workspace:11.0.0-alpha.3",
|
||||||
"@verdaccio/streams": "workspace:11.0.0-alpha.3",
|
"@verdaccio/streams": "workspace:11.0.0-alpha.3",
|
||||||
"async": "^3.2.0",
|
"async": "3.2.1",
|
||||||
"debug": "^4.3.1",
|
"debug": "4.3.2",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "4.17.21",
|
||||||
"lowdb": "1.0.0"
|
"lowdb": "1.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/minimatch": "^3.0.3",
|
"@types/minimatch": "3.0.5",
|
||||||
"@verdaccio/types": "workspace:11.0.0-6-next.7",
|
"@verdaccio/types": "workspace:11.0.0-6-next.7",
|
||||||
"minimatch": "^3.0.4",
|
"minimatch": "3.0.4",
|
||||||
"rmdir-sync": "^1.0.1"
|
"rmdir-sync": "1.0.1"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rimraf ./build",
|
"clean": "rimraf ./build",
|
||||||
|
|
|
@ -279,7 +279,7 @@ class LocalDatabase extends TokenActions implements IPluginStorage<{}> {
|
||||||
debug('creating folder %o', folderName);
|
debug('creating folder %o', folderName);
|
||||||
fs.mkdirSync(folderName, { recursive: true });
|
fs.mkdirSync(folderName, { recursive: true });
|
||||||
debug('sync folder %o created succeed', folderName);
|
debug('sync folder %o created succeed', folderName);
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
debug('sync create folder has failed with error: %o', err);
|
debug('sync create folder has failed with error: %o', err);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -289,7 +289,7 @@ class LocalDatabase extends TokenActions implements IPluginStorage<{}> {
|
||||||
debug('sync write succeed');
|
debug('sync write succeed');
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
debug('sync failed %o', err);
|
debug('sync failed %o', err);
|
||||||
|
|
||||||
return err;
|
return err;
|
||||||
|
@ -326,7 +326,7 @@ class LocalDatabase extends TokenActions implements IPluginStorage<{}> {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return await loadPrivatePackages(this.path, this.logger);
|
return await loadPrivatePackages(this.path, this.logger);
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
// readFileSync is platform specific, macOS, Linux and Windows thrown an error
|
// readFileSync is platform specific, macOS, Linux and Windows thrown an error
|
||||||
// Only recreate if file not found to prevent data loss
|
// Only recreate if file not found to prevent data loss
|
||||||
debug('error on fetch local packages %o', err);
|
debug('error on fetch local packages %o', err);
|
||||||
|
|
|
@ -171,7 +171,7 @@ export default class LocalFS implements ILocalFSPackageManager {
|
||||||
|
|
||||||
debug('read storage file %o has succeed', name);
|
debug('read storage file %o has succeed', name);
|
||||||
cb(null, data);
|
cb(null, data);
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
debug('parse storage file %o has failed with error %o', name, err);
|
debug('parse storage file %o has failed with error %o', name, err);
|
||||||
cb(err);
|
cb(err);
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,7 @@ export async function loadPrivatePackages(path: string, logger: Logger): Promise
|
||||||
let db;
|
let db;
|
||||||
try {
|
try {
|
||||||
db = JSON.parse(data);
|
db = JSON.parse(data);
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
logger.error(
|
logger.error(
|
||||||
`Package database file corrupted (invalid JSON), please check the error` +
|
`Package database file corrupted (invalid JSON), please check the error` +
|
||||||
` printed below.\nFile Path: ${path}`,
|
` printed below.\nFile Path: ${path}`,
|
||||||
|
|
|
@ -68,7 +68,7 @@ export async function findPackages(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error: any) {
|
||||||
reject(error);
|
reject(error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,7 @@ describe('Utitlies', () => {
|
||||||
'./no_such_folder_fake',
|
'./no_such_folder_fake',
|
||||||
jest.fn(() => true)
|
jest.fn(() => true)
|
||||||
);
|
);
|
||||||
} catch (e) {
|
} catch (e: any) {
|
||||||
expect(e.code).toEqual(noSuchFile);
|
expect(e.code).toEqual(noSuchFile);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -22,7 +22,7 @@ const debug = buildDebug('verdaccio:fastify:debug');
|
||||||
const ser = await server({ logger, config: configParsed });
|
const ser = await server({ logger, config: configParsed });
|
||||||
await ser.listen(4873);
|
await ser.listen(4873);
|
||||||
logger.info('fastify running on port 4873');
|
logger.info('fastify running on port 4873');
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.error(err);
|
console.error(err);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
|
|
|
@ -38,13 +38,13 @@
|
||||||
"@verdaccio/auth": "workspace:6.0.0-6-next.9",
|
"@verdaccio/auth": "workspace:6.0.0-6-next.9",
|
||||||
"@verdaccio/logger": "workspace:6.0.0-6-next.4",
|
"@verdaccio/logger": "workspace:6.0.0-6-next.4",
|
||||||
"@verdaccio/store": "workspace:6.0.0-6-next.10",
|
"@verdaccio/store": "workspace:6.0.0-6-next.10",
|
||||||
"debug": "4.3.1",
|
"debug": "4.3.2",
|
||||||
"fastify": "3.15.1",
|
"fastify": "3.15.1",
|
||||||
"fastify-plugin": "3.0.0"
|
"fastify-plugin": "3.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@verdaccio/types": "workspace:11.0.0-6-next.7",
|
"@verdaccio/types": "workspace:11.0.0-6-next.7",
|
||||||
"ts-node": "9.1.1"
|
"ts-node": "10.2.1"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rimraf ./build",
|
"clean": "rimraf ./build",
|
||||||
|
|
|
@ -34,8 +34,8 @@
|
||||||
"access": "public"
|
"access": "public"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"debug": "^4.3.1",
|
"debug": "4.3.2",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "4.17.21",
|
||||||
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
||||||
"@verdaccio/url": "workspace:11.0.0-6-next.4",
|
"@verdaccio/url": "workspace:11.0.0-6-next.4",
|
||||||
"@verdaccio/utils": "workspace:6.0.0-6-next.5"
|
"@verdaccio/utils": "workspace:6.0.0-6-next.5"
|
||||||
|
|
|
@ -35,13 +35,13 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
||||||
"debug": "^4.3.1",
|
"debug": "4.3.2",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "4.17.21",
|
||||||
"validator": "^13.6.0"
|
"validator": "13.6.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@verdaccio/types": "workspace:11.0.0-6-next.7",
|
"@verdaccio/types": "workspace:11.0.0-6-next.7",
|
||||||
"node-mocks-http": "^1.10.1"
|
"node-mocks-http": "1.10.1"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rimraf ./build",
|
"clean": "rimraf ./build",
|
||||||
|
|
|
@ -82,7 +82,7 @@ export function validateURL(publicUrl: string | void) {
|
||||||
throw Error('invalid protocol');
|
throw Error('invalid protocol');
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
// TODO: add error logger here
|
// TODO: add error logger here
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,10 +32,10 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
||||||
"@verdaccio/logger": "workspace:6.0.0-6-next.4",
|
"@verdaccio/logger": "workspace:6.0.0-6-next.4",
|
||||||
"debug": "^4.3.1",
|
"debug": "4.3.2",
|
||||||
"handlebars": "4.5.3",
|
"handlebars": "4.5.3",
|
||||||
"undici": "^4.0.0",
|
"undici": "4.5.0",
|
||||||
"undici-fetch": "^1.0.0-rc.1"
|
"undici-fetch": "1.0.0-rc.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@verdaccio/auth": "workspace:6.0.0-6-next.9",
|
"@verdaccio/auth": "workspace:6.0.0-6-next.9",
|
||||||
|
|
|
@ -32,7 +32,7 @@ export async function notifyRequest(url: string, options: FetchOptions): Promise
|
||||||
'The notification @{content} has been successfully dispatched'
|
'The notification @{content} has been successfully dispatched'
|
||||||
);
|
);
|
||||||
return true;
|
return true;
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
debug('request error %o', err);
|
debug('request error %o', err);
|
||||||
logger.error(
|
logger.error(
|
||||||
{ errorMessage: err?.message },
|
{ errorMessage: err?.message },
|
||||||
|
|
|
@ -19,7 +19,7 @@ export function compileTemplate(content, metadata) {
|
||||||
const template: HandlebarsTemplateDelegate = Handlebars.compile(content);
|
const template: HandlebarsTemplateDelegate = Handlebars.compile(content);
|
||||||
return resolve(template(metadata));
|
return resolve(template(metadata));
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error: any) {
|
||||||
debug('error template handler %o', error);
|
debug('error template handler %o', error);
|
||||||
reject(error);
|
reject(error);
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,8 +14,8 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@verdaccio/logger": "workspace:6.0.0-6-next.4",
|
"@verdaccio/logger": "workspace:6.0.0-6-next.4",
|
||||||
"debug": "^4.3.1",
|
"debug": "4.3.2",
|
||||||
"lodash": "4.17.15"
|
"lodash": "4.17.21"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
||||||
|
|
|
@ -17,7 +17,7 @@ export const MODULE_NOT_FOUND = 'MODULE_NOT_FOUND';
|
||||||
function tryLoad(path: string): any {
|
function tryLoad(path: string): any {
|
||||||
try {
|
try {
|
||||||
return require(path);
|
return require(path);
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
if (err.code === MODULE_NOT_FOUND) {
|
if (err.code === MODULE_NOT_FOUND) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -122,7 +122,7 @@ export function loadPlugin<T extends IPlugin<T>>(
|
||||||
plugin = isES6(plugin)
|
plugin = isES6(plugin)
|
||||||
? new plugin.default(mergeConfig(config, pluginConfigs[pluginId]), params)
|
? new plugin.default(mergeConfig(config, pluginConfigs[pluginId]), params)
|
||||||
: plugin(pluginConfigs[pluginId], params);
|
: plugin(pluginConfigs[pluginId], params);
|
||||||
} catch (error) {
|
} catch (error: any) {
|
||||||
plugin = null;
|
plugin = null;
|
||||||
logger.error({ error, pluginId }, 'error loading a plugin @{pluginId}: @{error}');
|
logger.error({ error, pluginId }, 'error loading a plugin @{pluginId}: @{error}');
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,7 +45,7 @@ describe('plugin loader', () => {
|
||||||
loadPlugin(_config, _config.auth, {}, function (p) {
|
loadPlugin(_config, _config.auth, {}, function (p) {
|
||||||
return p.authenticate || p.allow_access || p.allow_publish;
|
return p.authenticate || p.allow_access || p.allow_publish;
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e: any) {
|
||||||
expect(e.message).toEqual(
|
expect(e.message).toEqual(
|
||||||
`"${relativePath}/invalid-plugin" plugin does not have the right code structure`
|
`"${relativePath}/invalid-plugin" plugin does not have the right code structure`
|
||||||
);
|
);
|
||||||
|
@ -59,7 +59,7 @@ describe('plugin loader', () => {
|
||||||
loadPlugin(_config, _config.auth, {}, function (plugin) {
|
loadPlugin(_config, _config.auth, {}, function (plugin) {
|
||||||
return plugin.authenticate || plugin.allow_access || plugin.allow_publish;
|
return plugin.authenticate || plugin.allow_access || plugin.allow_publish;
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
expect(err.message).toEqual(
|
expect(err.message).toEqual(
|
||||||
`sanity check has failed, "${relativePath}/invalid-plugin-sanity" is not a valid plugin`
|
`sanity check has failed, "${relativePath}/invalid-plugin-sanity" is not a valid plugin`
|
||||||
);
|
);
|
||||||
|
@ -73,7 +73,7 @@ describe('plugin loader', () => {
|
||||||
loadPlugin(_config, _config.auth, {}, function (plugin) {
|
loadPlugin(_config, _config.auth, {}, function (plugin) {
|
||||||
return plugin.authenticate || plugin.allow_access || plugin.allow_publish;
|
return plugin.authenticate || plugin.allow_access || plugin.allow_publish;
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e: any) {
|
||||||
expect(e.message).toMatch('plugin not found');
|
expect(e.message).toMatch('plugin not found');
|
||||||
expect(e.message.replace(/\\/g, '/')).toMatch(
|
expect(e.message.replace(/\\/g, '/')).toMatch(
|
||||||
'/partials/test-plugin-storage/invalid-package'
|
'/partials/test-plugin-storage/invalid-package'
|
||||||
|
|
|
@ -39,16 +39,16 @@
|
||||||
"build": "pnpm run build:js && pnpm run build:types"
|
"build": "pnpm run build:js && pnpm run build:types"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"dayjs": "1.8.36",
|
"dayjs": "1.9.7",
|
||||||
"fast-safe-stringify": "2.0.7",
|
"fast-safe-stringify": "2.0.7",
|
||||||
"kleur": "3.0.3",
|
"kleur": "3.0.3",
|
||||||
"lodash": "4.17.20",
|
"lodash": "4.17.21",
|
||||||
"prettier-bytes": "1.0.4",
|
"prettier-bytes": "1.0.4",
|
||||||
"pretty-ms": "5.1.0"
|
"pretty-ms": "5.1.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/pino": "6.0.1",
|
"@types/pino": "6.3.11",
|
||||||
"pino": "6.2.1"
|
"pino": "6.11.3"
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
"type": "opencollective",
|
"type": "opencollective",
|
||||||
|
|
|
@ -40,12 +40,12 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@verdaccio/logger-prettify": "workspace:6.0.0-alpha.3",
|
"@verdaccio/logger-prettify": "workspace:6.0.0-alpha.3",
|
||||||
"debug": "^4.3.1",
|
"debug": "4.3.2",
|
||||||
"lodash": "~4.17.21",
|
"lodash": "4.17.21",
|
||||||
"pino": "^6.11.3"
|
"pino": "6.11.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/pino": "^6.3.3",
|
"@types/pino": "6.3.11",
|
||||||
"@verdaccio/types": "workspace:11.0.0-6-next.7"
|
"@verdaccio/types": "workspace:11.0.0-6-next.7"
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
|
|
|
@ -38,12 +38,12 @@
|
||||||
"build": "pnpm run build:js && pnpm run build:types"
|
"build": "pnpm run build:js && pnpm run build:types"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"debug": "^4.3.1",
|
"debug": "4.3.2",
|
||||||
"@verdaccio/auth": "workspace:6.0.0-6-next.9",
|
"@verdaccio/auth": "workspace:6.0.0-6-next.9",
|
||||||
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
||||||
"@verdaccio/logger": "workspace:6.0.0-6-next.4",
|
"@verdaccio/logger": "workspace:6.0.0-6-next.4",
|
||||||
"@verdaccio/utils": "workspace:6.0.0-6-next.5",
|
"@verdaccio/utils": "workspace:6.0.0-6-next.5",
|
||||||
"lodash": "4.17.15"
|
"lodash": "4.17.21"
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
"type": "opencollective",
|
"type": "opencollective",
|
||||||
|
|
|
@ -240,7 +240,7 @@ export function final(
|
||||||
} else {
|
} else {
|
||||||
// send(null), send(204), etc.
|
// send(null), send(204), etc.
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
// if verdaccio sends headers first, and then calls res.send()
|
// if verdaccio sends headers first, and then calls res.send()
|
||||||
// as an error handler, we can't report error properly,
|
// as an error handler, we can't report error properly,
|
||||||
// and should just close socket
|
// and should just close socket
|
||||||
|
|
|
@ -42,11 +42,11 @@
|
||||||
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
||||||
"@verdaccio/config": "workspace:6.0.0-6-next.7",
|
"@verdaccio/config": "workspace:6.0.0-6-next.7",
|
||||||
"@verdaccio/utils": "workspace:6.0.0-6-next.5",
|
"@verdaccio/utils": "workspace:6.0.0-6-next.5",
|
||||||
"debug": "^4.3.1",
|
"debug": "4.3.2",
|
||||||
"fs-extra": "^8.1.0",
|
"fs-extra": "9.1.0",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "4.17.21",
|
||||||
"request": "2.87.0",
|
"request": "2.87.0",
|
||||||
"supertest": "^4.0.2"
|
"supertest": "6.1.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@verdaccio/types": "workspace:11.0.0-6-next.7"
|
"@verdaccio/types": "workspace:11.0.0-6-next.7"
|
||||||
|
|
|
@ -22,7 +22,7 @@ export class PromiseAssert extends Promise<any> implements IRequestPromise {
|
||||||
try {
|
try {
|
||||||
console.log('-->', expected, selfData?.response?.statusCode);
|
console.log('-->', expected, selfData?.response?.statusCode);
|
||||||
assert.equal(selfData.response.statusCode, expected);
|
assert.equal(selfData.response.statusCode, expected);
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
debug('error status %o', err);
|
debug('error status %o', err);
|
||||||
selfData.error.message = err.message;
|
selfData.error.message = err.message;
|
||||||
throw selfData.error;
|
throw selfData.error;
|
||||||
|
@ -46,7 +46,7 @@ export class PromiseAssert extends Promise<any> implements IRequestPromise {
|
||||||
assert.equal(body.ok, expected);
|
assert.equal(body.ok, expected);
|
||||||
}
|
}
|
||||||
assert.equal(body.error, null);
|
assert.equal(body.error, null);
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
debug('body_ok error %o', err.message);
|
debug('body_ok error %o', err.message);
|
||||||
selfData.error.message = err.message;
|
selfData.error.message = err.message;
|
||||||
throw selfData.error;
|
throw selfData.error;
|
||||||
|
@ -70,7 +70,7 @@ export class PromiseAssert extends Promise<any> implements IRequestPromise {
|
||||||
assert.equal(body.error, expected);
|
assert.equal(body.error, expected);
|
||||||
}
|
}
|
||||||
assert.equal(body.ok, null);
|
assert.equal(body.ok, null);
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
selfData.error.message = err.message;
|
selfData.error.message = err.message;
|
||||||
throw selfData.error;
|
throw selfData.error;
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,16 +43,16 @@
|
||||||
"@verdaccio/config": "workspace:6.0.0-6-next.7",
|
"@verdaccio/config": "workspace:6.0.0-6-next.7",
|
||||||
"@verdaccio/logger": "workspace:6.0.0-6-next.4",
|
"@verdaccio/logger": "workspace:6.0.0-6-next.4",
|
||||||
"@verdaccio/server": "workspace:6.0.0-6-next.16",
|
"@verdaccio/server": "workspace:6.0.0-6-next.16",
|
||||||
"core-js": "^3.15.1",
|
"core-js": "3.16.3",
|
||||||
"debug": "^4.3.1",
|
"debug": "4.3.2",
|
||||||
"lodash": "^4.17.21"
|
"lodash": "4.17.21"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@verdaccio/mock": "workspace:6.0.0-6-next.7",
|
"@verdaccio/mock": "workspace:6.0.0-6-next.7",
|
||||||
"@verdaccio/types": "workspace:11.0.0-6-next.7",
|
"@verdaccio/types": "workspace:11.0.0-6-next.7",
|
||||||
"jest-mock-process": "^1.4.0",
|
"jest-mock-process": "1.4.1",
|
||||||
"selfsigned": "1.10.7",
|
"selfsigned": "1.10.11",
|
||||||
"supertest": "^6.1.3"
|
"supertest": "6.1.6"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
|
|
|
@ -67,7 +67,7 @@ export function createServerFactory(config: ConfigRuntime, addr, app) {
|
||||||
// TODO: enable http2 as feature
|
// TODO: enable http2 as feature
|
||||||
// if (config.server.http2) <-- check if force http2
|
// if (config.server.http2) <-- check if force http2
|
||||||
serverFactory = https.createServer(httpsOptions, app);
|
serverFactory = https.createServer(httpsOptions, app);
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
throw new Error(`cannot create https server: ${err.message}`);
|
throw new Error(`cannot create https server: ${err.message}`);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -35,10 +35,10 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
||||||
"activedirectory2": "^1.3.0"
|
"activedirectory2": "1.3.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/activedirectory2": "^1.2.1",
|
"@types/activedirectory2": "1.2.3",
|
||||||
"@verdaccio/types": "workspace:11.0.0-6-next.7"
|
"@verdaccio/types": "workspace:11.0.0-6-next.7"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -31,15 +31,15 @@
|
||||||
"npm": ">=6"
|
"npm": ">=6"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"express": "^4.17.1",
|
"express": "4.17.1",
|
||||||
"https-proxy-agent": "^5.0.0",
|
"https-proxy-agent": "5.0.0",
|
||||||
"node-fetch": "^2.6.0"
|
"node-fetch": "2.6.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@verdaccio/types": "workspace:11.0.0-6-next.7",
|
"@verdaccio/types": "workspace:11.0.0-6-next.7",
|
||||||
"body-parser": "^1.19.0",
|
"body-parser": "1.19.0",
|
||||||
"nock": "^12.0.3",
|
"nock": "12.0.3",
|
||||||
"supertest": "^4.0.2"
|
"supertest": "6.1.6"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rimraf ./build",
|
"clean": "rimraf ./build",
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
"npm": ">=6"
|
"npm": ">=6"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"debug": "^4.3.1",
|
"debug": "4.3.2",
|
||||||
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3"
|
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
||||||
"@verdaccio/streams": "workspace:11.0.0-alpha.3",
|
"@verdaccio/streams": "workspace:11.0.0-alpha.3",
|
||||||
"aws-sdk": "^2.607.0"
|
"aws-sdk": "2.978.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@verdaccio/types": "workspace:11.0.0-6-next.7",
|
"@verdaccio/types": "workspace:11.0.0-6-next.7",
|
||||||
|
|
|
@ -84,7 +84,7 @@ export default class S3Database implements IPluginStorage<S3Config> {
|
||||||
try {
|
try {
|
||||||
await this._sync();
|
await this._sync();
|
||||||
callback(null);
|
callback(null);
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
callback(err);
|
callback(err);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -161,7 +161,7 @@ export default class S3Database implements IPluginStorage<S3Config> {
|
||||||
await this._sync();
|
await this._sync();
|
||||||
this.logger.trace('s3: [remove] finish sync');
|
this.logger.trace('s3: [remove] finish sync');
|
||||||
callback(null);
|
callback(null);
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
this.logger.error({ err }, 's3: [remove] sync error: @{err}');
|
this.logger.error({ err }, 's3: [remove] sync error: @{err}');
|
||||||
callback(err);
|
callback(err);
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,6 +43,6 @@ export function convertS3Error(err: AWSError): VerdaccioError {
|
||||||
case 'RequestAbortedError':
|
case 'RequestAbortedError':
|
||||||
return getInternalError('request aborted');
|
return getInternalError('request aborted');
|
||||||
default:
|
default:
|
||||||
return getCode(err.statusCode, err.message);
|
return getCode(err.statusCode!, err.message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -100,7 +100,7 @@ export default class S3PackageManager implements ILocalPackageManager {
|
||||||
onWrite(name, transformedPackage, onEnd);
|
onWrite(name, transformedPackage, onEnd);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
this.logger.error(
|
this.logger.error(
|
||||||
{ err },
|
{ err },
|
||||||
's3: [S3PackageManager updatePackage updateHandler onEnd catch] @{err}'
|
's3: [S3PackageManager updatePackage updateHandler onEnd catch] @{err}'
|
||||||
|
@ -132,7 +132,7 @@ export default class S3PackageManager implements ILocalPackageManager {
|
||||||
let data;
|
let data;
|
||||||
try {
|
try {
|
||||||
data = JSON.parse(body);
|
data = JSON.parse(body);
|
||||||
} catch (e) {
|
} catch (e: any) {
|
||||||
this.logger.error({ body }, 's3: [S3PackageManager _getData] error parsing: @{body}');
|
this.logger.error({ body }, 's3: [S3PackageManager _getData] error parsing: @{body}');
|
||||||
reject(e);
|
reject(e);
|
||||||
return;
|
return;
|
||||||
|
@ -248,7 +248,7 @@ export default class S3PackageManager implements ILocalPackageManager {
|
||||||
's3: [S3PackageManager readPackage] packageName: @{packageName} / data @data'
|
's3: [S3PackageManager readPackage] packageName: @{packageName} / data @data'
|
||||||
);
|
);
|
||||||
callback(null, data);
|
callback(null, data);
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
this.logger.error({ err: err.message }, 's3: [S3PackageManager readPackage] @{err}');
|
this.logger.error({ err: err.message }, 's3: [S3PackageManager readPackage] @{err}');
|
||||||
|
|
||||||
callback(err);
|
callback(err);
|
||||||
|
@ -347,7 +347,7 @@ export default class S3PackageManager implements ILocalPackageManager {
|
||||||
's3: [S3PackageManager writeTarball uploadStream done] emit success'
|
's3: [S3PackageManager writeTarball uploadStream done] emit success'
|
||||||
);
|
);
|
||||||
uploadStream.emit('success');
|
uploadStream.emit('success');
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
// already emitted in the promise above, necessary because of some issues
|
// already emitted in the promise above, necessary because of some issues
|
||||||
// with promises in jest
|
// with promises in jest
|
||||||
this.logger.error(
|
this.logger.error(
|
||||||
|
@ -377,7 +377,7 @@ export default class S3PackageManager implements ILocalPackageManager {
|
||||||
try {
|
try {
|
||||||
this.logger.debug('s3: [S3PackageManager writeTarball managedUpload abort]');
|
this.logger.debug('s3: [S3PackageManager writeTarball managedUpload abort]');
|
||||||
managedUpload.abort();
|
managedUpload.abort();
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
const error: HttpError = convertS3Error(err);
|
const error: HttpError = convertS3Error(err);
|
||||||
uploadStream.emit('error', error);
|
uploadStream.emit('error', error);
|
||||||
|
|
||||||
|
|
|
@ -74,7 +74,7 @@ describe.skip('Local Database', () => {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
if (is404Error(err)) {
|
if (is404Error(err)) {
|
||||||
// ignore
|
// ignore
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -68,7 +68,7 @@ describe.skip('S3 package manager', () => {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
if (is404Error(err)) {
|
if (is404Error(err)) {
|
||||||
// ignore
|
// ignore
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -31,8 +31,8 @@
|
||||||
"npm": ">=6"
|
"npm": ">=6"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@google-cloud/datastore": "^6.2.0",
|
"@google-cloud/datastore": "6.5.0",
|
||||||
"@google-cloud/storage": "^5.3.0",
|
"@google-cloud/storage": "5.14.0",
|
||||||
"@verdaccio/commons-api": "^11.0.0-alpha.3",
|
"@verdaccio/commons-api": "^11.0.0-alpha.3",
|
||||||
"@verdaccio/streams": "workspace:11.0.0-alpha.3"
|
"@verdaccio/streams": "workspace:11.0.0-alpha.3"
|
||||||
},
|
},
|
||||||
|
|
|
@ -171,7 +171,7 @@ class GoogleCloudDatabase implements IPluginStorage<VerdaccioConfigGoogleStorage
|
||||||
const datastore = this.helper.datastore;
|
const datastore = this.helper.datastore;
|
||||||
const key = datastore.key([this.kind, datastore.int(item.id)]);
|
const key = datastore.key([this.kind, datastore.int(item.id)]);
|
||||||
await datastore.delete(key);
|
await datastore.delete(key);
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
return getInternalError(err.message);
|
return getInternalError(err.message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,7 +73,7 @@ class GoogleCloudStorageHandler implements IPackageStorageManager {
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
onWrite(name, transformPackage(metadata), onEnd);
|
onWrite(name, transformPackage(metadata), onEnd);
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
this.logger.error(
|
this.logger.error(
|
||||||
{ name: name, err: err.message },
|
{ name: name, err: err.message },
|
||||||
'gcloud: on write update @{name} package has failed err: @{err}'
|
'gcloud: on write update @{name} package has failed err: @{err}'
|
||||||
|
@ -124,7 +124,7 @@ class GoogleCloudStorageHandler implements IPackageStorageManager {
|
||||||
);
|
);
|
||||||
cb(getInternalError(err.message));
|
cb(getInternalError(err.message));
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
this.logger.error(
|
this.logger.error(
|
||||||
{ name: file.name, err: err.message },
|
{ name: file.name, err: err.message },
|
||||||
'gcloud: delete @{name} file has failed err: @{err}'
|
'gcloud: delete @{name} file has failed err: @{err}'
|
||||||
|
@ -212,7 +212,7 @@ class GoogleCloudStorageHandler implements IPackageStorageManager {
|
||||||
resumable: this.config.resumable,
|
resumable: this.config.resumable,
|
||||||
});
|
});
|
||||||
resolve(null);
|
resolve(null);
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
reject(getInternalError(err.message));
|
reject(getInternalError(err.message));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -253,7 +253,7 @@ class GoogleCloudStorageHandler implements IPackageStorageManager {
|
||||||
{ name: name, exist },
|
{ name: name, exist },
|
||||||
'gcloud: check whether @{name} exist successfully: @{exist}'
|
'gcloud: check whether @{name} exist successfully: @{exist}'
|
||||||
);
|
);
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
this.logger.error(
|
this.logger.error(
|
||||||
{ name: file.name, err: err.message },
|
{ name: file.name, err: err.message },
|
||||||
'gcloud: check exist package @{name} has failed, cause: @{err}'
|
'gcloud: check exist package @{name} has failed, cause: @{err}'
|
||||||
|
@ -274,7 +274,7 @@ class GoogleCloudStorageHandler implements IPackageStorageManager {
|
||||||
const response: Package = JSON.parse(content[0].toString('utf8'));
|
const response: Package = JSON.parse(content[0].toString('utf8'));
|
||||||
|
|
||||||
resolve(response);
|
resolve(response);
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
this.logger.debug({ name: this.name }, 'gcloud: @{name} package not found on storage');
|
this.logger.debug({ name: this.name }, 'gcloud: @{name} package not found on storage');
|
||||||
reject(getNotFound());
|
reject(getNotFound());
|
||||||
}
|
}
|
||||||
|
@ -355,7 +355,7 @@ class GoogleCloudStorageHandler implements IPackageStorageManager {
|
||||||
uploadStream.emit('error', getInternalError(err.message));
|
uploadStream.emit('error', getInternalError(err.message));
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
uploadStream.emit('error', err);
|
uploadStream.emit('error', err);
|
||||||
}
|
}
|
||||||
return uploadStream;
|
return uploadStream;
|
||||||
|
|
|
@ -33,8 +33,8 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
||||||
"@verdaccio/streams": "workspace:11.0.0-alpha.3",
|
"@verdaccio/streams": "workspace:11.0.0-alpha.3",
|
||||||
"memory-fs": "^0.5.0",
|
"memory-fs": "0.5.0",
|
||||||
"debug": "^4.3.1",
|
"debug": "4.3.2",
|
||||||
"memfs": "3.2.0"
|
"memfs": "3.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
@ -57,7 +57,7 @@ class MemoryHandler implements IPackageStorageManager {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
pkg = parsePackage(json) as Package;
|
pkg = parsePackage(json) as Package;
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
return onEnd(err);
|
return onEnd(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ class MemoryHandler implements IPackageStorageManager {
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
onWrite(pkgFileName, transformPackage(pkg), onEnd);
|
onWrite(pkgFileName, transformPackage(pkg), onEnd);
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
return onEnd(getInternalError('error on parse the metadata'));
|
return onEnd(getInternalError('error on parse the metadata'));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -92,7 +92,7 @@ class MemoryHandler implements IPackageStorageManager {
|
||||||
debug('save package %o', name);
|
debug('save package %o', name);
|
||||||
this.data[name] = stringifyPackage(value);
|
this.data[name] = stringifyPackage(value);
|
||||||
return cb(null);
|
return cb(null);
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
return cb(getInternalError(err.message));
|
return cb(getInternalError(err.message));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -104,7 +104,7 @@ class MemoryHandler implements IPackageStorageManager {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
return cb(isJson ? getNotFound() : null, parsePackage(json));
|
return cb(isJson ? getNotFound() : null, parsePackage(json));
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
return cb(getNotFound());
|
return cb(getNotFound());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -140,7 +140,7 @@ class MemoryHandler implements IPackageStorageManager {
|
||||||
|
|
||||||
uploadStream.emit('open');
|
uploadStream.emit('open');
|
||||||
return;
|
return;
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
uploadStream.emit('error', err);
|
uploadStream.emit('error', err);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -176,7 +176,7 @@ class MemoryHandler implements IPackageStorageManager {
|
||||||
readStream.destroy(getBadRequest('read has been aborted'));
|
readStream.destroy(getBadRequest('read has been aborted'));
|
||||||
};
|
};
|
||||||
return;
|
return;
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
readTarballStream.emit('error', err);
|
readTarballStream.emit('error', err);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
"@verdaccio/node-api": "workspace:6.0.0-6-next.17",
|
"@verdaccio/node-api": "workspace:6.0.0-6-next.17",
|
||||||
"autosuggest-highlight": "3.1.1",
|
"autosuggest-highlight": "3.1.1",
|
||||||
"babel-loader": "^8.2.2",
|
"babel-loader": "^8.2.2",
|
||||||
"babel-plugin-dynamic-import-node": "^2.3.3",
|
"babel-plugin-dynamic-import-node": "2.3.3",
|
||||||
"babel-plugin-emotion": "10.0.33",
|
"babel-plugin-emotion": "10.0.33",
|
||||||
"bundlesize": "0.18.0",
|
"bundlesize": "0.18.0",
|
||||||
"css-loader": "5.2.1",
|
"css-loader": "5.2.1",
|
||||||
|
@ -49,10 +49,10 @@
|
||||||
"js-yaml": "3.14.0",
|
"js-yaml": "3.14.0",
|
||||||
"lint-staged": "9.5.0",
|
"lint-staged": "9.5.0",
|
||||||
"localstorage-memory": "1.0.3",
|
"localstorage-memory": "1.0.3",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "4.17.21",
|
||||||
"mini-css-extract-plugin": "^1.6.0",
|
"mini-css-extract-plugin": "^1.6.0",
|
||||||
"mutationobserver-shim": "0.3.7",
|
"mutationobserver-shim": "0.3.7",
|
||||||
"node-mocks-http": "1.9.0",
|
"node-mocks-http": "1.10.1",
|
||||||
"normalize.css": "8.0.1",
|
"normalize.css": "8.0.1",
|
||||||
"optimize-css-assets-webpack-plugin": "^5.0.8",
|
"optimize-css-assets-webpack-plugin": "^5.0.8",
|
||||||
"ora": "4.0.4",
|
"ora": "4.0.4",
|
||||||
|
@ -76,10 +76,10 @@
|
||||||
"stylelint-config-styled-components": "0.1.1",
|
"stylelint-config-styled-components": "0.1.1",
|
||||||
"stylelint-processor-styled-components": "1.10.0",
|
"stylelint-processor-styled-components": "1.10.0",
|
||||||
"stylelint-webpack-plugin": "^2.2.1",
|
"stylelint-webpack-plugin": "^2.2.1",
|
||||||
"supertest": "4.0.2",
|
"supertest": "6.1.6",
|
||||||
"terser-webpack-plugin": "^5.1.3",
|
"terser-webpack-plugin": "^5.1.3",
|
||||||
"url-loader": "^4.1.1",
|
"url-loader": "^4.1.1",
|
||||||
"validator": "13.1.1",
|
"validator": "13.6.0",
|
||||||
"wait-on": "5.2.0",
|
"wait-on": "5.2.0",
|
||||||
"webpack": "5.33.2",
|
"webpack": "5.33.2",
|
||||||
"webpack-bundle-analyzer": "3.8.0",
|
"webpack-bundle-analyzer": "3.8.0",
|
||||||
|
|
|
@ -40,7 +40,7 @@ const LoginDialog: React.FC<Props> = ({ onClose, open = false }) => {
|
||||||
const response: LoginBody = await doLogin(username as string, password as string);
|
const response: LoginBody = await doLogin(username as string, password as string);
|
||||||
|
|
||||||
return response;
|
return response;
|
||||||
} catch (e) {
|
} catch (e: any) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.error('login error', e.message);
|
console.error('login error', e.message);
|
||||||
const error = {
|
const error = {
|
||||||
|
|
|
@ -121,7 +121,7 @@ const Search: React.FC<RouteComponentProps> = ({ history }) => {
|
||||||
// FIXME: Argument of type 'unknown' is not assignable to parameter of type 'SetStateAction<never[]>'
|
// FIXME: Argument of type 'unknown' is not assignable to parameter of type 'SetStateAction<never[]>'
|
||||||
setSuggestions(suggestions as any);
|
setSuggestions(suggestions as any);
|
||||||
setLoaded(true);
|
setLoaded(true);
|
||||||
} catch (error) {
|
} catch (error: any) {
|
||||||
/**
|
/**
|
||||||
* AbortError is not the API error.
|
* AbortError is not the API error.
|
||||||
* It means browser has cancelled the API request.
|
* It means browser has cancelled the API request.
|
||||||
|
|
|
@ -10,7 +10,7 @@ const useLocalStorage = <V>(key: string, initialValue: V) => {
|
||||||
const item = window.localStorage.getItem(key);
|
const item = window.localStorage.getItem(key);
|
||||||
// Parse stored json or if none return initialValue
|
// Parse stored json or if none return initialValue
|
||||||
return item ? JSON.parse(item) : initialValue;
|
return item ? JSON.parse(item) : initialValue;
|
||||||
} catch (error) {
|
} catch (error: any) {
|
||||||
// If error also return initialValue
|
// If error also return initialValue
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.error('An error occurred getting a sessionStorage key', error);
|
console.error('An error occurred getting a sessionStorage key', error);
|
||||||
|
@ -28,7 +28,7 @@ const useLocalStorage = <V>(key: string, initialValue: V) => {
|
||||||
setStoredValue(valueToStore);
|
setStoredValue(valueToStore);
|
||||||
// Save to local storage
|
// Save to local storage
|
||||||
window.localStorage.setItem(key, JSON.stringify(valueToStore));
|
window.localStorage.setItem(key, JSON.stringify(valueToStore));
|
||||||
} catch (error) {
|
} catch (error: any) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.error('An error occurred writing to sessionStorage', error);
|
console.error('An error occurred writing to sessionStorage', error);
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,7 +45,7 @@ const VersionContextProvider: React.FC = ({ children }) => {
|
||||||
setIsLoading(false);
|
setIsLoading(false);
|
||||||
setHasNotBeenFound(true);
|
setHasNotBeenFound(true);
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error: any) {
|
||||||
setHasNotBeenFound(true);
|
setHasNotBeenFound(true);
|
||||||
setIsLoading(false);
|
setIsLoading(false);
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@ const Home: React.FC<Props> = ({ isUserLoggedIn }) => {
|
||||||
const packages = await getPackages();
|
const packages = await getPackages();
|
||||||
// FIXME add correct type for package
|
// FIXME add correct type for package
|
||||||
setPackages(packages as never[]);
|
setPackages(packages as never[]);
|
||||||
} catch (error) {
|
} catch (error: any) {
|
||||||
// FIXME: add dialog
|
// FIXME: add dialog
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.error({
|
console.error({
|
||||||
|
|
|
@ -5,7 +5,7 @@ try {
|
||||||
localStorage.setItem('__TEST__', '');
|
localStorage.setItem('__TEST__', '');
|
||||||
localStorage.removeItem('__TEST__');
|
localStorage.removeItem('__TEST__');
|
||||||
storage = localStorage;
|
storage = localStorage;
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
storage = memoryStorage;
|
storage = memoryStorage;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ export function isTokenExpire(token: string | null): boolean {
|
||||||
let exp: number;
|
let exp: number;
|
||||||
try {
|
try {
|
||||||
exp = JSON.parse(Base64.decode(payload)).exp;
|
exp = JSON.parse(Base64.decode(payload)).exp;
|
||||||
} catch (error) {
|
} catch (error: any) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.error('Invalid token:', error, token);
|
console.error('Invalid token:', error, token);
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -5,7 +5,7 @@ try {
|
||||||
localStorage.setItem('__TEST__', '');
|
localStorage.setItem('__TEST__', '');
|
||||||
localStorage.removeItem('__TEST__');
|
localStorage.removeItem('__TEST__');
|
||||||
storage = localStorage;
|
storage = localStorage;
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
storage = memoryStorage;
|
storage = memoryStorage;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -46,12 +46,12 @@
|
||||||
"@verdaccio/streams": "workspace:11.0.0-alpha.3",
|
"@verdaccio/streams": "workspace:11.0.0-alpha.3",
|
||||||
"@verdaccio/utils": "workspace:6.0.0-6-next.5",
|
"@verdaccio/utils": "workspace:6.0.0-6-next.5",
|
||||||
"JSONStream": "1.3.5",
|
"JSONStream": "1.3.5",
|
||||||
"lodash": "4.17.20",
|
"lodash": "4.17.21",
|
||||||
"request": "2.87.0"
|
"request": "2.87.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@verdaccio/types": "workspace:11.0.0-6-next.7",
|
"@verdaccio/types": "workspace:11.0.0-6-next.7",
|
||||||
"nock": "13.0.11",
|
"nock": "12.0.3",
|
||||||
"node-mocks-http": "1.10.1"
|
"node-mocks-http": "1.10.1"
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
|
|
|
@ -209,7 +209,7 @@ class ProxyStorage implements IProxy {
|
||||||
try {
|
try {
|
||||||
// $FlowFixMe
|
// $FlowFixMe
|
||||||
body = JSON.parse(body.toString(CHARACTER_ENCODING.UTF8));
|
body = JSON.parse(body.toString(CHARACTER_ENCODING.UTF8));
|
||||||
} catch (_err) {
|
} catch (_err: any) {
|
||||||
body = {};
|
body = {};
|
||||||
err = _err;
|
err = _err;
|
||||||
error = err.message;
|
error = err.message;
|
||||||
|
|
|
@ -45,12 +45,12 @@
|
||||||
"cors": "2.8.5",
|
"cors": "2.8.5",
|
||||||
"express": "4.17.1",
|
"express": "4.17.1",
|
||||||
"express-rate-limit": "5.2.3",
|
"express-rate-limit": "5.2.3",
|
||||||
"lodash": "4.17.15"
|
"lodash": "4.17.21"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@verdaccio/mock": "workspace:6.0.0-6-next.7",
|
"@verdaccio/mock": "workspace:6.0.0-6-next.7",
|
||||||
"@verdaccio/proxy": "workspace:6.0.0-6-next.9",
|
"@verdaccio/proxy": "workspace:6.0.0-6-next.9",
|
||||||
"http-errors": "1.7.3",
|
"http-errors": "1.8.0",
|
||||||
"request": "2.87.0"
|
"request": "2.87.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -158,7 +158,7 @@ export default (async function (configHash: ConfigRuntime): Promise<any> {
|
||||||
try {
|
try {
|
||||||
// waits until init calls have been initialized
|
// waits until init calls have been initialized
|
||||||
await storage.init(config, filters);
|
await storage.init(config, filters);
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
logger.error({ error: err.msg }, 'storage has failed: @{error}');
|
logger.error({ error: err.msg }, 'storage has failed: @{error}');
|
||||||
throw new Error(err);
|
throw new Error(err);
|
||||||
}
|
}
|
||||||
|
|
|
@ -189,7 +189,7 @@ describe('endpoint unit test', () => {
|
||||||
readonly: false,
|
readonly: false,
|
||||||
cidr_whitelist: [],
|
cidr_whitelist: [],
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e: any) {
|
||||||
const [err, body] = e;
|
const [err, body] = e;
|
||||||
expect(err).not.toBeNull();
|
expect(err).not.toBeNull();
|
||||||
expect(body.error).toEqual(API_ERROR.BAD_USERNAME_PASSWORD);
|
expect(body.error).toEqual(API_ERROR.BAD_USERNAME_PASSWORD);
|
||||||
|
@ -206,7 +206,7 @@ describe('endpoint unit test', () => {
|
||||||
|
|
||||||
expect(res[0]).toBeNull();
|
expect(res[0]).toBeNull();
|
||||||
expect(res[1].body.error).toEqual(SUPPORT_ERRORS.PARAMETERS_NOT_VALID);
|
expect(res[1].body.error).toEqual(SUPPORT_ERRORS.PARAMETERS_NOT_VALID);
|
||||||
} catch (e) {
|
} catch (e: any) {
|
||||||
return Promise.reject(e);
|
return Promise.reject(e);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -220,7 +220,7 @@ describe('endpoint unit test', () => {
|
||||||
|
|
||||||
expect(res[0]).toBeNull();
|
expect(res[0]).toBeNull();
|
||||||
expect(res[1].body.error).toEqual(SUPPORT_ERRORS.PARAMETERS_NOT_VALID);
|
expect(res[1].body.error).toEqual(SUPPORT_ERRORS.PARAMETERS_NOT_VALID);
|
||||||
} catch (e) {
|
} catch (e: any) {
|
||||||
return Promise.reject(e);
|
return Promise.reject(e);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -35,10 +35,10 @@
|
||||||
"@verdaccio/cli": "workspace:6.0.0-6-next.17",
|
"@verdaccio/cli": "workspace:6.0.0-6-next.17",
|
||||||
"@verdaccio/ui-theme": "workspace:6.0.0-6-next.9",
|
"@verdaccio/ui-theme": "workspace:6.0.0-6-next.9",
|
||||||
"fs-extra": "9.0.1",
|
"fs-extra": "9.0.1",
|
||||||
"webpack": "^5.40.0",
|
"webpack": "5.51.1",
|
||||||
"webpack-bundle-analyzer": "3.8.0",
|
"webpack-bundle-analyzer": "3.8.0",
|
||||||
"webpack-bundle-size-analyzer": "3.1.0",
|
"webpack-bundle-size-analyzer": "3.1.0",
|
||||||
"webpack-cli": "^4.7.2"
|
"webpack-cli": "4.8.0"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"private",
|
"private",
|
||||||
|
|
|
@ -47,12 +47,12 @@
|
||||||
"@verdaccio/proxy": "workspace:6.0.0-6-next.9",
|
"@verdaccio/proxy": "workspace:6.0.0-6-next.9",
|
||||||
"@verdaccio/streams": "workspace:11.0.0-alpha.3",
|
"@verdaccio/streams": "workspace:11.0.0-alpha.3",
|
||||||
"@verdaccio/utils": "workspace:6.0.0-6-next.5",
|
"@verdaccio/utils": "workspace:6.0.0-6-next.5",
|
||||||
"async": "3.1.1",
|
"async": "3.2.1",
|
||||||
"debug": "^4.3.1",
|
"debug": "4.3.2",
|
||||||
"lodash": "4.17.15",
|
"lodash": "4.17.21",
|
||||||
"lunr": "2.3.9",
|
"lunr": "2.3.9",
|
||||||
"lunr-mutable-indexes": "^2.3.2",
|
"lunr-mutable-indexes": "2.3.2",
|
||||||
"semver": "7.1.2"
|
"semver": "7.3.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@verdaccio/mock": "workspace:6.0.0-6-next.7",
|
"@verdaccio/mock": "workspace:6.0.0-6-next.7",
|
||||||
|
|
|
@ -145,7 +145,7 @@ class Storage {
|
||||||
debug('publishing a package for %o', name);
|
debug('publishing a package for %o', name);
|
||||||
await publishPackage(name, metadata, this.localStorage as IStorage);
|
await publishPackage(name, metadata, this.localStorage as IStorage);
|
||||||
callback();
|
callback();
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
debug('error on add a package for %o with error %o', name, err?.error);
|
debug('error on add a package for %o with error %o', name, err?.error);
|
||||||
callback(err);
|
callback(err);
|
||||||
}
|
}
|
||||||
|
@ -609,7 +609,7 @@ class Storage {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
validateMetadata(upLinkResponse, name);
|
validateMetadata(upLinkResponse, name);
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
self.logger.error(
|
self.logger.error(
|
||||||
{
|
{
|
||||||
sub: 'out',
|
sub: 'out',
|
||||||
|
@ -631,7 +631,7 @@ class Storage {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
mergeVersions(packageInfo, upLinkResponse);
|
mergeVersions(packageInfo, upLinkResponse);
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
self.logger.error(
|
self.logger.error(
|
||||||
{
|
{
|
||||||
sub: 'out',
|
sub: 'out',
|
||||||
|
@ -698,7 +698,7 @@ class Storage {
|
||||||
// and return it directly for
|
// and return it directly for
|
||||||
// performance (i.e. need not be pure)
|
// performance (i.e. need not be pure)
|
||||||
packageJsonLocal = await filter.filter_metadata(packageJsonLocal);
|
packageJsonLocal = await filter.filter_metadata(packageJsonLocal);
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
filterErrors.push(err);
|
filterErrors.push(err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
"author": "Juan Picado <juanpicado19@gmail.com>",
|
"author": "Juan Picado <juanpicado19@gmail.com>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"clipanion": "3.0.0-rc.12",
|
"clipanion": "3.0.1",
|
||||||
"temp-dir": "2.0.0",
|
"temp-dir": "2.0.0",
|
||||||
"get-port": "5.1.1",
|
"get-port": "5.1.1",
|
||||||
"semver": "7.3.5"
|
"semver": "7.3.5"
|
||||||
|
@ -23,6 +23,6 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"autocannon": "7.3.0",
|
"autocannon": "7.3.0",
|
||||||
"node-fetch": "2.6.1",
|
"node-fetch": "2.6.1",
|
||||||
"ts-node": "10.0.0"
|
"ts-node": "10.2.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@ export class ApiCommand extends Command {
|
||||||
public async execute() {
|
public async execute() {
|
||||||
try {
|
try {
|
||||||
await runApi(this.benchmark, this.version);
|
await runApi(this.benchmark, this.version);
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,7 @@ export default async function run(benchmark, version) {
|
||||||
debug('report path %o', reportPath);
|
debug('report path %o', reportPath);
|
||||||
writeFileSync(reportPath, JSON.stringify(wrapResults, null, 2), 'utf-8');
|
writeFileSync(reportPath, JSON.stringify(wrapResults, null, 2), 'utf-8');
|
||||||
debug('report ends');
|
debug('report ends');
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.error(`error on process autocannon run`, err);
|
console.error(`error on process autocannon run`, err);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
"url": "https://github.com/verdaccio/verdaccio"
|
"url": "https://github.com/verdaccio/verdaccio"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"lunr-mutable-indexes": "^2.3.2"
|
"lunr-mutable-indexes": "2.3.2"
|
||||||
},
|
},
|
||||||
"homepage": "https://verdaccio.org",
|
"homepage": "https://verdaccio.org",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|
|
@ -31,10 +31,10 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
||||||
"semver": "7.3.2"
|
"semver": "7.3.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"lodash": "^4.17.21"
|
"lodash": "4.17.21"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rimraf ./build",
|
"clean": "rimraf ./build",
|
||||||
|
|
|
@ -118,7 +118,7 @@ export function getVersion(pkg: Package, version: any): Version | void {
|
||||||
return pkg.versions[versionItem];
|
return pkg.versions[versionItem];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,16 +38,16 @@
|
||||||
"@verdaccio/utils": "workspace:6.0.0-6-next.5",
|
"@verdaccio/utils": "workspace:6.0.0-6-next.5",
|
||||||
"body-parse": "0.1.0",
|
"body-parse": "0.1.0",
|
||||||
"body-parser": "1.19.0",
|
"body-parser": "1.19.0",
|
||||||
"debug": "^4.3.1",
|
"debug": "4.3.2",
|
||||||
"express": "4.17.1",
|
"express": "4.17.1",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "4.17.21",
|
||||||
"lru-cache": "^6.0.0"
|
"lru-cache": "6.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@verdaccio/types": "workspace:11.0.0-6-next.7",
|
"@verdaccio/types": "workspace:11.0.0-6-next.7",
|
||||||
"body-parser": "^1.19.0",
|
"body-parser": "1.19.0",
|
||||||
"node-html-parser": "^2.2.1",
|
"node-html-parser": "2.2.1",
|
||||||
"supertest": "^6.1.3",
|
"supertest": "6.1.6",
|
||||||
"verdaccio-auth-memory": "workspace:11.0.0-alpha.3",
|
"verdaccio-auth-memory": "workspace:11.0.0-alpha.3",
|
||||||
"verdaccio-memory": "workspace:11.0.0-6-next.4"
|
"verdaccio-memory": "workspace:11.0.0-6-next.4"
|
||||||
},
|
},
|
||||||
|
|
|
@ -48,7 +48,7 @@ function addPackageWebApi(
|
||||||
}
|
}
|
||||||
resolve(allowed);
|
resolve(allowed);
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
reject(err);
|
reject(err);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -89,7 +89,7 @@ function addPackageWebApi(
|
||||||
}
|
}
|
||||||
permissions.push(pkgCopy);
|
permissions.push(pkgCopy);
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
debug('process packages error %o', err);
|
debug('process packages error %o', err);
|
||||||
logger.logger.error(
|
logger.logger.error(
|
||||||
{ name: pkg.name, error: err },
|
{ name: pkg.name, error: err },
|
||||||
|
@ -107,7 +107,7 @@ function addPackageWebApi(
|
||||||
|
|
||||||
try {
|
try {
|
||||||
next(sortByName(await processPackages(packages), order));
|
next(sortByName(await processPackages(packages), order));
|
||||||
} catch (error) {
|
} catch (error: any) {
|
||||||
next(error);
|
next(error);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -40,7 +40,7 @@ function addSearchWebApi(route: Router, storage: IStorageHandler, auth: IAuth):
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
reject(err);
|
reject(err);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -62,7 +62,7 @@ function addSearchWebApi(route: Router, storage: IStorageHandler, auth: IAuth):
|
||||||
const pkg = await getPackageInfo(result.ref, req.remote_user);
|
const pkg = await getPackageInfo(result.ref, req.remote_user);
|
||||||
debug('package found %o', result.ref);
|
debug('package found %o', result.ref);
|
||||||
packages.push(pkg);
|
packages.push(pkg);
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
debug('search for %o failed err %o', result.ref, err?.message);
|
debug('search for %o failed err %o', result.ref, err?.message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,7 +80,7 @@ export default function renderHTML(config, manifest, manifestFiles, req, res) {
|
||||||
} else {
|
} else {
|
||||||
debug('reuse template cache');
|
debug('reuse template cache');
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error: any) {
|
||||||
throw new Error(`theme could not be load, stack ${error.stack}`);
|
throw new Error(`theme could not be load, stack ${error.stack}`);
|
||||||
}
|
}
|
||||||
res.setHeader('Content-Type', HEADERS.TEXT_HTML);
|
res.setHeader('Content-Type', HEADERS.TEXT_HTML);
|
||||||
|
|
1775
pnpm-lock.yaml
1775
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
|
@ -3,7 +3,7 @@
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "1.0.1-alpha.0",
|
"version": "1.0.1-alpha.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"debug": "4.3.1",
|
"debug": "4.3.2",
|
||||||
"npm": "7.0.15",
|
"npm": "7.0.15",
|
||||||
"pnpm": "5.13.5",
|
"pnpm": "5.13.5",
|
||||||
"request": "^2.88.2",
|
"request": "^2.88.2",
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
"@verdaccio/commons-api": "workspace:11.0.0-alpha.3",
|
||||||
"@verdaccio/ui-theme": "workspace:6.0.0-6-next.9",
|
"@verdaccio/ui-theme": "workspace:6.0.0-6-next.9",
|
||||||
"debug": "4.3.1",
|
"debug": "4.3.2",
|
||||||
"kleur": "^4.1.4",
|
"kleur": "3.0.3",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"puppeteer": "^9.1.1",
|
"puppeteer": "^9.1.1",
|
||||||
"request": "^2.88.2",
|
"request": "^2.88.2",
|
||||||
|
|
Loading…
Reference in a new issue