@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.js CHANGED
@@ -882,6 +882,8 @@ function incidentKindOf(ev) {
882
882
  return ev.incidentCount && ev.incidentCount > 1 ? "4xx-burst" : "5xx";
883
883
  }
884
884
  if (et) return "connector";
885
+ if (ev.exceptionType || ev.exceptionStacktrace) return "exception";
886
+ if (typeof ev.httpStatusCode === "number" && ev.httpStatusCode >= 500) return "5xx";
885
887
  return "exception";
886
888
  }
887
889