Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function report(event: ReporterEvent) {
if (event.bundle == null) {
bus.emit('reporterEvent', event);
} else {
// Convert any public api bundles to their internal equivalents for
// easy serialization
bus.emit('reporterEvent', {
...event,
bundle: bundleToInternalBundle(event.bundle),
});
}
}
export function report(event: ReporterEvent) {
if (event.bundle == null) {
bus.emit('reporterEvent', event);
} else {
// Convert any public api bundles to their internal equivalents for
// easy serialization
bus.emit('reporterEvent', {
...event,
bundle: bundleToInternalBundle(event.bundle),
});
}
}