weer
Version:
Web Extensions Error Reporter catches global errors, shows notifications and opens error reporter in one click
25 lines (17 loc) • 634 B
JavaScript
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var Utils = _interopDefault(require('./utils'));
var ErrorCatchers = _interopDefault(require('./error-catchers'));
var GetNotifiersSingleton = _interopDefault(require('./get-notifiers-singleton'));
const install = (configs) => {
const { handleErrorMessage } = GetNotifiersSingleton(configs);
const uninstall = ErrorCatchers.installListenersOn({ handleErrorMessage });
return uninstall;
};
var index = {
Utils,
ErrorCatchers,
GetNotifiersSingleton,
install,
};
module.exports = index;
;