UNPKG

syntropylog

Version:

An instance manager with observability for Node.js applications

21 lines 600 B
/** * Internal Types for SyntropyLog Framework * * These types and utilities are for advanced usage and internal framework operations. * Use with caution - they may change between versions. */ /** * Helper function to convert unknown error to JsonValue * Moved from @syntropylog/types to internal types */ export function errorToJsonValue(error) { if (error instanceof Error) { return { name: error.name, message: error.message, stack: error.stack || null, }; } return String(error); } //# sourceMappingURL=internal-types.js.map