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

@middy/http-router

Package Overview
Dependencies
Maintainers
3
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@middy/http-router - npm Package Compare versions

Comparing version 3.3.1 to 3.3.2

6

index.js

@@ -37,4 +37,4 @@ import { createError } from '@middy/util';

};
const regexpDynamicWildcards = /\/\{proxy\+\}/g;
const regexpDynamicParameters = /\/\{.+\}/g;
const regexpDynamicWildcards = /\/\{proxy\+\}$/;
const regexpDynamicParameters = /\/\{[^/]+\}/g;
const methods = [

@@ -70,3 +70,3 @@ 'GET',

}
path = path.replace(regexpDynamicWildcards, '/?.*').replace(regexpDynamicParameters, '/.+');
path = path.replace(regexpDynamicWildcards, '/?.*').replace(regexpDynamicParameters, '/[^/]+');
path = new RegExp(`^${path}$`);

@@ -73,0 +73,0 @@ routesType[method].push({

{
"name": "@middy/http-router",
"version": "3.3.1",
"version": "3.3.2",
"description": "HTTP event router for the middy framework",

@@ -65,9 +65,9 @@ "type": "module",

"dependencies": {
"@middy/util": "3.3.1"
"@middy/util": "3.3.2"
},
"devDependencies": {
"@middy/core": "3.3.1",
"@middy/core": "3.3.2",
"@types/aws-lambda": "^8.10.97"
},
"gitHead": "513a8d0c1bc9d647552fa16b42004bad4eee07ee"
"gitHead": "5fcd6655e7f076615c2dcb877a36f6c4fc3164d3"
}

Sorry, the diff of this file is not supported yet

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