lib/index.js
function (object, options, callback) {
        if (!options.outputVersion || !semver.valid(options.outputVersion, true)) {
            return callback(new Error('Output version not specified or invalid: ' + options.outputVersion));
        }
        if (!options.inputVersion || !semver.valid(options.inputVersion, true)) {
            return callback(new Error('Input version not specified or invalid: ' + options.inputVersion));
        }

        return converter.convertSingle(object, options, callback);
    }
function (object, options, callback) {
        if (!options.outputVersion || !semver.valid(options.outputVersion, true)) {
            return callback(new Error('Output version not specified or invalid: ' + options.outputVersion));
        }
        if (!options.inputVersion || !semver.valid(options.inputVersion, true)) {
            return callback(new Error('Input version not specified or invalid: ' + options.inputVersion));
        }

        return converter.convertSingle(object, options, callback);
    }
function ( object , options , callback ) { if ( ! options . outputVersion || ! semver . valid ( options . outputVersion , true ) ) { return callback ( new Error ( 'Output version not specified or invalid: ' + options . outputVersion ) ) ; } if ( ! options . inputVersion || ! semver . valid ( options . inputVersion , true ) ) { return callback ( new Error ( 'Input version not specified or invalid: ' + options . inputVersion ) ) ; } return converter . convertSingle ( object , options , callback ) ; }
Converts a single V1 request to a V2 Item, or a V2 item to a single V1 request.

@param {Object} object - A V1 request or a V2 item.
@param {Object} options - The set of options for response conversion.
@param {String} options.outputVersion - The version to convert to.
@param {String} options.inputVersion - The version to convert from.
@param {Function} callback - The function invoked to mark the completion of the conversion process.
Converts a single V1 request to a V2 Item or a V2 item to a single V1 request .