@remit/smtp-worker 0.0.31 → 0.0.32
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
|
@@ -11,6 +11,7 @@ export type { SmtpDataPorts } from "./ports.js";
|
|
|
11
11
|
// installed.
|
|
12
12
|
const buildSqliteDataPorts = async (): Promise<SmtpDataPorts> => {
|
|
13
13
|
const {
|
|
14
|
+
BETTER_SQLITE3_LIMITS,
|
|
14
15
|
createSqliteRepositories,
|
|
15
16
|
openSqliteDatabases,
|
|
16
17
|
sqliteDatabasePathsFromEnv,
|
|
@@ -18,6 +19,7 @@ const buildSqliteDataPorts = async (): Promise<SmtpDataPorts> => {
|
|
|
18
19
|
|
|
19
20
|
const repositories = createSqliteRepositories(
|
|
20
21
|
await openSqliteDatabases(sqliteDatabasePathsFromEnv()),
|
|
22
|
+
BETTER_SQLITE3_LIMITS,
|
|
21
23
|
);
|
|
22
24
|
|
|
23
25
|
return {
|
|
@@ -15,7 +15,10 @@ import {
|
|
|
15
15
|
ConnectionState,
|
|
16
16
|
OutboxMessageStatus,
|
|
17
17
|
} from "@remit/domain-enums";
|
|
18
|
-
import {
|
|
18
|
+
import {
|
|
19
|
+
BETTER_SQLITE3_LIMITS,
|
|
20
|
+
createSqliteRepositories,
|
|
21
|
+
} from "@remit/drizzle-service";
|
|
19
22
|
import { createShippedSqliteDb } from "@remit/drizzle-service/test-sqlite";
|
|
20
23
|
import type { MailFailureKind } from "@remit/logger";
|
|
21
24
|
import { RefreshTokenError } from "@remit/mail-oauth-service";
|
|
@@ -61,11 +64,14 @@ interface World {
|
|
|
61
64
|
|
|
62
65
|
const openWorld = async (smtpOptions: FakeSmtpOptions = {}): Promise<World> => {
|
|
63
66
|
const store = createShippedSqliteDb();
|
|
64
|
-
const repos = createSqliteRepositories(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
const repos = createSqliteRepositories(
|
|
68
|
+
{
|
|
69
|
+
app: store.db,
|
|
70
|
+
mail: store.db,
|
|
71
|
+
search: store.db,
|
|
72
|
+
},
|
|
73
|
+
BETTER_SQLITE3_LIMITS,
|
|
74
|
+
);
|
|
69
75
|
const smtp = await startFakeSmtp(smtpOptions);
|
|
70
76
|
const queue = recordingQueue();
|
|
71
77
|
const storage = createMockStorageService();
|