New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gracefultools

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gracefultools - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

5

index.js

@@ -11,2 +11,3 @@ const { info, warn } = require('winston');

let httpListener;
let onClose;

@@ -30,2 +31,3 @@ const handleClose = () => {

httpListener.close(handleClose);
if (typeof onClose === 'function') onClose(event);

@@ -41,3 +43,3 @@ setTimeout(handleTimeout, processTimeout);

const start = (app, options) => {
const start = (app, options, handler) => {
const { host, port: desiredPort, timeout } = options;

@@ -48,2 +50,3 @@ const port = desiredPort || 3000;

if (typeof timeout === 'number') processTimeout = timeout;
onClose = handler;

@@ -50,0 +53,0 @@ const sendEvents = (text) => {

2

package.json

@@ -9,3 +9,3 @@ {

"bugs": "https://github.com/good-hood-gmbh/gracefultools/issues",
"version": "1.0.0",
"version": "1.1.0",
"keywords": [

@@ -12,0 +12,0 @@ "express",

@@ -22,3 +22,4 @@ Graceful tools

// When you're ready to start your app
gracefulStart(app, { host, port, timeout });
// onShutdown - invoked when shutdown started
gracefulStart(app, { host, port, timeout }, onShutdown);
```
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