autoroute-express-promise
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -0,0 +0,0 @@ /// <reference path="typings/typings.d.ts" /> |
{ | ||
"name": "autoroute-express-promise", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "autoroute for use with promises", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -74,11 +74,4 @@ # Auto-route Express Promise | ||
methods: [ | ||
[ | ||
method.get, | ||
(req: Request) => getPet(req.params[ID]) | ||
], | ||
[ | ||
method.delete, | ||
(req: Request) => petDied(req.params[ID]) | ||
] | ||
] | ||
[ method.get, (req: Request) => getPet(req.params[ID]) ], | ||
[ method.delete, (req: Request) => petDied(req.params[ID]) ] ] | ||
} | ||
@@ -100,23 +93,10 @@ | ||
var routes: AutoRouteExpressPromise.RouteDefinition[] = [ | ||
{ | ||
route: PETS, | ||
methods: [ | ||
[ | ||
method.post, | ||
(req: Request) => getPet(req.body) | ||
] | ||
] | ||
{ route: PETS, | ||
methods: [ | ||
[ method.post, (req: Request) => getPet(req.body) ] ] | ||
}, | ||
{ | ||
route: PET, | ||
methods: [ | ||
[ | ||
method.get, | ||
(req: Request) => getPet(req.params[ID]) | ||
], | ||
[ | ||
method.delete, | ||
(req: Request) => petDied(req.params[ID]) | ||
] | ||
] | ||
{ route: PET, | ||
methods: [ | ||
[ method.get, (req: Request) => getPet(req.params[ID]) ], | ||
[ method.delete, (req: Request) => petDied(req.params[ID]) ] ] | ||
} | ||
@@ -187,2 +167,2 @@ ] | ||
method[0] // => "get" | ||
``` | ||
``` |
Sorry, the diff of this file is not supported yet
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
0
6115
4
166