src/modules/retrocompat-config.js
function envVars(config) {
  const configuration = Object.assign({}, config);
  if (process.env.AMQP_URL && !configuration.host) {
    configuration.host = process.env.AMQP_URL;
  }

  if (process.env.LOCAL_QUEUE && !configuration.consumerSuffix) {
    configuration.consumerSuffix = process.env.LOCAL_QUEUE;
  }

  if (process.env.AMQP_DEBUG && !configuration.transport) {
    configuration.transport = console;
  }

  return configuration;
}
function envVars(config) {
  const configuration = Object.assign({}, config);
  if (process.env.AMQP_URL && !configuration.host) {
    configuration.host = process.env.AMQP_URL;
  }

  if (process.env.LOCAL_QUEUE && !configuration.consumerSuffix) {
    configuration.consumerSuffix = process.env.LOCAL_QUEUE;
  }

  if (process.env.AMQP_DEBUG && !configuration.transport) {
    configuration.transport = console;
  }

  return configuration;
}
function envVars ( config ) { const configuration = Object . assign ( { } , config ) ; if ( process . env . AMQP_URL && ! configuration . host ) { configuration . host = process . env . AMQP_URL ; } if ( process . env . LOCAL_QUEUE && ! configuration . consumerSuffix ) { configuration . consumerSuffix = process . env . LOCAL_QUEUE ; } if ( process . env . AMQP_DEBUG && ! configuration . transport ) { configuration . transport = console ; } return configuration ; }
deprecated env vars to configure the module
deprecated env vars to configure the module