@reporters/web 1.6.1 → 1.6.2
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/CHANGELOG.md +7 -0
- package/dist/index.js +7 -1
- package/dist/start.js +19 -20
- package/dist/viewer/index.html +19 -20
- package/dist/viewer.global.js +19 -20
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.6.2](https://github.com/MoLow/reporters/compare/web-v1.6.1...web-v1.6.2) (2026-07-08)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **tree-core:** carry extra error props onto the wire stack ([#257](https://github.com/MoLow/reporters/issues/257)) ([deec348](https://github.com/MoLow/reporters/commit/deec3483dfbe050f411f8b841564d983d0d5f2d0))
|
|
9
|
+
|
|
3
10
|
## [1.6.1](https://github.com/MoLow/reporters/compare/web-v1.6.0...web-v1.6.1) (2026-07-07)
|
|
4
11
|
|
|
5
12
|
|
package/dist/index.js
CHANGED
|
@@ -3,12 +3,18 @@ import {
|
|
|
3
3
|
} from "./chunk-KDWFRAWN.js";
|
|
4
4
|
|
|
5
5
|
// ../tree-core/src/wire.ts
|
|
6
|
+
var inspect = globalThis.process?.getBuiltinModule?.("node:util")?.inspect;
|
|
7
|
+
function inspectedStack(raw) {
|
|
8
|
+
if (inspect == null || !(raw instanceof Error) || raw.code === "ERR_TEST_FAILURE") return void 0;
|
|
9
|
+
if (typeof raw.stack !== "string" || raw.stack === "") return void 0;
|
|
10
|
+
return inspect(raw, { colors: true });
|
|
11
|
+
}
|
|
6
12
|
function flattenError(raw) {
|
|
7
13
|
if (raw == null) return void 0;
|
|
8
14
|
const err = raw;
|
|
9
15
|
return {
|
|
10
16
|
message: err.message ?? String(err),
|
|
11
|
-
stack: err.stack,
|
|
17
|
+
stack: inspectedStack(raw) ?? err.stack,
|
|
12
18
|
name: err.name,
|
|
13
19
|
cause: err.cause instanceof Error ? flattenError(err.cause) : err.cause
|
|
14
20
|
};
|