Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grant

Package Overview
Dependencies
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grant - npm Package Compare versions

Comparing version 5.4.1 to 5.4.2

5

CHANGELOG.md
# 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`

11

lib/handler/aws.js

@@ -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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc