UNPKG

@chassisjs/hermes

Version:

Production-Ready TypeScript Outbox Pattern

17 lines 416 B
const noop = () => { }; const isNil = (value) => typeof value === 'undefined' || value === null; const swallow = (fn) => { try { const result = fn(); if (result && result instanceof Promise && result.catch) { return result.catch(noop); } else { return; } } catch { } }; export { isNil, noop, swallow }; //# sourceMappingURL=utils.js.map