@ultimat3/http 27.10.1 → 27.10.3

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": "@ultimat3/http",
3
- "version": "27.10.1",
3
+ "version": "27.10.3",
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": "27.10.1",
39
- "@ultimat3/i18n": "27.10.1",
40
- "@ultimat3/schema": "27.10.1",
41
- "@ultimat3/time": "27.10.1"
38
+ "@ultimat3/core": "27.10.3",
39
+ "@ultimat3/i18n": "27.10.3",
40
+ "@ultimat3/schema": "27.10.3",
41
+ "@ultimat3/time": "27.10.3"
42
42
  }
43
43
  }
@@ -5,6 +5,7 @@
5
5
  import {
6
6
  ERROR_DOCS_URL,
7
7
  FRAMEWORK_CODE,
8
+ failureStack,
8
9
  hasPublicCause,
9
10
  isUltimateError,
10
11
  renderCauseValue,
@@ -102,7 +103,8 @@ export const factsOf = (error: unknown): ErrorFacts => {
102
103
  // 404 on every problem document this package has ever rendered.
103
104
  docs: str(error, 'docs') ?? ERROR_DOCS_URL,
104
105
  status: statusFor(code),
105
- stack: str(error, 'stack'),
106
+ // Its header restored when Bun dropped it (#773); an empty one is dropped, as `str` does.
107
+ stack: failureStack(error) || undefined,
106
108
  };
107
109
  };
108
110