New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@mojaloop/central-services-metrics

Package Overview
Dependencies
Maintainers
0
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mojaloop/central-services-metrics - npm Package Compare versions

Comparing version 12.2.0 to 12.2.1

8

dist/metrics.js

@@ -219,3 +219,3 @@ /*****

var _a = _this.getOptions(), _b = _a.maxConnections, maxConnections = _b === void 0 ? 0 : _b, _c = _a.maxRequestsPending, maxRequestsPending = _c === void 0 ? 0 : _c;
if ((maxConnections > 0 || maxRequestsPending > 0) && request.path === '/ready') {
if ((maxConnections > 0 || maxRequestsPending > 0) && request.path === '/health') {
if (maxConnections > 0 && connections >= maxConnections) {

@@ -228,3 +228,5 @@ return h.response('Max connections reached').code(503).takeover();

}
if (['/metrics', '/health', '/ready'].includes(request.path))
if (request.path === '/live')
return h.response('OK').code(200).takeover();
if (['/metrics', '/health'].includes(request.path))
return h.continue;

@@ -236,3 +238,3 @@ requests++;

server.events.on('response', function (request) {
if (['/metrics', '/health', '/ready'].includes(request.path))
if (['/metrics', '/health', '/live'].includes(request.path))
return;

@@ -239,0 +241,0 @@ requests--;

{
"name": "@mojaloop/central-services-metrics",
"version": "12.2.0",
"version": "12.2.1",
"description": "Shared code for metrics generation",

@@ -65,3 +65,3 @@ "main": "./dist/index.js",

"@hapi/hapi": "^21.3.12",
"@types/node": "^22.9.1",
"@types/node": "^22.9.3",
"@types/tape": "^5.6.4",

@@ -85,4 +85,3 @@ "audit-ci": "^7.1.0",

"tslint": "6.1.3",
"typedoc": "0.26.11",
"typescript": "^5.6.3"
"typescript": "^5.7.2"
},

@@ -89,0 +88,0 @@ "nyc": {

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