UNPKG

@yoroi/common

Version:
13 lines (12 loc) 314 B
"use strict"; export function toLoggerMetadata(metadata) { return Object.keys(metadata).reduce((acc, key) => { let value = metadata[key]; if (value instanceof Error) value = value.toString(); return { ...acc, [key]: value }; }, {}); } //# sourceMappingURL=to-logger-metadata.js.map