@middy/core 5.4.0 → 5.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2017-2023 [Luciano Mammino](https://github.com/lmammino), [will Farrell](https://github.com/willfarrell) and the [Middy team](https://github.com/middyjs/middy/graphs/contributors)
3
+ Copyright (c) 2017-2024 [Luciano Mammino](https://github.com/lmammino), [will Farrell](https://github.com/willfarrell) and the [Middy team](https://github.com/middyjs/middy/graphs/contributors)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -59,7 +59,7 @@ Everyone is very welcome to contribute to this repository. Feel free to [raise i
59
59
 
60
60
  ## License
61
61
 
62
- Licensed under [MIT License](LICENSE). Copyright (c) 2017-2023 [Luciano Mammino](https://github.com/lmammino), [will Farrell](https://github.com/willfarrell), and the [Middy team](https://github.com/middyjs/middy/graphs/contributors).
62
+ Licensed under [MIT License](LICENSE). Copyright (c) 2017-2024 [Luciano Mammino](https://github.com/lmammino), [will Farrell](https://github.com/willfarrell), and the [Middy team](https://github.com/middyjs/middy/graphs/contributors).
63
63
 
64
64
  <a href="https://app.fossa.io/projects/git%2Bgithub.com%2Fmiddyjs%2Fmiddy?ref=badge_large">
65
65
  <img src="https://app.fossa.io/api/projects/git%2Bgithub.com%2Fmiddyjs%2Fmiddy.svg?type=large" alt="FOSSA Status" style="max-width:100%;">
package/index.d.ts CHANGED
@@ -96,12 +96,13 @@ export interface MiddyfiedHandler<
96
96
  before: AttachMiddlewareFn<TEvent, TResult, TErr, TContext, TInternal>
97
97
  after: AttachMiddlewareFn<TEvent, TResult, TErr, TContext, TInternal>
98
98
  onError: AttachMiddlewareFn<TEvent, TResult, TErr, TContext, TInternal>
99
- handler: <TAdditional>(
99
+ handler: <TInputHandlerEventProps, TInputHandlerResultProps>(
100
100
  handler: MiddlewareHandler<
101
- LambdaHandler<TEvent & TAdditional, TResult>,
101
+ LambdaHandler<TInputHandlerEventProps, TInputHandlerResultProps>,
102
102
  TContext
103
103
  >
104
- ) => MiddyfiedHandler<TEvent, TResult, TErr, TContext, TInternal>
104
+ | LambdaHandler<TInputHandlerEventProps, TInputHandlerResultProps>
105
+ ) => MiddyfiedHandler<TInputHandlerEventProps, TInputHandlerResultProps, TErr, TContext, TInternal>
105
106
  }
106
107
 
107
108
  declare type AttachMiddlewareFn<
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middy/core",
3
- "version": "5.4.0",
3
+ "version": "5.4.2",
4
4
  "description": "🛵 The stylish Node.js middleware engine for AWS Lambda (core package)",
5
5
  "type": "module",
6
6
  "engines": {
@@ -60,7 +60,7 @@
60
60
  "@types/aws-lambda": "^8.10.76",
61
61
  "@types/node": "^20.0.0"
62
62
  },
63
- "gitHead": "593d40bc87996159c29367ab39d7d415940d9fba",
63
+ "gitHead": "e862f8d6cbd447461537bc8e8db39c6720290e2f",
64
64
  "dependencies": {
65
65
  "@datastream/core": "0.0.35"
66
66
  }