"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.serializeError = void 0;

const serializeError = obj => obj && (obj.message || obj.stack) ? {
  message: obj.message,
  stack: obj.stack
} : obj;

exports.serializeError = serializeError;