Comparing version 5.0.0 to 5.1.0
@@ -14,2 +14,4 @@ "use strict"; | ||
var _httpClose = _interopRequireDefault(require("http-close")); | ||
var _serializeError = require("serialize-error"); | ||
@@ -65,2 +67,3 @@ | ||
}); | ||
(0, _httpClose.default)(server); | ||
app.get('/health', (request, response) => { | ||
@@ -67,0 +70,0 @@ if (serverIsShuttingDown) { |
@@ -24,2 +24,3 @@ { | ||
"express": "^4.17.1", | ||
"http-close": "^1.0.0", | ||
"roarr": "^2.14.6", | ||
@@ -88,3 +89,3 @@ "serialize-error": "^5.0.0" | ||
}, | ||
"version": "5.0.0" | ||
"version": "5.1.0" | ||
} |
@@ -87,3 +87,3 @@ <a name="lightship"></a> | ||
Lightship has two timeout configurations: `gracefulShutdownTimeout` (60 seconds) and `shutdownHandlerTimeout` (5 seconds). | ||
Lightship has two timeout configurations: `gracefulShutdownTimeout` and `shutdownHandlerTimeout`. | ||
@@ -90,0 +90,0 @@ `gracefulShutdownTimeout` (default: 60 seconds) is a number of milliseconds Lightship waits for Node.js process to exit gracefully after it receives a shutdown signal (either via `process` or by calling `lightship.shutdown()`) before killing the process using `process.exit(1)`. This timeout should be sufficiently big to allow Node.js process to complete tasks (if any) that are active at the time that the shutdown signal is received (e.g. complete serving responses to all HTTP requests) (Note: You must explicitly inform Lightship about active tasks using [beacons](#beacons)). |
@@ -7,2 +7,3 @@ // @flow | ||
import express from 'express'; | ||
import httpClose from 'http-close'; | ||
import { | ||
@@ -71,2 +72,4 @@ serializeError, | ||
httpClose(server); | ||
app.get('/health', (request, response) => { | ||
@@ -73,0 +76,0 @@ if (serverIsShuttingDown) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Network access
Supply chain riskThis module accesses the network.
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
73086
631
5
3
+ Addedhttp-close@^1.0.0
+ Addeddebug@4.3.7(transitive)
+ Addedhttp-close@1.0.0(transitive)