Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
exports.activate = function activate() {
coreUtil.applicationUnderMonitoring.getMainPackageJson(rootDir.root, (err, pckg) => {
if (err) {
logger.warn('Failed to determine main package json. Reason: ', err.message, err.stack);
}
if (!err && pckg) {
exports.currentPayload = pckg.name;
}
});
};
exports.activate = function activate() {
coreUtil.applicationUnderMonitoring.getMainPackageJson(rootDir.root, (err, pckg) => {
if (err) {
logger.warn('Failed to determine main package json. Reason: ', err.message, err.stack);
}
if (!err && pckg) {
exports.currentPayload = pckg.description;
}
});
};
exports.activate = function activate() {
coreUtil.applicationUnderMonitoring.getMainPackageJson(rootDir.root, (err, pckg) => {
if (err) {
logger.warn('Failed to determine main package json. Reason: ', err.message, err.stack);
}
if (!err && pckg) {
exports.currentPayload = pckg.version;
}
});
};