You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@lambda-middleware/do-not-wait

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lambda-middleware/do-not-wait

AWS lambda middleware to prevent Lambda from timing out because of processes running after returning a value.

1.0.0
Source
npm
Version published
Maintainers
1
Created
Source

@lambda-middleware/do-not-wait

npm version downloads open issues debug build status codecov dependency status devDependency status

AWS lambda middleware to prevent Lambda from timing out because of processes running after returning a value.

Lambda middleware

This middleware is part of the lambda middleware series. It can be used independently.

Usage

import { doNotWait } from "@lambda-middleware/do-not-wait";

// This is your AWS handler
async function helloWorld() {
  return {
    statusCode: 200,
    body: "",
  };
}

// Wrap the handler with the middleware
export const handler = doNotWait()(helloWorld);

Keywords

aws

FAQs

Package last updated on 13 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts