mirror of
https://github.com/nodemailer/wildduck.git
synced 2024-09-20 07:16:05 +08:00
v1.37.2
This commit is contained in:
parent
7cc5b2b75c
commit
35d7dff0da
|
@ -5,7 +5,17 @@ const log = require('npmlog');
|
||||||
const PluginHandler = require('zone-mta/lib/plugin-handler');
|
const PluginHandler = require('zone-mta/lib/plugin-handler');
|
||||||
const db = require('./db');
|
const db = require('./db');
|
||||||
|
|
||||||
module.exports.handler = false;
|
module.exports.handler = {
|
||||||
|
// dummy handler
|
||||||
|
runHooks(...args) {
|
||||||
|
if (args.length && typeof args[args.length - 1] === 'function') {
|
||||||
|
args[args.length - 1]();
|
||||||
|
}
|
||||||
|
|
||||||
|
// assume promise
|
||||||
|
return new Promise(resolve => setImmediate(resolve));
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
module.exports.init = context => {
|
module.exports.init = context => {
|
||||||
module.exports.handler = new PluginHandler({
|
module.exports.handler = new PluginHandler({
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "wildduck",
|
"name": "wildduck",
|
||||||
"version": "1.37.1",
|
"version": "1.37.2",
|
||||||
"description": "IMAP/POP3 server built with Node.js and MongoDB",
|
"description": "IMAP/POP3 server built with Node.js and MongoDB",
|
||||||
"main": "server.js",
|
"main": "server.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
Loading…
Reference in a new issue