Socket
Socket
Sign inDemoInstall

mailgun

Package Overview
Dependencies
0
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.0 to 0.4.1

12

package.json
{
"name": "mailgun",
"version": "0.4.0",
"description": "Node.js interface to the Mailgun API",
"version": "0.4.1",
"description": "Mailgun for Node.js",
"author": "shz",
"repositories": [{
"repository": {
"type": "git",
"url": "git@github.com:shz/node-mailgun.git"
}],
"main": "./mailgun"
},
"main": "./mailgun",
"homepage": "http://github.com/shz/mailgun",
"engine": "node"
}

@@ -153,8 +153,21 @@ # node-mailgun

### createRoute
TODO
Creates a new route. TODO - more docs
`createRoute(pattern, destination, callback(err, id))`
TODO - document arguments
### deleteRoute
Deletes a route if it exists, otherwise fails silently.
Deletes the route with the specified ID if it exists, otherwise fails silently.
`deleteRoute(id, callback(err))`
* id - Route ID, as returned by `getRoutes()` or `createRoute`.
* Callback to be fired when the deletion is completed. This callback
takes a single argument, `err`, that will be set to an Error object
if something went wrong with the deletion. If the deletion succeeded, or
no route existed with the specified ID, `err` will be `undefined`.
### getRoutes

@@ -161,0 +174,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc