lib/providers/URLArgsProvider.js
function getUriMappers (serviceLocator) {
  var routeDefinitions;

  try {
    routeDefinitions = serviceLocator.resolveAll('routeDefinition');
  } catch (e) {
    routeDefinitions = [];
  }

  return routeDefinitions
    .map(route => {
      var mapper = routeHelper.compileRoute(route.expression);

      return {
        expression: mapper.expression,
        map: route.map || noop,
        argsMap: uri => {
          var args = mapper.map(uri);
          Object.assign(args, route.args);
          return args;
        }
      };
    });
}
function getUriMappers (serviceLocator) {
  var routeDefinitions;

  try {
    routeDefinitions = serviceLocator.resolveAll('routeDefinition');
  } catch (e) {
    routeDefinitions = [];
  }

  return routeDefinitions
    .map(route => {
      var mapper = routeHelper.compileRoute(route.expression);

      return {
        expression: mapper.expression,
        map: route.map || noop,
        argsMap: uri => {
          var args = mapper.map(uri);
          Object.assign(args, route.args);
          return args;
        }
      };
    });
}
function getUriMappers ( serviceLocator ) { var routeDefinitions ; try { routeDefinitions = serviceLocator . resolveAll ( 'routeDefinition' ) ; } catch ( e ) { routeDefinitions = [ ] ; } return routeDefinitions . map ( route => { var mapper = routeHelper . compileRoute ( route . expression ) ; return { expression : mapper . expression , map : route . map || noop , argsMap : uri => { var args = mapper . map ( uri ) ; Object . assign ( args , route . args ) ; return args ; } } ; } ) ; }
Gets list of URI mappers.
@param {ServiceLocator} serviceLocator Service locator to get route
definitions.
@returns {Array} List of URI mappers.
Gets list of URI mappers .