@middy/do-not-wait-for-empty-event-loop 7.1.2 → 7.1.4

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/README.md CHANGED
@@ -30,10 +30,23 @@
30
30
  <p>You can read the documentation at: <a href="https://middy.js.org/docs/middlewares/do-not-wait-for-empty-event-loop">https://middy.js.org/docs/middlewares/do-not-wait-for-empty-event-loop</a></p>
31
31
  </div>
32
32
 
33
- ## License
33
+ ## Install
34
+
35
+ ```bash
36
+ npm install --save @middy/do-not-wait-for-empty-event-loop
37
+ ```
38
+
39
+
40
+ ## Documentation and examples
41
+
42
+ For documentation and examples, refer to the main [Middy monorepo on GitHub](https://github.com/middyjs/middy) or [Middy official website](https://middy.js.org/docs/middlewares/do-not-wait-for-empty-event-loop).
34
43
 
35
- Licensed under [MIT License](LICENSE). Copyright (c) 2017-2026 [will Farrell](https://github.com/willfarrell), [Luciano Mammino](https://github.com/lmammino), and [Middy contributors](https://github.com/middyjs/middy/graphs/contributors).
36
44
 
37
- <a href="https://app.fossa.io/projects/git%2Bgithub.com%2Fmiddyjs%2Fmiddy?ref=badge_large">
38
- <img src="https://app.fossa.io/api/projects/git%2Bgithub.com%2Fmiddyjs%2Fmiddy.svg?type=large" alt="FOSSA Status" style="max-width:100%;">
39
- </a>
45
+ ## Contributing
46
+
47
+ Everyone is very welcome to contribute to this repository. Feel free to [raise issues](https://github.com/middyjs/middy/issues) or to [submit Pull Requests](https://github.com/middyjs/middy/pulls).
48
+
49
+
50
+ ## License
51
+
52
+ Licensed under [MIT License](LICENSE). Copyright (c) 2017-2026 [will Farrell](https://github.com/willfarrell), [Luciano Mammino](https://github.com/lmammino), and [Middy contributors](https://github.com/middyjs/middy/graphs/contributors).
package/index.d.ts CHANGED
@@ -10,6 +10,6 @@ export interface Options {
10
10
 
11
11
  declare function doNotWaitForEmptyEventLoop(
12
12
  options?: Options,
13
- ): middy.MiddlewareObj;
13
+ ): middy.MiddlewareObj<unknown, unknown, Error>;
14
14
 
15
15
  export default doNotWaitForEmptyEventLoop;
package/index.js CHANGED
@@ -11,7 +11,7 @@ const defaults = {
11
11
  const doNotWaitForEmptyEventLoopMiddleware = (opts = {}) => {
12
12
  const options = { ...defaults, ...opts };
13
13
 
14
- const doNotWaitForEmptyEventLoop = async (request) => {
14
+ const doNotWaitForEmptyEventLoop = (request) => {
15
15
  if (isExecutionModeDurable(request.context)) {
16
16
  request.context.lambdaContext.callbackWaitsForEmptyEventLoop = false;
17
17
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middy/do-not-wait-for-empty-event-loop",
3
- "version": "7.1.2",
3
+ "version": "7.1.4",
4
4
  "description": "Middleware for the middy framework that allows to easily disable the wait for empty event loop in a Lambda function",
5
5
  "type": "module",
6
6
  "engines": {
@@ -62,12 +62,12 @@
62
62
  "type": "github",
63
63
  "url": "https://github.com/sponsors/willfarrell"
64
64
  },
65
- "gitHead": "7a6c0fbb8ab71d6a2171e678697de9f237568431",
66
65
  "dependencies": {
67
- "@middy/util": "7.1.2"
66
+ "@middy/util": "7.1.4"
68
67
  },
69
68
  "devDependencies": {
70
- "@middy/core": "7.1.2",
71
- "@types/aws-lambda": "^8.0.0"
69
+ "@middy/core": "7.1.4",
70
+ "@types/aws-lambda": "^8.0.0",
71
+ "@types/node": "^22.0.0"
72
72
  }
73
73
  }