@remit/smtp-worker 0.0.32 → 0.0.34
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/package.json
CHANGED
package/src/data-ports.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createStorageService } from "@remit/storage-service/s3";
|
|
1
2
|
import type { SmtpDataPorts } from "./ports.js";
|
|
2
3
|
|
|
3
4
|
export type { SmtpDataPorts } from "./ports.js";
|
|
@@ -20,6 +21,9 @@ const buildSqliteDataPorts = async (): Promise<SmtpDataPorts> => {
|
|
|
20
21
|
const repositories = createSqliteRepositories(
|
|
21
22
|
await openSqliteDatabases(sqliteDatabasePathsFromEnv()),
|
|
22
23
|
BETTER_SQLITE3_LIMITS,
|
|
24
|
+
{
|
|
25
|
+
storage: createStorageService(),
|
|
26
|
+
},
|
|
23
27
|
);
|
|
24
28
|
|
|
25
29
|
return {
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
BETTER_SQLITE3_LIMITS,
|
|
20
20
|
createSqliteRepositories,
|
|
21
|
+
messageObjectsInMemory,
|
|
21
22
|
} from "@remit/drizzle-service";
|
|
22
23
|
import { createShippedSqliteDb } from "@remit/drizzle-service/test-sqlite";
|
|
23
24
|
import type { MailFailureKind } from "@remit/logger";
|
|
@@ -71,6 +72,7 @@ const openWorld = async (smtpOptions: FakeSmtpOptions = {}): Promise<World> => {
|
|
|
71
72
|
search: store.db,
|
|
72
73
|
},
|
|
73
74
|
BETTER_SQLITE3_LIMITS,
|
|
75
|
+
messageObjectsInMemory(),
|
|
74
76
|
);
|
|
75
77
|
const smtp = await startFakeSmtp(smtpOptions);
|
|
76
78
|
const queue = recordingQueue();
|