UNPKG

lambda-live-debugger

Version:

Debug Lambda functions locally like it is running in the cloud

16 lines (13 loc) 600 B
export const state = { warningEmitted: false, }; export const emitWarningIfUnsupportedVersion = (version) => { if (version && !state.warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 20) { state.warningEmitted = true; process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will no longer support Node.js ${version} in January 2026. To continue receiving updates to AWS services, bug fixes, and security updates please upgrade to a supported Node.js LTS version. More information can be found at: https://a.co/c895JFp`); } };