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

@middy/core

Package Overview
Dependencies
Maintainers
10
Versions
226
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@middy/core - npm Package Compare versions

Comparing version 1.0.0-alpha.62 to 1.0.0-alpha.63

16

index.d.ts

@@ -7,10 +7,10 @@ import {

declare type EventType<T> =
T extends (event: infer EventArgType, context: Context, callback: Callback<any>) => void ? EventArgType :
T extends (event: infer EventArgType, context: Context) => Promise<any> ? EventArgType :
declare type EventType<T, C> =
T extends (event: infer EventArgType, context: C, callback: Callback<any>) => void ? EventArgType :
T extends (event: infer EventArgType, context: C) => Promise<any> ? EventArgType :
never;
declare type HandlerReturnType<T> =
T extends (event: any, context: Context) => Promise<infer RetType> ? RetType :
T extends (event: any, context: Context, callback: Callback<infer RetType>) => void ? RetType :
declare type HandlerReturnType<T, C> =
T extends (event: any, context: C) => Promise<infer RetType> ? RetType :
T extends (event: any, context: C, callback: Callback<infer RetType>) => void ? RetType :
never;

@@ -23,4 +23,4 @@

declare const middy: <H extends AsyncHandler<C>, C extends Context = Context>(handler: H) => middy.Middy<
EventType<H>,
HandlerReturnType<H>,
EventType<H, C>,
HandlerReturnType<H, C>,
C

@@ -27,0 +27,0 @@ >

{
"name": "@middy/core",
"version": "1.0.0-alpha.62",
"version": "1.0.0-alpha.63",
"description": "🛵 The stylish Node.js middleware engine for AWS Lambda (core package)",

@@ -48,3 +48,3 @@ "engines": {

},
"gitHead": "10651ba4e4788f9314599db21dfffc75abf87f38"
"gitHead": "01e7ca27ac792b26aa59ee65e67448f3df4048f9"
}
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