UNPKG

pnpm

Version:

Fast, disk space efficient package manager

20 lines (17 loc) 356 B
/** @license MIT License (c) copyright 2010-2016 original author or authors */ /** @author Brian Cavalier */ /** @author John Hann */ export function tryEvent (t, x, sink) { try { sink.event(t, x) } catch (e) { sink.error(t, e) } } export function tryEnd (t, x, sink) { try { sink.end(t, x) } catch (e) { sink.error(t, e) } }