src/modules/retrocompat-config.js
function oldConfigNames(config) {
  const configuration = Object.assign({}, config);
  if (configuration.amqpUrl) {
    configuration.host = configuration.amqpUrl;
  }

  if (configuration.amqpPrefetch) {
    configuration.prefetch = configuration.amqpPrefetch;
  }

  if (configuration.amqpRequeue) {
    configuration.requeue = configuration.amqpRequeue;
  }

  if (configuration.amqpTimeout) {
    configuration.timeout = configuration.amqpTimeout;
  }
  return configuration;
}
function oldConfigNames(config) {
  const configuration = Object.assign({}, config);
  if (configuration.amqpUrl) {
    configuration.host = configuration.amqpUrl;
  }

  if (configuration.amqpPrefetch) {
    configuration.prefetch = configuration.amqpPrefetch;
  }

  if (configuration.amqpRequeue) {
    configuration.requeue = configuration.amqpRequeue;
  }

  if (configuration.amqpTimeout) {
    configuration.timeout = configuration.amqpTimeout;
  }
  return configuration;
}
function oldConfigNames ( config ) { const configuration = Object . assign ( { } , config ) ; if ( configuration . amqpUrl ) { configuration . host = configuration . amqpUrl ; } if ( configuration . amqpPrefetch ) { configuration . prefetch = configuration . amqpPrefetch ; } if ( configuration . amqpRequeue ) { configuration . requeue = configuration . amqpRequeue ; } if ( configuration . amqpTimeout ) { configuration . timeout = configuration . amqpTimeout ; } return configuration ; }
deprecated configuration property names
deprecated configuration property names