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

mailtrap

Package Overview
Dependencies
Maintainers
0
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mailtrap - npm Package Compare versions

Comparing version 3.3.0 to 3.4.0-beta.0

dist/lib/api/Bulk.d.ts

1

dist/config/index.d.ts

@@ -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.

4

dist/lib/MailtrapClient.js

@@ -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 @@

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