Comparing version 8.0.2 to 9.0.0
@@ -197,15 +197,10 @@ /* eslint-disable promise/prefer-await-to-then */ | ||
}; | ||
if (modeIsLocal) { | ||
log.warn('shutdown handlers are not used in the local mode'); | ||
for (const signal of configuration.signals) { | ||
process.on(signal, () => { | ||
log.debug({ | ||
signal, | ||
}, 'received a shutdown signal'); | ||
void shutdown(false); | ||
}); | ||
} | ||
else { | ||
for (const signal of configuration.signals) { | ||
process.on(signal, () => { | ||
log.debug({ | ||
signal, | ||
}, 'received a shutdown signal'); | ||
void shutdown(false); | ||
}); | ||
} | ||
} | ||
const createBeacon = (context) => { | ||
@@ -212,0 +207,0 @@ const beacon = { |
@@ -72,3 +72,3 @@ { | ||
"types": "./dist/index.d.ts", | ||
"version": "8.0.2" | ||
"version": "9.0.0" | ||
} |
@@ -304,17 +304,13 @@ /* eslint-disable promise/prefer-await-to-then */ | ||
if (modeIsLocal) { | ||
log.warn('shutdown handlers are not used in the local mode'); | ||
} else { | ||
for (const signal of configuration.signals) { | ||
process.on(signal, () => { | ||
log.debug( | ||
{ | ||
signal, | ||
}, | ||
'received a shutdown signal', | ||
); | ||
for (const signal of configuration.signals) { | ||
process.on(signal, () => { | ||
log.debug( | ||
{ | ||
signal, | ||
}, | ||
'received a shutdown signal', | ||
); | ||
void shutdown(false); | ||
}); | ||
} | ||
void shutdown(false); | ||
}); | ||
} | ||
@@ -321,0 +317,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51859
752