Socket
Socket
Sign inDemoInstall

gcf-api-router

Package Overview
Dependencies
1
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

4

index.js

@@ -87,5 +87,3 @@ const pathToRegexp = require('path-to-regexp');

function findRequestHandlers(req, routes) {
let path = req.params[0].charAt(0) !== '/'
? '/' + req.params[0]
: req.params[0];
let path = req.path || '/';
for (let route of routes) {

@@ -92,0 +90,0 @@ let match = route.pathRegex.exec(path);

{
"name": "gcf-api-router",
"version": "1.0.0",
"version": "1.0.1",
"description": "Express-style API router for Google Cloud Functions",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc