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

autoroute-express-promise

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autoroute-express-promise - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

0

index.js

@@ -0,0 +0,0 @@ /// <reference path="typings/typings.d.ts" />

2

package.json
{
"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

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