@middy/http-urlencode-path-parser 2.5.6 → 3.0.0-alpha.3

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-2021 Luciano Mammino, will Farrell and the [Middy team](https://github.com/middyjs/middy/graphs/contributors)
3
+ Copyright (c) 2017-2022 Luciano Mammino, will Farrell 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
@@ -82,7 +82,7 @@ Everyone is very welcome to contribute to this repository. Feel free to [raise i
82
82
 
83
83
  ## License
84
84
 
85
- Licensed under [MIT License](LICENSE). Copyright (c) 2017-2021 Luciano Mammino, will Farrell, and the [Middy team](https://github.com/middyjs/middy/graphs/contributors).
85
+ Licensed under [MIT License](LICENSE). Copyright (c) 2017-2022 Luciano Mammino, will Farrell, and the [Middy team](https://github.com/middyjs/middy/graphs/contributors).
86
86
 
87
87
  <a href="https://app.fossa.io/projects/git%2Bgithub.com%2Fmiddyjs%2Fmiddy?ref=badge_large">
88
88
  <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.js CHANGED
@@ -1,5 +1,5 @@
1
1
  const httpUrlencodePathParserMiddlewareBefore = async (request) => {
2
- if (!request.event?.pathParameters) return
2
+ if (!request.event.pathParameters) return
3
3
  for (const key in request.event.pathParameters) {
4
4
  request.event.pathParameters[key] = decodeURIComponent(
5
5
  request.event.pathParameters[key]
@@ -10,4 +10,4 @@ const httpUrlencodePathParserMiddlewareBefore = async (request) => {
10
10
  const httpUrlencodePathParserMiddleware = () => ({
11
11
  before: httpUrlencodePathParserMiddlewareBefore
12
12
  })
13
- module.exports = httpUrlencodePathParserMiddleware
13
+ export default httpUrlencodePathParserMiddleware
package/package.json CHANGED
@@ -1,23 +1,25 @@
1
1
  {
2
2
  "name": "@middy/http-urlencode-path-parser",
3
- "version": "2.5.6",
3
+ "version": "3.0.0-alpha.3",
4
4
  "description": "Urlencode path parser middleware for the middy framework",
5
- "type": "commonjs",
5
+ "type": "module",
6
6
  "engines": {
7
- "node": ">=12"
7
+ "node": ">=14"
8
8
  },
9
9
  "engineStrict": true,
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },
13
- "main": "index.js",
13
+ "exports": "./index.js",
14
14
  "types": "index.d.ts",
15
15
  "files": [
16
+ "index.js",
16
17
  "index.d.ts"
17
18
  ],
18
19
  "scripts": {
19
20
  "test": "npm run test:unit",
20
- "test:unit": "ava"
21
+ "test:unit": "ava",
22
+ "test:benchmark": "node __benchmarks__/index.js"
21
23
  },
22
24
  "license": "MIT",
23
25
  "keywords": [
@@ -47,7 +49,7 @@
47
49
  },
48
50
  "homepage": "https://github.com/middyjs/middy#readme",
49
51
  "devDependencies": {
50
- "@middy/core": "^2.5.6"
52
+ "@middy/core": "^3.0.0-alpha.3"
51
53
  },
52
- "gitHead": "0c789f55b4adf691f977b0d9904d1a805bb3bb2b"
54
+ "gitHead": "1441158711580313765e6d156046ef0fade0d156"
53
55
  }