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

api-routes

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

api-routes - npm Package Compare versions

Comparing version

to
0.2.1

2

lib/index.js

@@ -89,3 +89,3 @@ // api.js

debug('Exposing endpoint %s at %s %s', endpoint.name, method, url);
if (_.contains(['put', 'post', 'delete']))
if (_.contains(['put', 'post', 'delete'], method))
app[method].apply(app, editargs.concat(handler));

@@ -92,0 +92,0 @@ else

{
"name": "api-routes",
"description": "A declarative system for creating express API routes.",
"version": "0.2.0",
"version": "0.2.1",
"author": "Jon Eisen <jon.m.eisen@gmail.com>",

@@ -6,0 +6,0 @@ "scripts": {