Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'use strict';
const { environment: environmentUtil } = require('@instana/serverless');
environmentUtil.validate();
if (environmentUtil.isValid()) {
module.exports = exports = require('./wrapper');
} else {
module.exports = exports = require('./noop_wrapper');
}
// required for backwards compatibility
exports.awsLambda = module.exports;