@ultimat3/http 20.1.5 → 20.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/error-map.ts +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultimat3/http",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.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",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"test": "bun test"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@ultimat3/core": "20.
|
|
35
|
-
"@ultimat3/i18n": "20.
|
|
36
|
-
"@ultimat3/schema": "20.
|
|
37
|
-
"@ultimat3/time": "20.
|
|
34
|
+
"@ultimat3/core": "20.2.0",
|
|
35
|
+
"@ultimat3/i18n": "20.2.0",
|
|
36
|
+
"@ultimat3/schema": "20.2.0",
|
|
37
|
+
"@ultimat3/time": "20.2.0"
|
|
38
38
|
}
|
|
39
39
|
}
|
package/src/error-map.ts
CHANGED
|
@@ -347,6 +347,11 @@ export const ERROR_STATUS = {
|
|
|
347
347
|
// blanks the cause of an unclassified failure outside dev, which would hide the one thing that
|
|
348
348
|
// makes this error actionable: the role and the measured ratio.
|
|
349
349
|
X_UI_CONTRAST_INSUFFICIENT: 500,
|
|
350
|
+
// @ultimat3/ui — `<QrCode>` was handed a value past the encoder's version-3 ceiling. The value
|
|
351
|
+
// is the app's own (a short URL it minted), never the caller's, so 500 is the honest class —
|
|
352
|
+
// and a declared 500 for the contrast code's reason: `toProblem` blanks an unclassified
|
|
353
|
+
// failure's cause outside dev, and the cause is where the byte count and the ceiling are.
|
|
354
|
+
X_UI_QR_CAPACITY: 500,
|
|
350
355
|
// @ultimat3/render — an island handed props it cannot carry: an undeclared key, a value that is
|
|
351
356
|
// not JSON, or a bag over `ISLAND_PROPS_MAX_BYTES`. The author's fault and never the caller's,
|
|
352
357
|
// so 500 is the honest class — and it HAS to be a declared 500. Without a row the code was an
|