Skip to content

Commit

Permalink
Correct exports
Browse files Browse the repository at this point in the history
  • Loading branch information
dex4er committed Oct 4, 2017
1 parent 9c36e87 commit 61063e6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,9 @@
# Changelog

## v1.0.1 2017-10-03

* Correct exports.

## v1.0.0 2017-10-03

* `SMTPServerAsPromised` no more extends `SMTPServer`. The `SMTPServer`
Expand Down
7 changes: 6 additions & 1 deletion lib/smtp-server-as-promised.js
Expand Up @@ -5,7 +5,7 @@ const SMTPServer = require('smtp-server').SMTPServer
const Promise = require('any-promise')
const PromiseReadable = require('promise-readable')

module.exports.SMTPServerAsPromised = class SMTPServerAsPromised {
class SMTPServerAsPromised {
constructor (options) {
options = options || {}
this.options = options
Expand Down Expand Up @@ -78,3 +78,8 @@ module.exports.SMTPServerAsPromised = class SMTPServerAsPromised {
})
}
}

SMTPServerAsPromised.SMTPServerAsPromised = SMTPServerAsPromised
SMTPServerAsPromised.default = SMTPServerAsPromised

module.exports = SMTPServerAsPromised
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "smtp-server-as-promised",
"version": "1.0.0",
"version": "1.0.1",
"description": "Promisify smtp-server module",
"main": "lib/smtp-server-as-promised.js",
"typings": "lib/smtp-server-as-promised.d.ts",
Expand Down

0 comments on commit 61063e6

Please sign in to comment.