Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

express-prom-bundle

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-prom-bundle - npm Package Compare versions

Comparing version 6.1.0 to 6.2.0

2

package.json
{
"name": "express-prom-bundle",
"version": "6.1.0",
"version": "6.2.0",
"description": "express middleware with popular prometheus metrics in one bundle",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -18,3 +18,3 @@ // TypeScript Version: 2.8

type NormalizeStatusCodeFn = (res: Response) => number | string;
type TransformLabelsFn = (labels: Labels, req: Request, res: Response) => Labels;
type TransformLabelsFn = (labels: Labels, req: Request, res: Response) => void;

@@ -34,2 +34,3 @@ interface Opts {

metricsPath?: string;
httpDurationMetricName?: string;
promClient?: { collectDefaultMetrics?: DefaultMetricsCollectorConfiguration };

@@ -40,3 +41,2 @@ promRegistry?: Registry;

transformLabels?: TransformLabelsFn;
httpDurationMetricName?: string;

@@ -52,2 +52,6 @@ // https://github.com/disjunction/url-value-parser#options

interface Middleware extends RequestHandler {
metricsMiddleware: RequestHandler;
}
const normalizePath: NormalizePathFn;

@@ -64,2 +68,2 @@ const normalizeStatusCode: NormalizeStatusCodeFn;

declare function express_prom_bundle(opts: express_prom_bundle.Opts): RequestHandler;
declare function express_prom_bundle(opts: express_prom_bundle.Opts): express_prom_bundle.Middleware;
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