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

lightship

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lightship - npm Package Compare versions

Comparing version 5.0.0 to 5.1.0

3

dist/factories/createLightship.js

@@ -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) {

3

package.json

@@ -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

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