lib/mock.js
function applyBasePath(search) {

	if (_.isUndefined(config.basePath)) {
		return search;
	}

	var modifyKeys = ['Bucket', 'CopySource'];

	var ret = _.mapObject(search, function (value, key) {
		if (_.indexOf(modifyKeys, key) === -1) {
			return value;
		}
		else {
			return config.basePath + '/' + value;
		}
	})

	return ret;
}
function applyBasePath(search) {

	if (_.isUndefined(config.basePath)) {
		return search;
	}

	var modifyKeys = ['Bucket', 'CopySource'];

	var ret = _.mapObject(search, function (value, key) {
		if (_.indexOf(modifyKeys, key) === -1) {
			return value;
		}
		else {
			return config.basePath + '/' + value;
		}
	})

	return ret;
}
function applyBasePath ( search ) { if ( _ . isUndefined ( config . basePath ) ) { return search ; } var modifyKeys = [ 'Bucket' , 'CopySource' ] ; var ret = _ . mapObject ( search , function ( value , key ) { if ( _ . indexOf ( modifyKeys , key ) === - 1 ) { return value ; } else { return config . basePath + '/' + value ; } } ) return ret ; }
Add basePath to selected keys
Add basePath to selected keys