@middy/http-urlencode-path-parser 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/http-urlencode-path-parser">https://middy.js.org/docs/middlewares/http-urlencode-path-parser</a></p>
31
31
  </div>
32
32
 
33
- ## License
33
+ ## Install
34
+
35
+ ```bash
36
+ npm install --save @middy/http-urlencode-path-parser
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/http-urlencode-path-parser).
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
@@ -2,12 +2,13 @@
2
2
  // SPDX-License-Identifier: MIT
3
3
  import type middy from "@middy/core";
4
4
  import type { APIGatewayEvent } from "aws-lambda";
5
- import type { JsonValue } from "type-fest";
6
5
 
7
- export type Event = APIGatewayEvent & {
8
- body: JsonValue;
9
- };
6
+ export type Event = APIGatewayEvent;
10
7
 
11
- declare function urlEncodePathParser(): middy.MiddlewareObj<Event>;
8
+ declare function urlEncodePathParser(): middy.MiddlewareObj<
9
+ Event,
10
+ unknown,
11
+ Error
12
+ >;
12
13
 
13
14
  export default urlEncodePathParser;
package/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // SPDX-License-Identifier: MIT
3
3
  import { createError } from "@middy/util";
4
4
 
5
- const httpUrlencodePathParserMiddlewareBefore = async (request) => {
5
+ const httpUrlencodePathParserMiddlewareBefore = (request) => {
6
6
  if (!request.event.pathParameters) return;
7
7
  for (const key of Object.keys(request.event.pathParameters)) {
8
8
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middy/http-urlencode-path-parser",
3
- "version": "7.1.2",
3
+ "version": "7.1.4",
4
4
  "description": "Urlencode path parser middleware for the middy framework",
5
5
  "type": "module",
6
6
  "engines": {
@@ -66,12 +66,12 @@
66
66
  "url": "https://github.com/sponsors/willfarrell"
67
67
  },
68
68
  "dependencies": {
69
- "@middy/util": "7.1.2"
69
+ "@middy/util": "7.1.4"
70
70
  },
71
71
  "devDependencies": {
72
- "@middy/core": "7.1.2",
72
+ "@middy/core": "7.1.4",
73
73
  "@types/aws-lambda": "^8.0.0",
74
+ "@types/node": "^22.0.0",
74
75
  "type-fest": "^5.0.0"
75
- },
76
- "gitHead": "7a6c0fbb8ab71d6a2171e678697de9f237568431"
76
+ }
77
77
  }