Socket
Socket
Sign inDemoInstall

fastify-metrics

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastify-metrics - npm Package Compare versions

Comparing version 10.3.0 to 10.3.1

4

dist/fastify-metrics.js

@@ -35,3 +35,5 @@ "use strict";

// Setup route label getter
const defaultGetRouteLabel = (request) => request.routeConfig.statsId ?? request.routerPath ?? this.routeFallback;
const defaultGetRouteLabel = (request) => request.routeOptions.config.statsId ??
request.routeOptions.url ??
this.routeFallback;
this.getRouteLabel =

@@ -38,0 +40,0 @@ this.options.routeMetrics.overrides?.labels?.getRouteLabel ??

@@ -45,4 +45,4 @@ /**

*/
declare const _default: import("fastify").FastifyPluginAsync<Partial<IMetricsPluginOptions>, import("fastify").RawServerDefault, import("fastify").FastifyTypeProviderDefault>;
declare const _default: import("fastify").FastifyPluginAsync<Partial<IMetricsPluginOptions>, import("fastify").RawServerDefault, import("fastify").FastifyTypeProviderDefault, import("fastify").FastifyBaseLogger>;
export default _default;
//# sourceMappingURL=index.d.ts.map
{
"$schema": "https://json.schemastore.org/package.json",
"name": "fastify-metrics",
"version": "10.3.0",
"version": "10.3.1",
"description": "Prometheus metrics exporter for Fastify",

@@ -73,3 +73,3 @@ "keywords": [

"eslint-plugin-tsdoc": "^0.2.17",
"fastify": "^4.9.2",
"fastify": "^4.23.1",
"jest": "^29.2.0",

@@ -76,0 +76,0 @@ "prettier": "^2.7.1",

@@ -226,3 +226,3 @@ # fastify-metrics

See [changelog](CHANGELOG.md).
See [changelog](docs/CHANGELOG.md).

@@ -229,0 +229,0 @@ <sub>[Back to top](#toc)</sub>

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc