Backend half

This commit is contained in:
2025-07-11 19:56:28 +02:00
parent fa868e7c1d
commit 8600fa7c1d
19426 changed files with 3750448 additions and 8108 deletions
@@ -0,0 +1,48 @@
var warning = [
'The AWS SDK for JavaScript (v2) is in maintenance mode.',
' SDK releases are limited to address critical bug fixes and security issues only.\n',
'Please migrate your code to use AWS SDK for JavaScript (v3).',
'For more information, check the blog post at https://a.co/cUPnyil'
].join('\n');
module.exports = {
suppress: false
};
/**
* To suppress this message:
* @example
* require('aws-sdk/lib/maintenance_mode_message').suppress = true;
*/
function emitWarning() {
if (typeof process === 'undefined')
return;
// Skip maintenance mode message in Lambda environments
if (
typeof process.env === 'object' &&
typeof process.env.AWS_EXECUTION_ENV !== 'undefined' &&
process.env.AWS_EXECUTION_ENV.indexOf('AWS_Lambda_') === 0
) {
return;
}
if (
typeof process.env === 'object' &&
typeof process.env.AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE !== 'undefined'
) {
return;
}
if (typeof process.emitWarning === 'function') {
process.emitWarning(warning, {
type: 'NOTE'
});
}
}
setTimeout(function () {
if (!module.exports.suppress) {
emitWarning();
}
}, 0);