mailgun-js
Advanced tools
Comparing version 0.10.1 to 0.11.1
@@ -627,2 +627,14 @@ module.exports = { | ||
{ | ||
"description": "List all tags.", | ||
"href": "/tags", | ||
"method": "GET", | ||
"title": "list" | ||
}, | ||
{ | ||
"description": "Gets a specific tag.", | ||
"href": "/tags/{tag}", | ||
"method": "GET", | ||
"title": "info" | ||
}, | ||
{ | ||
"description": "Deletes all counters for particular tag and the tag itself.", | ||
@@ -629,0 +641,0 @@ "href": "/tags/{tag}", |
(The MIT License) | ||
Copyright (c) 2012 - 2014 OneLobby <http://www.onelobby.com> | ||
Copyright (c) 2012 - 2017 OneLobby and Bojan D. | ||
@@ -22,2 +22,2 @@ Permission is hereby granted, free of charge, to any person obtaining | ||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
@@ -8,3 +8,3 @@ { | ||
], | ||
"version": "0.10.1", | ||
"version": "0.11.1", | ||
"homepage": "https://github.com/bojand/mailgun-js", | ||
@@ -24,3 +24,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"async": "~2.3.0", | ||
"async": "~2.4.0", | ||
"debug": "~2.6.0", | ||
@@ -36,3 +36,3 @@ "form-data": "~2.1.1", | ||
"author": { | ||
"name": "Bojan Djurkovic <bojan@onelobby.com>" | ||
"name": "Bojan Djurkovic <dbojan@gmail.com>" | ||
}, | ||
@@ -42,3 +42,3 @@ "devDependencies": { | ||
"mailcomposer": "~2.1.0", | ||
"mocha": "~3.2.0", | ||
"mocha": "~3.4.0", | ||
"request": "^2.67.0" | ||
@@ -48,8 +48,3 @@ }, | ||
"test": "mocha", | ||
"docs:api": "./bin/docs", | ||
"docs:clean": "rm -rf _book", | ||
"docs:prepare": "gitbook install", | ||
"docs:build": "npm run docs:api && npm run docs:prepare && npm run docs:clean && gitbook build", | ||
"docs:watch": "npm run docs:api && npm run docs:prepare && gitbook serve", | ||
"docs:publish": "npm run docs:build && cd _book && git init && git commit --allow-empty -m 'Update docs' && git checkout -b gh-pages && git add . && git commit -am 'Update docs' && git push https://github.com/bojand/mailgun-js.git gh-pages --force" | ||
"docs": "./bin/docs" | ||
}, | ||
@@ -56,0 +51,0 @@ "directories": { |
@@ -86,3 +86,4 @@ # mailgun.js | ||
* `apiKey` - Your Mailgun API KEY | ||
* `domain` - Your Mailgun Domain (Please note: domain field is MY-DOMAIN-NAME.com, not https://api.mailgun.net/v3/MY-DOMAIN-NAME.com) | ||
* `publicApiKey` - Your public Mailgun API KEY | ||
* `domain` - Your Mailgun Domain (Please note: domain field is `MY-DOMAIN-NAME.com`, not https://api.mailgun.net/v3/MY-DOMAIN-NAME.com) | ||
* `mute` - Set to `true` if you wish to mute the console error logs in `validateWebhook()` function | ||
@@ -435,4 +436,4 @@ * `proxy` - The proxy URI in format `http[s]://[auth@]host:port`. ex: `'http://proxy.example.com:8080'` | ||
Copyright 2012, 2013, 2014 OneLobby | ||
Copyright (c) 2012 - 2017 OneLobby and Bojan D. | ||
Licensed under the MIT License. |
@@ -1075,4 +1075,20 @@ var auth = require('./auth.json'); | ||
'test mailgun.tags().list()': function (done) { | ||
mailgun.tags().list(function (err, body) { | ||
assert.ifError(err); | ||
assert.ok(body); | ||
done(); | ||
}); | ||
}, | ||
'test mailgun.tags().info()': function (done) { | ||
mailgun.tags('tag1').info(function (err, body) { | ||
assert.ifError(err); | ||
assert.ok(body); | ||
done(); | ||
}); | ||
}, | ||
'test mailgun.tags().delete()': function (done) { | ||
mailgun.tags('newsletter').delete(function (err, body) { | ||
mailgun.tags('tag1').delete(function (err, body) { | ||
assert.ifError(err); | ||
@@ -1079,0 +1095,0 @@ assert.ok(body.message); |
2518
438
112317
15
+ Addedasync@2.4.1(transitive)
- Removedasync@2.3.0(transitive)
Updatedasync@~2.4.0