@remit/web-client 0.0.181 → 0.0.183
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remit/web-client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.183",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Remit web client, published as composable primitives — the app shell, auth shells, and runtime config. A distributor imports what it composes and bundles it.",
|
|
6
6
|
"exports": {
|
|
@@ -85,8 +85,6 @@
|
|
|
85
85
|
"@aws-amplify/ui-react": "^6",
|
|
86
86
|
"aws-rum-web": "^3",
|
|
87
87
|
"better-auth": "^1.6.23",
|
|
88
|
-
"clsx": "^2",
|
|
89
|
-
"dompurify": "^3.4.7",
|
|
90
88
|
"i18next": "^24",
|
|
91
89
|
"i18next-browser-languagedetector": "^8",
|
|
92
90
|
"i18next-http-backend": "^3.0.6",
|
|
@@ -94,36 +92,22 @@
|
|
|
94
92
|
"p-map": "*",
|
|
95
93
|
"react-hook-form": "*",
|
|
96
94
|
"react-i18next": "^15",
|
|
97
|
-
"tailwind-merge": "^2",
|
|
98
95
|
"vaul": "^1.1.2",
|
|
99
96
|
"zod": "^3"
|
|
100
97
|
},
|
|
101
98
|
"devDependencies": {
|
|
102
|
-
"@aws-sdk/client-dynamodb": "*",
|
|
103
|
-
"@aws-sdk/client-sqs": "*",
|
|
104
|
-
"@aws-sdk/lib-dynamodb": "*",
|
|
105
|
-
"@playwright/test": "1.58.2",
|
|
106
|
-
"@remit/drizzle-service": "*",
|
|
107
|
-
"@remit/electrodb-entities": "*",
|
|
108
|
-
"@remit/secrets-service": "*",
|
|
109
99
|
"@remit/test-dom": "*",
|
|
110
100
|
"@storybook/react-vite": "^9",
|
|
111
101
|
"@tailwindcss/vite": "^4",
|
|
112
102
|
"@tanstack/router-generator": "^1",
|
|
113
103
|
"@tanstack/router-plugin": "^1",
|
|
114
104
|
"@types/jsdom": "^28.0.3",
|
|
115
|
-
"@types/nodemailer": "*",
|
|
116
|
-
"@types/pngjs": "^6.0.5",
|
|
117
105
|
"@vitejs/plugin-react": "^4",
|
|
118
106
|
"dictionary-en": "4.0.0",
|
|
119
107
|
"dictionary-en-gb": "3.0.0",
|
|
120
108
|
"dictionary-nl": "2.0.0",
|
|
121
|
-
"electrodb": "*",
|
|
122
109
|
"esbuild": "*",
|
|
123
|
-
"expect-env": "*",
|
|
124
110
|
"jsdom": "^29.1.1",
|
|
125
|
-
"nodemailer": "^9.0.3",
|
|
126
|
-
"pngjs": "^5",
|
|
127
111
|
"react": "^19",
|
|
128
112
|
"react-dom": "^19.2.4",
|
|
129
113
|
"tailwindcss": "^4",
|
|
@@ -344,6 +344,26 @@ describe("buildAuthenticityIntel", () => {
|
|
|
344
344
|
assert.match(result.summary, /only looks like/);
|
|
345
345
|
});
|
|
346
346
|
|
|
347
|
+
test("a display name spelling a foreign address names the domain it cannot come from", () => {
|
|
348
|
+
const result = buildAuthenticityIntel(
|
|
349
|
+
makeThread({
|
|
350
|
+
fromEmail: "aramirez@secresaludguaviare.gov.co",
|
|
351
|
+
fromName: "matthijs@ischen.nl",
|
|
352
|
+
authenticity: {
|
|
353
|
+
fromDomain: "secresaludguaviare.gov.co",
|
|
354
|
+
dkimDomain: "secresaludguaviare.gov.co",
|
|
355
|
+
dkimMismatch: false,
|
|
356
|
+
displayNameCorrespondence: "ForeignAddress",
|
|
357
|
+
offDomainLinkDomains: [],
|
|
358
|
+
},
|
|
359
|
+
} as Partial<RemitImapThreadMessageResponse>),
|
|
360
|
+
0,
|
|
361
|
+
);
|
|
362
|
+
assert.equal(result.verdict, "caution");
|
|
363
|
+
assert.match(result.summary, /"matthijs@ischen\.nl"/);
|
|
364
|
+
assert.match(result.summary, /secresaludguaviare\.gov\.co/);
|
|
365
|
+
});
|
|
366
|
+
|
|
347
367
|
test("stays verified when the comparisons agreed", () => {
|
|
348
368
|
const result = buildAuthenticityIntel(
|
|
349
369
|
makeThread({
|
|
@@ -167,6 +167,10 @@ function describeSenderMismatch(
|
|
|
167
167
|
clauses.push(
|
|
168
168
|
`The name it shows, "${claimedBrand}", only looks like ${auth.fromDomain}.`,
|
|
169
169
|
);
|
|
170
|
+
} else if (correspondence === DisplayNameCorrespondence.ForeignAddress) {
|
|
171
|
+
clauses.push(
|
|
172
|
+
`The name it shows, "${claimedBrand}", is an address ${auth.fromDomain} cannot send from.`,
|
|
173
|
+
);
|
|
170
174
|
}
|
|
171
175
|
}
|
|
172
176
|
|