UNPKG

hypertune

Version:

[Hypertune](https://www.hypertune.com/) is the most flexible platform for feature flags, A/B testing, analytics and app configuration. Built with full end-to-end type-safety, Git-style version control and local, synchronous, in-memory flag evaluation. Opt

11 lines (9 loc) 255 B
import asError from "./asError"; export default function getMetadata(error: unknown): object { const typedError = asError(error); return { errorName: typedError.name, errorMessage: typedError.message, errorStack: typedError.stack, }; }