@remit/web-client 0.0.285 → 0.0.286

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.285",
3
+ "version": "0.0.286",
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": {
@@ -214,7 +214,9 @@ describe("the appointment ceremony", () => {
214
214
  message: "not settled",
215
215
  details: { mailboxId: "mbx-trash", syncStatus: "pending" },
216
216
  }),
217
- { status: 409, headers: { "content-type": "application/json" } },
217
+ // 422: the folder being appointed has not settled, which is a
218
+ // different answer from a 409's "somebody else is changing it".
219
+ { status: 422, headers: { "content-type": "application/json" } },
218
220
  );
219
221
  });
220
222
 
@@ -165,11 +165,14 @@ describe("a bulk delete refused for its folder role", () => {
165
165
  await mount((path) => {
166
166
  if (path.endsWith("/config")) return CONFIG;
167
167
  if (path.endsWith("/messages/delete"))
168
+ // A conflict with no code this prompt knows: the status class's own,
169
+ // which is what every refusal that names nothing more specific
170
+ // answers with.
168
171
  return new Response(
169
172
  JSON.stringify({
170
173
  status: 409,
171
174
  message: "boom",
172
- code: "mailbox_not_settled",
175
+ code: "conflict",
173
176
  }),
174
177
  { status: 409, headers: { "content-type": "application/json" } },
175
178
  );