Socket
Socket
Sign inDemoInstall

@adonisjs/health

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adonisjs/health - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

19

build/index.js

@@ -103,2 +103,14 @@ // src/result.ts

/**
* Returns the debugging info of the process
*/
#getDebugInfo() {
return {
pid: process.pid,
ppid: process.ppid,
platform: process.platform,
uptime: process.uptime(),
version: process.version
};
}
/**
* Executes the check and respects the caching layer as well

@@ -174,2 +186,3 @@ */

finishedAt,
debugInfo: this.#getDebugInfo(),
checks

@@ -183,3 +196,3 @@ };

var MemoryRSSHealthCheck = class extends BaseCheck {
#warnThreshold = stringHelpers2.bytes.parse("200 mb");
#warnThreshold = stringHelpers2.bytes.parse("320 mb");
#failThreshold = stringHelpers2.bytes.parse("350 mb");

@@ -261,3 +274,3 @@ #computeFn = () => {

var MemoryHeapHealthCheck = class extends BaseCheck {
#warnThreshold = stringHelpers3.bytes.parse("150 mb");
#warnThreshold = stringHelpers3.bytes.parse("250 mb");
#failThreshold = stringHelpers3.bytes.parse("300 mb");

@@ -339,3 +352,3 @@ #computeFn = () => {

var DiskSpaceHealthCheck = class extends BaseCheck {
#warnThreshold = 60;
#warnThreshold = 75;
#failThreshold = 80;

@@ -342,0 +355,0 @@ #computeFn = () => {

@@ -43,2 +43,28 @@ export type HealthCheckResult = {

/**
* The debugging info for the running process
*/
debugInfo: {
/**
* The process id
*/
pid: number;
/**
* The process id for the parent process (if any)
*/
ppid?: number;
/**
* The number of seconds for which the process has been
* running.
*/
uptime: number;
/**
* Node.js version
*/
version: string;
/**
* The platform on which the application is running
*/
platform: string;
};
/**
* Perform checks and their report

@@ -45,0 +71,0 @@ */

8

package.json
{
"name": "@adonisjs/health",
"description": "The health checks module for AdonisJS",
"version": "1.0.1",
"version": "1.1.0",
"type": "module",

@@ -49,5 +49,5 @@ "files": [

"@japa/runner": "^3.1.4",
"@swc/core": "^1.5.25",
"@swc/core": "^1.6.0",
"@types/node": "^20.14.1",
"c8": "^9.1.0",
"c8": "^10.1.2",
"copyfiles": "^2.4.1",

@@ -58,3 +58,3 @@ "del-cli": "^5.1.0",

"np": "^10.0.5",
"prettier": "^3.3.0",
"prettier": "^3.3.2",
"ts-node": "^10.9.2",

@@ -61,0 +61,0 @@ "tsup": "^8.1.0",

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