update-manager.js
function update(options) {

    var reqOpt = {
        host: url.parse(options.updateVersionURL).host,
        uri: url.parse(options.updateVersionURL),
        path: url.parse(options.updateVersionURL).pathname,
        port: options.port
    };

    options.error = options.error || function () {
    };
    options.success = options.success || function () {
    };


    doLog = options.log || false;
    log(doLog);
    _handleUpdateProcess(reqOpt, options);
}
function update(options) {

    var reqOpt = {
        host: url.parse(options.updateVersionURL).host,
        uri: url.parse(options.updateVersionURL),
        path: url.parse(options.updateVersionURL).pathname,
        port: options.port
    };

    options.error = options.error || function () {
    };
    options.success = options.success || function () {
    };


    doLog = options.log || false;
    log(doLog);
    _handleUpdateProcess(reqOpt, options);
}
function update ( options ) { var reqOpt = { host : url . parse ( options . updateVersionURL ) . host , uri : url . parse ( options . updateVersionURL ) , path : url . parse ( options . updateVersionURL ) . pathname , port : options . port } ; options . error = options . error || function ( ) { } ; options . success = options . success || function ( ) { } ; doLog = options . log || false ; log ( doLog ) ; _handleUpdateProcess ( reqOpt , options ) ; }
parses the given URL and passes to handler
@param {options} contains URL to the remote version-file
parses the given URL and passes to handler