Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
result.bindingsStream.on('end', () => {
readable.push(null);
console.error(Object.keys(Mediator.PROFILING_DURATIONS)
.map((key: string) => ({ key, value: Mediator.PROFILING_DURATIONS[key] }))
.sort((a, b) => b.value - a.value));
});
const readable = new Readable();
.map((key: string) => ({ key, value: Mediator.PROFILING_DURATIONS[key] }))
.sort((a, b) => b.value - a.value));