Skip to content

Commit

Permalink
feat: Upgrade dependencies for Verdaccio 5.x (#9)
Browse files Browse the repository at this point in the history
* Upgrade dependencies for Verdaccio 5.x

* Revert node-fetch to handle jest transform issue
  • Loading branch information
danopia authored Dec 1, 2021
1 parent b438ef0 commit 5a9988a
Show file tree
Hide file tree
Showing 3 changed files with 1,690 additions and 1,873 deletions.
26 changes: 14 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
"lib/"
],
"engines": {
"node": ">=10"
"node": ">=12"
},
"dependencies": {
"@verdaccio/commons-api": "^9.6.1",
"@verdaccio/commons-api": "^10",
"express": "^4.17.1",
"on-finished": "^2.3.0",
"prom-client": "^13.0.0"
"prom-client": "^14"
},
"devDependencies": {
"@types/express": "^4.17.1",
Expand All @@ -23,15 +23,15 @@
"@types/node-fetch": "^2.5.7",
"@types/on-finished": "^2.3.1",
"@typescript-eslint/eslint-plugin": "^2.12.0",
"@verdaccio/babel-preset": "^9.6.1",
"@verdaccio/eslint-config": "^9.3.2",
"@verdaccio/types": "^9.5.0",
"eslint": "^6.6.0",
"jest": "^26.0.1 ",
"node-fetch": "^2.6.1",
"@verdaccio/babel-preset": "^10",
"@verdaccio/eslint-config": "^10",
"@verdaccio/types": "^10",
"eslint": "^7",
"jest": "^26",
"node-fetch": "^2",
"prettier": "^1.19.1",
"standard-version": "^8.0.0",
"typescript": "^3.9.5"
"standard-version": "^8",
"typescript": "^4"
},
"keywords": [
"openmetrics",
Expand All @@ -40,7 +40,9 @@
"verdaccio-plugin"
],
"release": {
"branches": ["main"]
"branches": [
"main"
]
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion src/metrics/databaseMetrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ export function collectDatabaseMetrics(storage: IStorageManager<MetricsConfig>,
isRegistered = true;
}
} catch (err) {
const stack = (err as Error).stack || `${err}`;
// eslint-disable-next-line no-console
console.error(`WARN: Failed to collect database metrics due to`, err.stack);
console.error(`WARN: Failed to collect database metrics due to`, stack);
packageCount.reset();
packageVersionsCount.reset();
maxVersionsCount.reset();
Expand Down
Loading

0 comments on commit 5a9988a

Please sign in to comment.