@ultimat3/http 25.1.0 → 25.2.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/package.json +5 -5
- package/src/errors.ts +4 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultimat3/http",
|
|
3
|
-
"version": "25.
|
|
3
|
+
"version": "25.2.0",
|
|
4
4
|
"description": "Owned request lifecycle over Bun.serve: router, ordered pipeline, problem+json errors",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"test": "bun test"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@ultimat3/core": "25.
|
|
39
|
-
"@ultimat3/i18n": "25.
|
|
40
|
-
"@ultimat3/schema": "25.
|
|
41
|
-
"@ultimat3/time": "25.
|
|
38
|
+
"@ultimat3/core": "25.2.0",
|
|
39
|
+
"@ultimat3/i18n": "25.2.0",
|
|
40
|
+
"@ultimat3/schema": "25.2.0",
|
|
41
|
+
"@ultimat3/time": "25.2.0"
|
|
42
42
|
}
|
|
43
43
|
}
|
package/src/errors.ts
CHANGED
|
@@ -129,11 +129,10 @@ export const bodyInvalid = (
|
|
|
129
129
|
code: 'X_BODY_INVALID',
|
|
130
130
|
cause: `${pathname} body rejected: ${issues.join('; ')}`,
|
|
131
131
|
...(meta === undefined ? {} : { meta }),
|
|
132
|
-
//
|
|
133
|
-
//
|
|
134
|
-
//
|
|
135
|
-
|
|
136
|
-
fix: `x routes --json # find ${pathname}, then send a body matching its input schema`,
|
|
132
|
+
// Only a route that declares `meta.input` reaches the body stage, and no action or query does
|
|
133
|
+
// (`invoke` and `runQuery` validate their own input, as `X_INPUT_INVALID`) — so this is a plain
|
|
134
|
+
// `runtime.ts` route, and `x routes --surface api` lists those by name since owner decision 2.
|
|
135
|
+
fix: `x routes --surface api --json # find ${pathname}, a runtime.ts route, then send a body its meta.input schema accepts`,
|
|
137
136
|
});
|
|
138
137
|
|
|
139
138
|
/** At construction: a hole in a scope, or a prefix shadowing `/api` or `/_x`, never serves. */
|