@anabode/notifier_service
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -14,3 +14,4 @@ var AWS = require('aws-sdk'); | ||
SMS_Emailer.prototype.sendEmail = function (input, callback) { | ||
this.ses.sendEmail(input, (err, data) => { | ||
var _input = input; | ||
this.ses.sendEmail(_input, (err, data) => { | ||
return callback(err, data); | ||
@@ -21,8 +22,8 @@ }); | ||
SMS_Emailer.prototype.sendSMS = function (input, callback) { | ||
this.sns.publish(input, | ||
(err, data) => { | ||
var _input = input; | ||
this.sns.publish(_input, (err, data) => { | ||
return callback(err, data); | ||
}) | ||
}); | ||
} | ||
module.exports = exports = SMS_Emailer; |
{ | ||
"name": "@anabode/notifier_service", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "ses, sns abstractors for notifying and user push notifications", | ||
@@ -12,3 +12,3 @@ "main": "index.js", | ||
"SES", | ||
"SNS" | ||
"SNS","Anabode Helper library" | ||
], | ||
@@ -20,2 +20,2 @@ "author": "DusanN <nitschneiderd@gmail.com>", | ||
} | ||
} | ||
} |
1599
23