dist/decorator.js
function decorate(service, serviceName) {
  var logger = _config.loggerFactory(serviceName, _config);
  _lodash2.default.map(service, function (method, name) {
    method.methodName = name;
    if (!method.params) {
      method.params = (0, _getParameterNames2.default)(method);
    }
    service[name] = log(validate(method), logger, method);
  });
}
function decorate(service, serviceName) {
  var logger = _config.loggerFactory(serviceName, _config);
  _lodash2.default.map(service, function (method, name) {
    method.methodName = name;
    if (!method.params) {
      method.params = (0, _getParameterNames2.default)(method);
    }
    service[name] = log(validate(method), logger, method);
  });
}
function decorate ( service , serviceName ) { var logger = _config . loggerFactory ( serviceName , _config ) ; _lodash2 . default . map ( service , function ( method , name ) { method . methodName = name ; if ( ! method . params ) { method . params = ( 0 , _getParameterNames2 . default ) ( method ) ; } service [ name ] = log ( validate ( method ) , logger , method ) ; } ) ; }
Decorate all methods in the service
@param {Object} service the service object
@param {String} serviceName the service name
Decorate all methods in the service