diff --git a/infrastructure/web/client-notification.js b/infrastructure/web/client-notification.js index 45b02a9..7fb2a15 100644 --- a/infrastructure/web/client-notification.js +++ b/infrastructure/web/client-notification.js @@ -1,5 +1,6 @@ const EventEmitter = require('events') const debug = require('debug')('48hr-email:notification') +require('events').defaultMaxListeners = 50; /** * Receives sign-ins from users and notifies them when new mails are available. diff --git a/package-lock.json b/package-lock.json index d2500e1..a515944 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,7 @@ "express-validator": "^7.2.0", "helmet": "^3.23.3", "http-errors": "~1.6.2", - "imap-simple": "^1.6.3", + "imap-simple": "^4.3.0", "lodash": "^4.17.21", "mailparser": "^3.7.1", "mem": "^4.3.0", @@ -2528,12 +2528,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/es6-promise": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-2.3.0.tgz", - "integrity": "sha512-oyOjMhyKMLEjOOtvkwg0G4pAzLQ9WdbbeX7WdqKzvYXu+UFgD0Zo/Brq5Q49zNmnGPPzV5rmYvrr0jz1zWx8Iw==", - "license": "MIT" - }, "node_modules/escalade": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", @@ -4590,17 +4584,17 @@ } }, "node_modules/imap-simple": { - "version": "1.6.3", - "resolved": "https://registry.npmjs.org/imap-simple/-/imap-simple-1.6.3.tgz", - "integrity": "sha512-QtLVLrtyLebWMYjIXhp4UMxjcQFV+bvBJBTtQF9YK+4m/sley55SxPAbrJOOzoBtozmY7oe81yBBiqzfmVJsaQ==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/imap-simple/-/imap-simple-4.3.0.tgz", + "integrity": "sha512-SW3LtfEJFjlJKS/h2CmpX2IKpya2RXobR3ENJJW4iMQ3QYPxWxf5oeaz1K3P4eGUwfGEndkqt7uVDKnEyG9zeQ==", "license": "MIT", "dependencies": { - "es6-promise": "^2.0.1", "iconv-lite": "~0.4.13", - "imap": "^0.8.14", + "imap": "^0.8.18", "nodeify": "^1.0.0", "quoted-printable": "^1.0.0", - "utf8": "^2.1.1" + "utf8": "^2.1.1", + "uuencode": "0.0.4" } }, "node_modules/import-fresh": { @@ -8309,6 +8303,11 @@ "node": ">= 0.4.0" } }, + "node_modules/uuencode": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/uuencode/-/uuencode-0.0.4.tgz", + "integrity": "sha512-yEEhCuCi5wRV7Z5ZVf9iV2gWMvUZqKJhAs1ecFdKJ0qzbyaVelmsE3QjYAamehfp9FKLiZbKldd+jklG3O0LfA==" + }, "node_modules/validate-npm-package-license": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", diff --git a/package.json b/package.json index 1d92fa7..dc0cbf5 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { "name": "48hr.email", - "version": "1.5.1", + "version": "1.5.2", "private": false, "scripts": { - "start": "node ./app.js", + "start": "node --trace-warnings ./app.js", "test": "xo", "debug": "node --nolazy --inspect-brk=9229 ./app.js" }, @@ -17,7 +17,7 @@ "express-validator": "^7.2.0", "helmet": "^3.23.3", "http-errors": "~1.6.2", - "imap-simple": "^1.6.3", + "imap-simple": "^4.3.0", "lodash": "^4.17.21", "mailparser": "^3.7.1", "mem": "^4.3.0",