under-pressure
Advanced tools
Comparing version 3.2.0 to 3.2.1
@@ -13,2 +13,4 @@ import * as http from "http"; | ||
healthCheckInterval?: number; | ||
sampleInterval?: number; | ||
exposeStatusRoute?: boolean | string | {routeOpts: object; url?: string}; | ||
} | ||
@@ -15,0 +17,0 @@ } |
{ | ||
"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' | ||
} | ||
} | ||
}); | ||
}; | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
25885
711
0