@rotorsoft/act-http 1.10.24 → 1.11.0

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.
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  make_dispatch
3
- } from "../chunk-H545LMMV.js";
3
+ } from "../chunk-YDHQXVDD.js";
4
4
  import {
5
5
  SseConnectionCounter,
6
6
  fireAndForget,
7
7
  resolveSseConfig,
8
8
  runSseSubscription,
9
9
  toApiError
10
- } from "../chunk-ZQGGGU4E.js";
11
- import "../chunk-WZ6QI2OI.js";
10
+ } from "../chunk-IIRUQWVH.js";
12
11
  import "../chunk-EERALS5E.js";
13
12
  import "../chunk-MKD3SM3N.js";
13
+ import "../chunk-WZ6QI2OI.js";
14
14
  import "../chunk-PZ5AY32C.js";
15
15
 
16
16
  // ../../node_modules/.pnpm/@hono+zod-validator@0.9.1_hono@4.13.13_zod@4.6.7/node_modules/@hono/zod-validator/dist/index.mjs
@@ -19842,6 +19842,8 @@ function make_dispatch(app, resolvers, store) {
19842
19842
  var import_act = require("@rotorsoft/act");
19843
19843
  var ERROR_MAP = {
19844
19844
  ValidationError: { status: 422, code: "VALIDATION" },
19845
+ PreconditionError: { status: 409, code: "PRECONDITION" },
19846
+ /** @deprecated Thrown only by the deprecated `.given` rules. Removed in 2.0. */
19845
19847
  InvariantError: { status: 409, code: "INVARIANT" },
19846
19848
  ConcurrencyError: { status: 412, code: "CONCURRENCY" },
19847
19849
  StreamClosedError: { status: 410, code: "STREAM_CLOSED" },
@@ -19849,6 +19851,7 @@ var ERROR_MAP = {
19849
19851
  };
19850
19852
  var lookup_known = (err) => {
19851
19853
  if (err instanceof import_act.ValidationError) return { name: "ValidationError" };
19854
+ if (err instanceof import_act.PreconditionError) return { name: "PreconditionError" };
19852
19855
  if (err instanceof import_act.InvariantError) return { name: "InvariantError" };
19853
19856
  if (err instanceof import_act.ConcurrencyError) return { name: "ConcurrencyError" };
19854
19857
  if (err instanceof import_act.StreamClosedError) return { name: "StreamClosedError" };