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

regex-router

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

regex-router - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

4

main.js

@@ -11,4 +11,4 @@ #!/usr/bin/env node

route = this.routes[i];
if (route.method === undefined || route.method === req.method.toLowerCase()) {
m = req.url.match(route.url);
if (route.http_method === undefined || route.http_method === req.method.toLowerCase()) {
m = req.url.match(route.regex);
if (m) {

@@ -15,0 +15,0 @@ return route.func(m, req, res);

@@ -11,5 +11,5 @@ {

"keywords": ["http", "web server", "regex", "routes"],
"version": "0.1.1",
"version": "0.1.2",
"author": "Christopher Brown <io@henrian.com>",
"engines": { "node": ">= 0.4.0" }
}
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