Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
callback: () => {
appInsights.dispose();
resolve(true);
}
});
const close = (done) => {
if (client) {
client.flush();
appInsights.dispose();
client = undefined;
}
done();
};