@neat.is/types 0.9.10 → 0.9.11
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/index.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1064,6 +1064,8 @@ function incidentKindOf(ev) {
|
|
|
1064
1064
|
return ev.incidentCount && ev.incidentCount > 1 ? "4xx-burst" : "5xx";
|
|
1065
1065
|
}
|
|
1066
1066
|
if (et) return "connector";
|
|
1067
|
+
if (ev.exceptionType || ev.exceptionStacktrace) return "exception";
|
|
1068
|
+
if (typeof ev.httpStatusCode === "number" && ev.httpStatusCode >= 500) return "5xx";
|
|
1067
1069
|
return "exception";
|
|
1068
1070
|
}
|
|
1069
1071
|
|