UNPKG

@yoroi/common

Version:

The Common package of Yoroi SDK

11 lines 299 B
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