smtp-server-as-promised
Advanced tools
Comparing version 0.0.1 to 0.1.0
# Changelog | ||
## v0.1.0 2017-04-10 | ||
* Use the lastest `smtp-server` module on MIT license. | ||
* `new Buffer()` is obsoleted. | ||
## v0.0.1 2017-03-16 | ||
* Initial release |
'use strict' | ||
const SMTPServer = require('smtp-server-mit').SMTPServer | ||
const SMTPServer = require('smtp-server').SMTPServer | ||
@@ -5,0 +5,0 @@ // Usage: node server.js opt1=value1 opt2=value2... |
'use strict' | ||
const SMTPServer = require('smtp-server-mit').SMTPServer | ||
const SMTPServer = require('smtp-server').SMTPServer | ||
@@ -5,0 +5,0 @@ const Promise = require('any-promise') |
{ | ||
"name": "smtp-server-as-promised", | ||
"version": "0.0.1", | ||
"description": "Promisify smtp-server-mit module", | ||
"version": "0.1.0", | ||
"description": "Promisify smtp-server module", | ||
"main": "lib/smtp-server-as-promised.js", | ||
@@ -27,3 +27,3 @@ "repository": { | ||
"promise-readable": "^0.4.2", | ||
"smtp-server-mit": "^1.17.1" | ||
"smtp-server": "^3.0.1" | ||
}, | ||
@@ -33,9 +33,9 @@ "devDependencies": { | ||
"chai-as-promised": "^6.0.0", | ||
"nyc": "^10.1.2", | ||
"nyc": "^10.2.0", | ||
"onchange": "^3.2.1", | ||
"promise-socket": "^0.0.1", | ||
"snazzy": "^6.0.0", | ||
"standard": "^9.0.1", | ||
"tap": "^10.3.0", | ||
"tap-given": "^0.2.0" | ||
"snazzy": "^7.0.0", | ||
"standard": "^10.0.1", | ||
"tap": "^10.3.2", | ||
"tap-given": "^0.4.0" | ||
}, | ||
@@ -47,2 +47,13 @@ "scripts": { | ||
}, | ||
"standard": { | ||
"globals": [ | ||
"After", | ||
"And", | ||
"Feature", | ||
"Given", | ||
"Scenario", | ||
"Then", | ||
"When" | ||
] | ||
}, | ||
"nyc": { | ||
@@ -49,0 +60,0 @@ "exclude": [] |
@@ -5,4 +5,4 @@ ## smtp-server-as-promised | ||
This module provides promisified version of [`smtp-server-mit`](https://www.npmjs.com/package/smtp-server-mit) module. The | ||
API is the same as for `smtp-server-mit`, except `listen` method which return | ||
This module provides promisified version of [`smtp-server`](https://www.npmjs.com/package/smtp-server) module. The | ||
API is the same as for `smtp-server`, except `listen` method which return | ||
[`Promise`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) | ||
@@ -27,3 +27,3 @@ object and callback options which are `Promise` objects. | ||
`smtp-server-as-promised` can be used like standard `smtp-server-mit` module: | ||
`smtp-server-as-promised` can be used like standard `smtp-server` module: | ||
@@ -52,3 +52,3 @@ ```js | ||
Options are the same as for original `smtp-server-mit` constructor, except that | ||
Options are the same as for original `smtp-server` constructor, except that | ||
callback handlers are `Promise` objects or `async` functions: | ||
@@ -55,0 +55,0 @@ |
'use strict' | ||
/* global Feature, Scenario, Given, When, Then, After */ | ||
const t = require('tap') | ||
@@ -36,3 +35,3 @@ require('tap-given')(t) | ||
const authPlainString = new Buffer('\0username\0password').toString('base64') | ||
const authPlainString = Buffer.from('\0username\0password').toString('base64') | ||
@@ -47,3 +46,3 @@ Scenario('Receive one mail', function () { | ||
Given('Socket object as a promise', () => { | ||
And('Socket object as a promise', () => { | ||
this.client = new PromiseSocket() | ||
@@ -56,3 +55,3 @@ }) | ||
When('promise returns address object', () => { | ||
And('promise returns address object', () => { | ||
return this.promise.then(address => { | ||
@@ -131,3 +130,3 @@ this.address = address | ||
When('I send an dot command', () => { | ||
And('I send an dot command', () => { | ||
return this.client.write('.' + crlf) | ||
@@ -134,0 +133,0 @@ }) |
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
17737
287
+ Addedsmtp-server@^3.0.1
+ Addedbase32.js@0.1.0(transitive)
+ Addednodemailer@6.9.15(transitive)
+ Addedpunycode.js@2.3.1(transitive)
+ Addedsmtp-server@3.13.6(transitive)
- Removedsmtp-server-mit@^1.17.1
- Removedsmtp-server-mit@1.17.1(transitive)