lib/converters/v1.0.0/converter-v1-to-v2.js
function (request, options, callback) {
        var builders = new Builders(options),
            converted,
            err;

        try {
            converted = builders.singleItem(_.cloneDeep(request));
        }
        catch (e) {
            err = e;
        }

        if (callback) {
            return callback(err, converted);
        }

        if (err) {
            throw err;
        }

        return converted;
    }
function (request, options, callback) {
        var builders = new Builders(options),
            converted,
            err;

        try {
            converted = builders.singleItem(_.cloneDeep(request));
        }
        catch (e) {
            err = e;
        }

        if (callback) {
            return callback(err, converted);
        }

        if (err) {
            throw err;
        }

        return converted;
    }
function ( request , options , callback ) { var builders = new Builders ( options ) , converted , err ; try { converted = builders . singleItem ( _ . cloneDeep ( request ) ) ; } catch ( e ) { err = e ; } if ( callback ) { return callback ( err , converted ) ; } if ( err ) { throw err ; } return converted ; }
Converts a single V1 request to a V2 item.

@param {Object} request - The v1 request to convert to v2.
@param {Object} options - The set of options for v1 -> v2 conversion.
@param {Function} callback - The function to be invoked when the conversion has completed.
Converts a single V1 request to a V2 item .