@splitmedialabs/supermailer-node
Advanced tools
Comparing version 4.0.1 to 5.0.0
{ | ||
"name": "@splitmedialabs/supermailer-node", | ||
"version": "5.0.0", | ||
"description": "Node JS library for Supermailer.", | ||
"version": "4.0.1", | ||
"license": "MIT", | ||
"repository": "https://github.com/SplitmediaLabsLimited/supermailer-node", | ||
"homepage": "https://github.com/SplitmediaLabsLimited/supermailer-node", | ||
"bugs": "https://github.com/SplitmediaLabsLimited/supermailer-node/issues", | ||
"repository": "https://github.com/SplitmediaLabsLimited/supermailer-node", | ||
"license": "MIT", | ||
"main": "index.js", | ||
"engines": { | ||
"node": ">= 8" | ||
}, | ||
"types": "index.d.ts", | ||
"scripts": { | ||
"test": "TZ=UTC jest --watch", | ||
"pushpublish": "git push && npm publish" | ||
"pushpublish": "git push && npm publish", | ||
"test": "TZ=UTC jest --watch" | ||
}, | ||
"jest": { | ||
"testEnvironment": "node" | ||
}, | ||
"dependencies": { | ||
"axios": "^0.18.0", | ||
"query-string": "^6.4.2" | ||
"axios": "^0.26.0", | ||
"query-string": "^7.1.1" | ||
}, | ||
@@ -26,5 +27,6 @@ "devDependencies": { | ||
}, | ||
"jest": { | ||
"testEnvironment": "node" | ||
"volta": { | ||
"node": "18.17.1", | ||
"yarn": "1.22.18" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
module.exports.argsValidation = function() { | ||
module.exports.argsValidation = function () { | ||
const args = this; | ||
@@ -3,0 +3,0 @@ const functionName = args.callee.name; |
@@ -12,9 +12,4 @@ module.exports = async function sendTransactional(payload) { | ||
try { | ||
const response = await this.api.post('/api/supermailer/transactionals/send', payload); | ||
return response.data; | ||
} catch (error) { | ||
console.log(error); | ||
return false; | ||
} | ||
const response = await this.api.post('/api/supermailer/transactionals/send', payload); | ||
return response.data; | ||
}; |
@@ -28,3 +28,3 @@ const Recipient = require('../Recipient'); | ||
this.Recipient = function(email) { | ||
this.Recipient = function (email) { | ||
if (typeof email !== 'string') { | ||
@@ -31,0 +31,0 @@ throw new Error('You need to pass an email string as the only parameter to this function.'); |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
20306
30
471
0
+ Addedaxios@0.26.1(transitive)
+ Addedfollow-redirects@1.15.9(transitive)
+ Addedquery-string@7.1.3(transitive)
- Removedaxios@0.18.1(transitive)
- Removedfollow-redirects@1.5.10(transitive)
- Removedis-buffer@2.0.5(transitive)
- Removedquery-string@6.14.1(transitive)
Updatedaxios@^0.26.0
Updatedquery-string@^7.1.1