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

node-mailjet

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-mailjet - npm Package Compare versions

Comparing version 3.3.3 to 3.3.4

4

mailjet-client.js

@@ -196,3 +196,3 @@ /*

}
setOptions(options)

@@ -209,3 +209,3 @@ self.apiKey = apiKey

}
self.apiToken = apiToken

@@ -212,0 +212,0 @@ return self

{
"name": "node-mailjet",
"version": "3.3.3",
"version": "3.3.4",
"description": "Mailjet NodeJS API client",

@@ -13,11 +13,11 @@ "main": "index.js",

"qs": "^6.5.0",
"superagent": "^3.5.2",
"superagent-proxy": "^1.0.2"
"superagent": "^6.1.0",
"superagent-proxy": "^2.1.0"
},
"devDependencies": {
"@segment/to-iso-string": "^1.0.1",
"chai": "^4.1.0",
"mocha": "^5.2.0",
"nock": "^9.0.14",
"@segment/to-iso-string": "^1.0.1",
"eslint": "^4.2.0"
"eslint": "^4.2.0",
"mocha": "^8.4.0",
"nock": "^9.0.14"
},

@@ -24,0 +24,0 @@ "scripts": {

@@ -21,27 +21,27 @@ /* global describe, it */

describe("no auth data provided", function () {
it("no api key provided", function () {
describe('no auth data provided', function () {
it('no api key provided', function () {
try {
Mailjet.connect();
Mailjet.connect()
} catch (error) {
expect(error.message).to.equal("Mailjet API_KEY is required");
expect(error.message).to.equal('Mailjet API_KEY is required')
}
});
})
it("no api secret provided", function () {
it('no api secret provided', function () {
try {
Mailjet.connect(null, { url: "api.mailjet.com" });
Mailjet.connect(null, { url: 'api.mailjet.com' })
} catch (error) {
expect(error.message).to.equal("Mailjet API_TOKEN is required");
expect(error.message).to.equal('Mailjet API_TOKEN is required')
}
});
})
it("no api api token provided", function () {
it('no api api token provided', function () {
try {
Mailjet.connect("1234");
Mailjet.connect('1234')
} catch (error) {
expect(error.message).to.equal("Mailjet API_SECRET is required");
expect(error.message).to.equal('Mailjet API_SECRET is required')
}
});
});
})
})

@@ -189,2 +189,2 @@ describe('invalid token', function () {

})
})
})
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