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

lambda-wrap

Package Overview
Dependencies
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lambda-wrap - npm Package Compare versions

Comparing version 2.0.0-alpha.2 to 2.0.0-alpha.3

31

index.d.ts

@@ -46,6 +46,31 @@

function lambdaHandler (event: Object, context: Object, callback: Function) : void
function lambdaHandler (event: Object, context: Object, callback: Function): void
function wrapFn (wrapperFunction: (event: ServerlessLambdaEvent, context: Object) => Promise) : lambdaHandler;
interface wrapperFunctionType { (event: ServerlessLambdaEvent, context: Object): any }
interface Logger {
log (...args:any[]): any
error (...args:any[]): any
warn (...args:any[]): any
}
export function lambdaWrap(options: LambdaWrapOptions) : wrapFn;
interface responseHandlerType { (data: Object, event: ServerlessLambdaEvent, context: Object, callback: Function, logger?: Logger, options?: LambdaWrapOptions): any }
interface errorResponseHandlerType { (error: Error, event: ServerlessLambdaEvent, context: Object, callback: Function, logger?: Logger, options?: LambdaWrapOptions): any }
interface beforeMiddlewareType { (event: ServerlessLambdaEvent, context?: Object): any }
interface catchMiddlewareType { (error: Error, event?: ServerlessLambdaEvent, context?: Object): any }
interface finallyMiddlewareType { (error?: Error, response?: Object, event?: ServerlessLambdaEvent, context?: Object): any }
interface wrapFn {
(wrapperFunction: wrapperFunctionType): lambdaHandler
logger: Logger
responseHandler: responseHandler
errorResponseHandler: responseHandler
before (beforeMiddleware: beforeMiddlewareType): void
catch (catchMiddleware: catchMiddlewareType): void
finally (finallyMiddleware: finallyMiddlewareType): void
};
export function lambdaWrap(options: LambdaWrapOptions): wrapFn;

2

package.json
{
"name": "lambda-wrap",
"version": "2.0.0-alpha.2",
"version": "2.0.0-alpha.3",
"description": "AWS Serverless wrapper for async generators",

@@ -5,0 +5,0 @@ "main": "index.js",

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