lib/command/update.js
function loadCurrentVersion (options, context) {
  return new Extension(options, context).read()
    .then(function (response) {
      let version = response.sys.version;

      options.version = version;
      return options;
    });
}
function loadCurrentVersion (options, context) {
  return new Extension(options, context).read()
    .then(function (response) {
      let version = response.sys.version;

      options.version = version;
      return options;
    });
}
function loadCurrentVersion ( options , context ) { return new Extension ( options , context ) . read ( ) . then ( function ( response ) { let version = response . sys . version ; options . version = version ; return options ; } ) ; }
GETs the extension from the server and extends `options` with the
current version.
GETs the extension from the server and extends options with the current version .