lib/gcli/converters/converters.js
function getChainConverter(first, second) {
  if (first.to !== second.from) {
    throw new Error('Chain convert impossible: ' + first.to + '!=' + second.from);
  }
  return {
    from: first.from,
    to: second.to,
    exec: function(data, conversionContext) {
      var intermediate = first.exec(data, conversionContext);
      return second.exec(intermediate, conversionContext);
    }
  };
}
function getChainConverter(first, second) {
  if (first.to !== second.from) {
    throw new Error('Chain convert impossible: ' + first.to + '!=' + second.from);
  }
  return {
    from: first.from,
    to: second.to,
    exec: function(data, conversionContext) {
      var intermediate = first.exec(data, conversionContext);
      return second.exec(intermediate, conversionContext);
    }
  };
}
function getChainConverter ( first , second ) { if ( first . to !== second . from ) { throw new Error ( 'Chain convert impossible: ' + first . to + '!=' + second . from ) ; } return { from : first . from , to : second . to , exec : function ( data , conversionContext ) { var intermediate = first . exec ( data , conversionContext ) ; return second . exec ( intermediate , conversionContext ) ; } } ; }
Create a new converter by using 2 converters, one after the other
Create a new converter by using 2 converters one after the other