Comparing version 5.4.1 to 5.4.2
# Change Log | ||
## v5.4.2 (2020/09/17) | ||
- **Fix:** Path matching for `aws` handler [docs](https://github.com/simov/grant-aws#routes) | ||
## v5.4.1 (2020/09/14) | ||
- **Fix:** Improved path mathching for `aws` | ||
- **Fix:** Improved path mathching for `aws` handler + support for event format v2 | ||
- **New:** Official support for 2 new providers: `autodesk`, `storyblok` | ||
@@ -7,0 +10,0 @@ - **Change:** Renamed `zeit` to `vercel` |
@@ -48,12 +48,5 @@ | ||
var custom = (ctx) => | ||
ctx.domainPrefix !== ctx.apiId || !ctx.domainName.startsWith(ctx.apiId) | ||
var path = ({version, path, rawPath, requestContext:ctx} = event) => | ||
version === '2.0' | ||
? custom(ctx) ? rawPath.replace(`/${ctx.stage}`, '') | ||
: rawPath : | ||
version === '1.0' | ||
? path | ||
: ctx.path | ||
version === '2.0' ? rawPath : | ||
version === '1.0' ? path : ctx.path | ||
@@ -60,0 +53,0 @@ var body = ({body, isBase64Encoded} = event) => |
{ | ||
"name": "grant", | ||
"version": "5.4.1", | ||
"version": "5.4.2", | ||
"description": "OAuth Proxy", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
156530
3199