node-mailjet
Advanced tools
Comparing version 3.3.3 to 3.3.4
@@ -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 () { | ||
}) | ||
}) | ||
}) |
9235
317812
+ Added@tootallnate/once@1.1.2(transitive)
+ Addedagent-base@6.0.2(transitive)
+ Addedast-types@0.13.4(transitive)
+ Addeddata-uri-to-buffer@3.0.1(transitive)
+ Addeddebug@4.4.0(transitive)
+ Addeddegenerator@2.2.0(transitive)
+ Addedfast-safe-stringify@2.1.1(transitive)
+ Addedfile-uri-to-path@2.0.0(transitive)
+ Addedform-data@3.0.2(transitive)
+ Addedfs-extra@8.1.0(transitive)
+ Addedget-uri@3.0.2(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedhttp-proxy-agent@4.0.1(transitive)
+ Addedhttps-proxy-agent@5.0.1(transitive)
+ Addedip-address@9.0.5(transitive)
+ Addedjsbn@1.1.0(transitive)
+ Addedjsonfile@4.0.0(transitive)
+ Addedlru-cache@5.1.1(transitive)
+ Addedmime@2.6.0(transitive)
+ Addednetmask@2.0.2(transitive)
+ Addedpac-proxy-agent@4.1.0(transitive)
+ Addedpac-resolver@4.2.0(transitive)
+ Addedproxy-agent@4.0.1(transitive)
+ Addedreadable-stream@3.6.2(transitive)
+ Addedsemver@7.6.3(transitive)
+ Addedsmart-buffer@4.2.0(transitive)
+ Addedsocks@2.8.3(transitive)
+ Addedsocks-proxy-agent@5.0.1(transitive)
+ Addedsprintf-js@1.1.3(transitive)
+ Addedstring_decoder@1.3.0(transitive)
+ Addedsuperagent@6.1.0(transitive)
+ Addedsuperagent-proxy@2.1.0(transitive)
+ Addeduniversalify@0.1.2(transitive)
+ Addedyallist@3.1.1(transitive)
- Removedagent-base@4.3.0(transitive)
- Removedast-types@0.16.1(transitive)
- Removedco@4.6.0(transitive)
- Removeddata-uri-to-buffer@1.2.0(transitive)
- Removeddebug@2.6.93.1.0(transitive)
- Removeddegenerator@1.0.4(transitive)
- Removedes6-promise@4.2.8(transitive)
- Removedes6-promisify@5.0.0(transitive)
- Removedesprima@3.1.3(transitive)
- Removedextend@3.0.2(transitive)
- Removedfile-uri-to-path@1.0.0(transitive)
- Removedform-data@2.5.2(transitive)
- Removedget-uri@2.0.4(transitive)
- Removedhttp-proxy-agent@2.1.0(transitive)
- Removedhttps-proxy-agent@2.2.4(transitive)
- Removedisarray@1.0.0(transitive)
- Removedlru-cache@4.1.5(transitive)
- Removedmime@1.6.0(transitive)
- Removedms@2.0.0(transitive)
- Removednetmask@1.0.6(transitive)
- Removedpac-proxy-agent@2.0.2(transitive)
- Removedpac-resolver@3.0.0(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedproxy-agent@2.3.1(transitive)
- Removedpseudomap@1.0.2(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedsmart-buffer@1.1.15(transitive)
- Removedsocks@1.1.10(transitive)
- Removedsocks-proxy-agent@3.0.1(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedsuperagent@3.8.3(transitive)
- Removedsuperagent-proxy@1.0.3(transitive)
- Removedthunkify@2.1.2(transitive)
- Removedyallist@2.1.2(transitive)
Updatedsuperagent@^6.1.0
Updatedsuperagent-proxy@^2.1.0