Comparing version 3.3.0 to 3.4.0-beta.0
@@ -14,2 +14,3 @@ declare const _default: { | ||
SENDING_ENDPOINT: string; | ||
BULK_ENDPOINT: string; | ||
TESTING_ENDPOINT: string; | ||
@@ -16,0 +17,0 @@ GENERAL_ENDPOINT: string; |
@@ -16,2 +16,3 @@ "use strict"; | ||
SENDING_ENDPOINT: "https://send.api.mailtrap.io", | ||
BULK_ENDPOINT: "https://bulk.api.mailtrap.io", | ||
TESTING_ENDPOINT: "https://sandbox.api.mailtrap.io", | ||
@@ -18,0 +19,0 @@ GENERAL_ENDPOINT: "https://mailtrap.io", |
import GeneralAPI from "./api/General"; | ||
import TestingAPI from "./api/Testing"; | ||
import BulkAPI from "./api/Bulk"; | ||
import { Mail, SendResponse, MailtrapClientConfig } from "../types/mailtrap"; | ||
@@ -13,2 +14,3 @@ /** | ||
general: GeneralAPI; | ||
bulk: BulkAPI; | ||
/** | ||
@@ -15,0 +17,0 @@ * Initalizes axios instance with Mailtrap params. |
@@ -36,2 +36,3 @@ "use strict"; | ||
const Testing_1 = __importDefault(require("./api/Testing")); | ||
const Bulk_1 = __importDefault(require("./api/Bulk")); | ||
const config_1 = __importDefault(require("../config")); | ||
@@ -67,6 +68,7 @@ const { CLIENT_SETTINGS, ERRORS } = config_1.default; | ||
/** | ||
* Initialize testing API. | ||
* Initialize APIs. | ||
*/ | ||
this.testingAPI = new Testing_1.default(this.axios, this.testInboxId, this.accountId); | ||
this.general = new General_1.default(this.axios, this.accountId); | ||
this.bulk = new Bulk_1.default(this.axios); | ||
} | ||
@@ -73,0 +75,0 @@ /** |
{ | ||
"name": "mailtrap", | ||
"description": "Official mailtrap.io API client", | ||
"version": "3.3.0", | ||
"version": "3.4.0-beta.0", | ||
"author": "Railsware Products Studio LLC", | ||
@@ -6,0 +6,0 @@ "dependencies": { |
@@ -63,2 +63,9 @@ ![TypeScript](https://badgen.net/badge/icon/TypeScript/?icon=typescript&label) [![test](https://github.com/railsware/mailtrap-nodejs/actions/workflows/test.yml/badge.svg)](https://github.com/railsware/mailtrap-nodejs/actions/workflows/test.yml) | ||
### Sending API | ||
- [Advanced](examples/sending/everything.ts) | ||
- [Minimal](examples/sending/minimal.ts) | ||
- [Send email using template](examples/sending/template.ts) | ||
- [Nodemailer transport](examples/sending/transport.ts) | ||
### Email testing API | ||
@@ -70,3 +77,8 @@ | ||
- [Projects](examples/testing/projects.ts) | ||
- [Send mail using template](examples/testing/template.ts) | ||
### Bulk sending API | ||
- [Send mail](examples/bulk/send-mail.ts) | ||
### Nodemailer Transport | ||
@@ -73,0 +85,0 @@ |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
67657
71
1651
125
2