Comparing version 2.0.5 to 2.1.0
@@ -40,3 +40,6 @@ | ||
config.incomingPass, | ||
config.hideExtensions | ||
config.hideExtensions, | ||
config.incomingSecure, | ||
config.incomingCert, | ||
config.incomingKey | ||
) | ||
@@ -43,0 +46,0 @@ |
@@ -173,3 +173,6 @@ 'use strict' | ||
password, | ||
hideExtensions | ||
hideExtensions, | ||
isSecure, | ||
certFilePath, | ||
keyFilePath | ||
) { | ||
@@ -182,2 +185,5 @@ mailServer.mailDir = mailDir || defaultMailDir | ||
{ | ||
secure: isSecure, | ||
cert: certFilePath ? fs.readFileSync(certFilePath) : null, | ||
key: keyFilePath ? fs.readFileSync(keyFilePath) : null, | ||
onAuth: smtpHelpers.createOnAuthCallback(user, password), | ||
@@ -187,3 +193,3 @@ onData: handleDataStream, | ||
hideSTARTTLS: true, | ||
disabledCommands: user && password ? ['STARTTLS'] : ['AUTH'] | ||
disabledCommands: user && password ? (isSecure ? [] : ['STARTTLS']) : ['AUTH'] | ||
}, | ||
@@ -306,3 +312,4 @@ hideExtensionOptions | ||
SANITIZE_DOM: false, // ignore DOM cloberring to preserve form id/name attributes | ||
ADD_TAGS: ['link'] // allow link element to preserve external style sheets | ||
ADD_TAGS: ['link'], // allow link element to preserve external style sheets | ||
ADD_ATTR: ['target'] // Preserve explicit target attributes on links | ||
}) | ||
@@ -309,0 +316,0 @@ } |
@@ -19,2 +19,5 @@ module.exports.options = [ | ||
['--incoming-pass <pass>', 'MAILDEV_INCOMING_PASS', 'SMTP password for incoming emails'], | ||
['--incoming-secure', 'MAILDEV_INCOMING_SECURE', 'Use SMTP SSL for incoming emails', false], | ||
['--incoming-cert <path>', 'MAILDEV_INCOMING_CERT', 'Cert file location for incoming SSL'], | ||
['--incoming-key <path>', 'MAILDEV_INCOMING_KEY', 'Key file location for incoming SSL'], | ||
['--web-ip <ip address>', 'MAILDEV_WEB_IP', 'IP Address to bind HTTP service to, defaults to --ip'], | ||
@@ -21,0 +24,0 @@ ['--web-user <user>', 'MAILDEV_WEB_USER', 'HTTP user for GUI'], |
@@ -124,3 +124,3 @@ 'use strict' | ||
logger.info('MailDev webapp running at http://%s:%s', host, port) | ||
logger.info('MailDev webapp running at http://%s:%s%s', host, port, basePathname) | ||
} | ||
@@ -127,0 +127,0 @@ |
{ | ||
"name": "maildev", | ||
"description": "SMTP Server and Web Interface for reading and testing emails during development", | ||
"version": "2.0.5", | ||
"version": "2.1.0", | ||
"keywords": [ | ||
@@ -71,3 +71,3 @@ "email", | ||
"smtp-server": "3.11.0", | ||
"socket.io": "4.4.1", | ||
"socket.io": "4.6.0", | ||
"uue": "3.1.2" | ||
@@ -77,3 +77,3 @@ }, | ||
"expect": "^27.5.1", | ||
"got": "^9.6.0", | ||
"got": "^11.8.5", | ||
"http-proxy-middleware": "2.0.4", | ||
@@ -80,0 +80,0 @@ "jest": "^27.5.1", |
# MailDev | ||
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) | ||
![npm](https://img.shields.io/npm/v/maildev) | ||
![npm](https://img.shields.io/npm/dm/maildev) | ||
![Docker Pulls](https://img.shields.io/docker/pulls/maildev/maildev) | ||
![NPM](https://img.shields.io/npm/l/maildev?color=white) | ||
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-black.svg)](https://standardjs.com) | ||
> MailDev is sponsored by ⭐️ **[inngest/inngest](https://github.com/inngest/inngest)**. Inngest is an open-source, event-driven platform that makes it easy for developers to [build, test and deploy serverless functions](https://www.inngest.com/?ref=maildev) that are triggered by events. Check it out and give it a star! | ||
**MailDev** is a simple way to test your project's generated email during development, with an easy to use web interface that runs on your machine built on top of [Node.js](http://www.nodejs.org). | ||
@@ -42,2 +49,5 @@ | ||
| `--incoming-pass <pass>` | `MAILDEV_INCOMING_PASS` | SMTP password for incoming mail | | ||
| `--incoming-secure` | `MAILDEV_INCOMING_SECURE` | Use SMTP SSL for incoming emails | | ||
| `--incoming-cert <path>` | `MAILDEV_INCOMING_CERT` | Cert file location for incoming SSL | | ||
| `--incoming-key <path>` | `MAILDEV_INCOMING_KEY` | Key file location for incoming SSL | | ||
| `--web-ip <ip address>` | `MAILDEV_WEB_IP` | IP Address to bind HTTP service to, defaults to --ip | | ||
@@ -115,8 +125,8 @@ | `--web-user <user>` | `MAILDEV_WEB_USER` | HTTP user for GUI | | ||
[ | ||
{ allow: "*" }, | ||
{ deny: "*@test.com" }, | ||
{ allow: "ok@test.com" }, | ||
{ deny: "*@utah.com" }, | ||
{ allow: "johnny@utah.com" }, | ||
]; | ||
{ "allow": "*" }, | ||
{ "deny": "*@test.com" }, | ||
{ "allow": "ok@test.com" }, | ||
{ "deny": "*@utah.com" }, | ||
{ "allow": "johnny@utah.com" } | ||
] | ||
``` | ||
@@ -185,2 +195,4 @@ | ||
If you want to debug you can use the `nodemon` debug profile in VSCode. To change arguments or environment variables edit the `.vscode\launch.json`. | ||
The project uses the [JavaScript Standard coding style](https://standardjs.com). | ||
@@ -187,0 +199,0 @@ To lint your code before submitting your PR, run `npm run lint`. |
@@ -6,6 +6,6 @@ /** | ||
* https://github.com/nodemailer/libmime/blob/v3.1.0/lib/charsets.js | ||
* Copyright (c) 2014-2017 Andris Reinman | ||
* Copyright (c) 2014-2023 Andris Reinman | ||
* | ||
* Modifications: | ||
* Copyright (c) 2017 Ross Johnson | ||
* Copyright (c) 2023 Ross Johnson | ||
* | ||
@@ -12,0 +12,0 @@ * MIT licensed. |
@@ -6,6 +6,6 @@ /** | ||
* https://github.com/andris9/encoding/blob/master/lib/iconv-loader.js | ||
* Copyright (c) 2012-2014 Andris Reinman | ||
* Copyright (c) 2012-2023 Andris Reinman | ||
* | ||
* Modifications: | ||
* Copyright (c) 2017 Ross Johnson | ||
* Copyright (c) 2023 Ross Johnson | ||
* | ||
@@ -12,0 +12,0 @@ * MIT licensed. |
@@ -6,6 +6,6 @@ /** | ||
* https://github.com/nodemailer/libmime/blob/v3.1.0/lib/charset.js | ||
* Copyright (c) 2014-2017 Andris Reinman | ||
* Copyright (c) 2014-2023 Andris Reinman | ||
* | ||
* Modifications: | ||
* Copyright (c) 2017 Ross Johnson | ||
* Copyright (c) 2023 Ross Johnson | ||
* | ||
@@ -12,0 +12,0 @@ * MIT licensed. |
@@ -7,3 +7,3 @@ "use strict"; | ||
* This is version: 3.18 | ||
* php.js is copyright 2010 Kevin van Zonneveld. | ||
* php.js is copyright 2023 Kevin van Zonneveld. | ||
* | ||
@@ -10,0 +10,0 @@ * Portions copyright Brett Zamir (http://brett-zamir.me), Kevin van Zonneveld |
@@ -6,6 +6,6 @@ /** | ||
* https://github.com/nodemailer/libmime/blob/v3.1.0/lib/libmime.js | ||
* Copyright (c) 2014-2017 Andris Reinman | ||
* Copyright (c) 2014-2023 Andris Reinman | ||
* | ||
* Modifications: | ||
* Copyright (c) 2017 Ross Johnson | ||
* Copyright (c) 2023 Ross Johnson | ||
* | ||
@@ -12,0 +12,0 @@ * MIT licensed. |
@@ -6,6 +6,6 @@ /** | ||
* https://github.com/nodemailer/libqp/blob/v1.1.0/lib/libqp.js | ||
* Copyright (c) 2014 Andris Reinman | ||
* Copyright (c) 2023 Andris Reinman | ||
* | ||
* Modifications: | ||
* Copyright (c) 2017 Ross Johnson | ||
* Copyright (c) 2023 Ross Johnson | ||
* | ||
@@ -12,0 +12,0 @@ * MIT licensed. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4615157
83
28166
222
+ Added@socket.io/component-emitter@3.1.2(transitive)
+ Addedengine.io@6.4.2(transitive)
+ Addedsocket.io@4.6.0(transitive)
+ Addedsocket.io-adapter@2.5.5(transitive)
+ Addedsocket.io-parser@4.2.4(transitive)
+ Addedws@8.11.08.17.1(transitive)
- Removed@types/component-emitter@1.2.14(transitive)
- Removedcomponent-emitter@1.3.1(transitive)
- Removedengine.io@6.1.3(transitive)
- Removedsocket.io@4.4.1(transitive)
- Removedsocket.io-adapter@2.3.3(transitive)
- Removedsocket.io-parser@4.0.5(transitive)
- Removedws@8.2.3(transitive)
Updatedsocket.io@4.6.0