mailery 0.2.0 → 0.2.2
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/dist/admin/spa/index-csgOs39s.js +41 -0
- package/dist/admin/spa/index-csgOs39s.js.map +1 -0
- package/dist/admin/spa/index.html +1 -1
- package/dist/admin/spa/{template-editor-DUZfzI5F.js → template-editor-BuYSO1FP.js} +2 -2
- package/dist/admin/spa/{template-editor-DUZfzI5F.js.map → template-editor-BuYSO1FP.js.map} +1 -1
- package/dist/index.cjs +316 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +316 -3
- package/dist/index.js.map +1 -1
- package/dist/{null-CWw3Gpbl.d.cts → null-DaisDvB_.d.cts} +58 -16
- package/dist/{null-CWw3Gpbl.d.ts → null-DaisDvB_.d.ts} +58 -16
- package/dist/testing.cjs +19 -0
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.d.cts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +19 -0
- package/dist/testing.js.map +1 -1
- package/package.json +1 -1
- package/dist/admin/spa/index-DlhleV6M.js +0 -41
- package/dist/admin/spa/index-DlhleV6M.js.map +0 -1
package/dist/testing.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Db } from 'mongodb';
|
|
2
|
-
import { C as ContactAdapter, a as Contact, A as AdapterFilter, c as Mailer, r as NullProvider } from './null-
|
|
2
|
+
import { C as ContactAdapter, a as Contact, A as AdapterFilter, c as Mailer, r as NullProvider } from './null-DaisDvB_.cjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'handlebars';
|
|
5
5
|
import 'ioredis';
|
package/dist/testing.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Db } from 'mongodb';
|
|
2
|
-
import { C as ContactAdapter, a as Contact, A as AdapterFilter, c as Mailer, r as NullProvider } from './null-
|
|
2
|
+
import { C as ContactAdapter, a as Contact, A as AdapterFilter, c as Mailer, r as NullProvider } from './null-DaisDvB_.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import 'handlebars';
|
|
5
5
|
import 'ioredis';
|
package/dist/testing.js
CHANGED
|
@@ -15933,6 +15933,25 @@ async function promoteSoftBounces(ctx) {
|
|
|
15933
15933
|
// src/server/runner/tick.ts
|
|
15934
15934
|
var STRANDED_SEND_THRESHOLD_MS = 5 * 60 * 1e3;
|
|
15935
15935
|
async function runTick(ctx) {
|
|
15936
|
+
await ctx.collections.health.updateOne(
|
|
15937
|
+
{ _id: "singleton" },
|
|
15938
|
+
{
|
|
15939
|
+
$set: { updatedAt: /* @__PURE__ */ new Date() },
|
|
15940
|
+
$setOnInsert: {
|
|
15941
|
+
_id: "singleton",
|
|
15942
|
+
windowStartedAt: /* @__PURE__ */ new Date(),
|
|
15943
|
+
windowDurationMs: ctx.config.circuitBreaker.windowMinutes * 60 * 1e3,
|
|
15944
|
+
status: "healthy",
|
|
15945
|
+
trippedAt: null,
|
|
15946
|
+
trippedReason: null,
|
|
15947
|
+
manuallyResumedAt: null,
|
|
15948
|
+
counters: { sent: 0, delivered: 0, bounced: 0, hardBounced: 0, softBounced: 0, complained: 0, failedToSend: 0 },
|
|
15949
|
+
rates: { bounceRate: 0, hardBounceRate: 0, complaintRate: 0, failureRate: 0 }
|
|
15950
|
+
}
|
|
15951
|
+
},
|
|
15952
|
+
{ upsert: true }
|
|
15953
|
+
).catch(() => {
|
|
15954
|
+
});
|
|
15936
15955
|
await processNewlyFiredEventTriggers(ctx).catch((err) => {
|
|
15937
15956
|
console.error("mailery: triggers scan failed", err);
|
|
15938
15957
|
});
|