Skip to content

Commit

Permalink
chore!: update prom-client to ^13.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
richardnias authored and SkeLLLa committed Feb 21, 2021
1 parent ba5bf1d commit 40183ea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"dependencies": {
"fastify-plugin": "^3.0.0",
"prom-client": "^12.0.0"
"prom-client": "^13.0.0"
},
"devDependencies": {
"@commitlint/cli": "^11.0.0",
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,10 @@ const fastifyMetricsPlugin: FastifyPlugin<PluginOptions> = async function fastif
// hide route from swagger plugins
hide: true,
},
handler: (_, reply) => {
handler: async (_, reply) => {
const data = register ? register.metrics() : client.register.metrics();

void reply.type('text/plain').send(data);
void reply.type('text/plain').send(await data);
},
});
}
Expand Down

0 comments on commit 40183ea

Please sign in to comment.