New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

routr

Package Overview
Dependencies
Maintainers
5
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

routr - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

docs/routr.md

4

lib/router.js

@@ -38,3 +38,3 @@ /**

//TODO support array for method, ['get', 'post']
return method === this.config.method;
return (method && method.toLowerCase()) === (this.config.method && this.config.method.toLowerCase());
};

@@ -68,3 +68,3 @@

// 1. check method
var method = (options.method && options.method.toLowerCase()) || METHODS.GET;
var method = options.method || METHODS.GET;
if (!self.acceptMethod(method)) {

@@ -71,0 +71,0 @@ return null;

{
"name": "routr",
"version": "0.1.0",
"version": "0.1.1",
"description": "A router for both server and client",

@@ -28,3 +28,3 @@ "main": "index.js",

"devDependencies": {
"chai": "^1.9.1",
"chai": "^2.0.0",
"coveralls": "^2.11.1",

@@ -34,3 +34,3 @@ "istanbul": "^0.3.2",

"mocha": "^2.0.1",
"precommit-hook": "^1.0.2"
"precommit-hook": "^2.0.1"
},

@@ -37,0 +37,0 @@ "jshintConfig": {

@@ -86,2 +86,6 @@ # Routr

## API
- [Routr](https://github.com/yahoo/routr/blob/master/docs/routr.md)
## License

@@ -88,0 +92,0 @@

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