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

under-pressure

Package Overview
Dependencies
Maintainers
8
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

under-pressure - npm Package Compare versions

Comparing version 3.2.0 to 3.2.1

2

index.d.ts

@@ -13,2 +13,4 @@ import * as http from "http";

healthCheckInterval?: number;
sampleInterval?: number;
exposeStatusRoute?: boolean | string | {routeOpts: object; url?: string};
}

@@ -15,0 +17,0 @@ }

2

package.json
{
"name": "under-pressure",
"version": "3.2.0",
"version": "3.2.1",
"description": "Measure process load with automatic handling of 'Service Unavailable' plugin for Fastify.",

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

@@ -49,1 +49,36 @@ import underPressure = require("../under-pressure");

};
() => {
fastify.register(underPressure, {
sampleInterval: 10
});
}
() => {
fastify.register(underPressure, {
exposeStatusRoute: '/v2/status',
});
fastify.register(underPressure, {
exposeStatusRoute: true
});
fastify.register(underPressure, {
exposeStatusRoute: {
routeOpts: {
logLevel: 'silent',
config: {}
},
url: '/alive'
}
});
fastify.register(underPressure, {
exposeStatusRoute: {
routeOpts: {
logLevel: 'silent'
}
}
});
};
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