@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.
- package/dist/.tsbuildinfo +1 -1
- package/dist/@types/api/errors.d.ts +6 -1
- package/dist/@types/api/errors.d.ts.map +1 -1
- package/dist/api/index.cjs +3 -0
- package/dist/api/index.cjs.map +1 -1
- package/dist/api/index.js +2 -2
- package/dist/{chunk-ZQGGGU4E.js → chunk-IIRUQWVH.js} +8 -4
- package/dist/chunk-IIRUQWVH.js.map +1 -0
- package/dist/{chunk-H545LMMV.js → chunk-YDHQXVDD.js} +2 -2
- package/dist/hono/index.cjs +3 -0
- package/dist/hono/index.cjs.map +1 -1
- package/dist/hono/index.js +3 -3
- package/dist/trpc/index.cjs +3 -0
- package/dist/trpc/index.cjs.map +1 -1
- package/dist/trpc/index.js +4 -4
- package/package.json +2 -2
- package/dist/chunk-ZQGGGU4E.js.map +0 -1
- /package/dist/{chunk-H545LMMV.js.map → chunk-YDHQXVDD.js.map} +0 -0
package/dist/hono/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
make_dispatch
|
|
3
|
-
} from "../chunk-
|
|
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-
|
|
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
|
package/dist/trpc/index.cjs
CHANGED
|
@@ -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" };
|