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

test-smtp-server

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

test-smtp-server - npm Package Compare versions

Comparing version 0.9.4 to 0.9.6

4

build/lib/test-smtp-server.d.ts

@@ -26,3 +26,3 @@ /// <reference types="node" />

*/
export declare type testSmtpServerOptions = {
export type testSmtpServerOptions = {
/** the port number to use (default: 1025) */

@@ -55,3 +55,3 @@ smtpPort?: number;

/**
* Retrieve the set of emails in order from latest to oldest.
* Retrieve the set of emails in order from oldest to most recent.
*

@@ -58,0 +58,0 @@ * @returns array of eMail objects

@@ -93,3 +93,3 @@ "use strict";

const email = new eMail(session.envelope, buffer);
that.emails.unshift(email);
that.emails.push(email);
if (that.isDebugging) {

@@ -122,3 +122,3 @@ that.debug(JSON.stringify(email, (key, value) => {

/**
* Retrieve the set of emails in order from latest to oldest.
* Retrieve the set of emails in order from oldest to most recent.
*

@@ -125,0 +125,0 @@ * @returns array of eMail objects

{
"name": "test-smtp-server",
"version": "0.9.4",
"version": "0.9.6",
"description": "The test-smtp-server package allows internal testing of projects needing an SMTP server.",

@@ -47,16 +47,16 @@ "main": "./build/lib/test-smtp-server.js",

"devDependencies": {
"@types/nodemailer": "^6.4.4",
"@types/nodemailer": "^6.4.7",
"@types/smtp-server": "^3.5.7",
"@typescript-eslint/eslint-plugin": "^5.29.0",
"@typescript-eslint/parser": "^5.29.0",
"commander": "^9.3.0",
"eslint": "^8.18.0",
"@typescript-eslint/eslint-plugin": "^5.47.0",
"@typescript-eslint/parser": "^5.47.0",
"commander": "^9.4.1",
"eslint": "^8.30.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-jsdoc": "^39.3.3",
"eslint-plugin-jsdoc": "^39.6.4",
"nodemailer": "^6.7.5",
"typescript": "^4.7.4"
"typescript": "^4.9.4"
},
"dependencies": {
"@types/mailparser": "^3.4.0",
"mailparser": "^3.5.0",
"mailparser": "^3.6.2",
"smtp-server": "^3.11.0"

@@ -63,0 +63,0 @@ },

@@ -7,3 +7,4 @@ # Test SMTP Server

All received emails are stored in an array. The emails may be viewed as raw data or a parsed object that is easily examined.
All received emails are stored in an array in the order received. The emails
may be viewed as raw data or a parsed object that is easily examined.

@@ -35,4 +36,5 @@ ## Getting Started

// send some emails capturing ids ..
messageId.unshift( await sendMail(email, smtpOptions));
messageId.push( await sendMail(email, smtpOptions));
// get emails in sent order
const mails = smtpserver.getEmails();

@@ -39,0 +41,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