emailengine-app 2.87.2 → 2.89.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.ncurc.js +24 -44
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +37 -0
- package/ENVIRONMENT.md +26 -23
- package/LICENSE_EMAILENGINE.txt +20 -12
- package/app.json +3 -3
- package/bin/emailengine.js +7 -11
- package/data/google-crawlers.json +1 -1
- package/data/public_suffix_list.dat +155 -16
- package/lib/account.js +69 -49
- package/lib/admin-password.js +85 -0
- package/lib/api-routes/license-routes.js +9 -0
- package/lib/api-token-auth.js +21 -5
- package/lib/calendar-event.js +15 -3
- package/lib/consts.js +5 -0
- package/lib/db.js +1 -0
- package/lib/email-client/base-client.js +36 -15
- package/lib/email-client/gmail-client.js +20 -6
- package/lib/email-client/imap/connection-errors.js +30 -1
- package/lib/email-client/imap/session-expiry.js +83 -0
- package/lib/email-client/imap-client.js +12 -2
- package/lib/email-client/smtp-pool-manager.js +66 -8
- package/lib/export.js +147 -22
- package/lib/graph-notifications.js +60 -0
- package/lib/imap-proxy-auth.js +52 -18
- package/lib/imapproxy/imap-core/lib/commands/id.js +4 -2
- package/lib/imapproxy/imap-core/lib/imap-command.js +44 -4
- package/lib/imapproxy/imap-server.js +10 -1
- package/lib/imapproxy/proxy-handoff.js +100 -5
- package/lib/license-subscription.js +244 -0
- package/lib/node-version.js +99 -12
- package/lib/oauth/gmail.js +18 -0
- package/lib/oauth/outlook-identity.js +54 -12
- package/lib/prepared-password.js +38 -0
- package/lib/queue-browser/index.js +6 -6
- package/lib/queue-job-actions.js +59 -4
- package/lib/read-env-value.js +46 -21
- package/lib/redis-url.js +23 -0
- package/lib/response-stream.js +69 -1
- package/lib/revocation-events.js +79 -0
- package/lib/schemas.js +18 -2
- package/lib/settings.js +50 -24
- package/lib/sso.js +23 -0
- package/lib/submit-penalty.js +24 -0
- package/lib/submit-processor.js +10 -2
- package/lib/tokens.js +6 -0
- package/lib/tools.js +90 -18
- package/lib/ui-routes/admin-config-routes.js +3 -276
- package/lib/ui-routes/auth-routes.js +13 -64
- package/lib/ui-routes/dashboard-routes.js +4 -0
- package/lib/ui-routes/license-routes.js +326 -0
- package/lib/web-safe-html.js +74 -1
- package/lib/webhook-delivery.js +21 -20
- package/lib/webhook-penalty.js +18 -17
- package/lib/webhooks.js +18 -0
- package/list-generate.js +56 -19
- package/package.json +28 -31
- package/sbom.json +373 -964
- package/scan.js +2 -0
- package/server.js +273 -100
- package/static/css/flyonui.css +2 -2
- package/static/js/ui.js +11 -4
- package/static/licenses.html +1108 -504
- package/translations/messages.pot +18 -18
- package/views/config/license.hbs +43 -16
- package/views/dashboard.hbs +9 -0
- package/views/partials/side_menu.hbs +1 -1
- package/views/upgrade.hbs +25 -0
- package/workers/api.js +108 -107
- package/workers/imap.js +4 -6
- package/lib/net-tos-guard.js +0 -42
package/static/js/ui.js
CHANGED
|
@@ -125,17 +125,24 @@ window.uiConfirmModal = (target, okSelector) => {
|
|
|
125
125
|
|
|
126
126
|
return new Promise(resolve => {
|
|
127
127
|
let confirmed = false;
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
// Recorded in the capture phase on the dialog, which runs before any listener on the
|
|
129
|
+
// button itself. HSOverlay's own handler on the OK button closes the dialog, and when
|
|
130
|
+
// nothing transitions (no fade, or a reader whose browser skips it) the close completes
|
|
131
|
+
// and close.overlay fires inside that handler - a listener on the button added after it
|
|
132
|
+
// would only see the click once the answer had already gone out as "declined"
|
|
133
|
+
const onConfirm = e => {
|
|
134
|
+
if (ok.contains(e.target)) {
|
|
135
|
+
confirmed = true;
|
|
136
|
+
}
|
|
130
137
|
};
|
|
131
138
|
|
|
132
139
|
// Removed by hand rather than with {once:true}: a dismissal leaves it attached, and
|
|
133
140
|
// one per call would accumulate on DOM that outlives the promise
|
|
134
|
-
|
|
141
|
+
modal.addEventListener('click', onConfirm, true);
|
|
135
142
|
modal.addEventListener(
|
|
136
143
|
'close.overlay',
|
|
137
144
|
() => {
|
|
138
|
-
|
|
145
|
+
modal.removeEventListener('click', onConfirm, true);
|
|
139
146
|
resolve(confirmed);
|
|
140
147
|
},
|
|
141
148
|
{ once: true }
|