Skip to content

Commit

Permalink
refactor: update for new repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Splaktar committed Oct 9, 2023
1 parent 19052be commit 412cfb6
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 91 deletions.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ FROM node:lts-alpine as builder
# Install the metrics middleware plugin. Replace `x.y.z` with the plugin version.
RUN mkdir -p /verdaccio/plugins \
&& cd /verdaccio/plugins \
&& npm install --global-style --no-bin-links --omit=optional @xlts.dev/[email protected]
&& npm install --global-style --no-bin-links --omit=optional @devintent/[email protected]

# The final built image will be based on the standard Verdaccio docker image.
FROM verdaccio/verdaccio:5
Expand All @@ -85,7 +85,7 @@ FROM verdaccio/verdaccio:5
# The `$VERDACCIO_USER_UID` env variable is defined in the base `verdaccio/verdaccio` image.
# Refer to: https://github.com/verdaccio/verdaccio/blob/v5.13.3/Dockerfile#L32
COPY --chown=$VERDACCIO_USER_UID:root --from=builder \
/verdaccio/plugins/node_modules/@xlts.dev/verdaccio-prometheus-middleware \
/verdaccio/plugins/node_modules/@devintent/verdaccio-prometheus-middleware \
/verdaccio/plugins/verdaccio-metrics
```

Expand Down
144 changes: 72 additions & 72 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@xlts.dev/verdaccio-prometheus-middleware",
"name": "@devintent/verdaccio-prometheus-middleware",
"version": "2.0.2",
"description": "Verdaccio middleware plugin used to collect prometheus compatible metrics",
"keywords": [
Expand All @@ -11,16 +11,16 @@
],
"author": {
"name": "Ed Clement",
"email": "ed@xlts.dev"
"email": "ed@devintent.com"
},
"license": "MIT",
"homepage": "https://xlts.dev",
"homepage": "https://devintent.com",
"repository": {
"type": "git",
"url": "https://github.com/xlts-dev/verdaccio-prometheus-middleware"
"url": "https://github.com/devintent/verdaccio-prometheus-middleware"
},
"bugs": {
"url": "https://github.com/xlts-dev/verdaccio-prometheus-middleware/issues"
"url": "https://github.com/devintent/verdaccio-prometheus-middleware/issues"
},
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
12 changes: 0 additions & 12 deletions sonar-project.properties

This file was deleted.

2 changes: 2 additions & 0 deletions src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ export default class VerdaccioMiddlewarePlugin implements IPluginMiddleware<Metr
*/
public register_middlewares(
app: Application,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
auth: IBasicAuth<MetricsConfig>,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
storage: IStorageManager<MetricsConfig>,
): void {
const { defaultMetrics, requestMetrics, packageMetrics } = this.metricsConfig;
Expand Down

0 comments on commit 412cfb6

Please sign in to comment.