message: added name and version to user-agent header
diff: @@ -84,6 +84,13 @@ Object.assign(Application.prototype, {
  this.options.baseUrl = "https://api-xero-com-" + this.options["runscopeBucketId"] + ".runscope.net";
  }
  + const PKG_JSON = require('../package.json')
  + const XERO_APP_NAME = PKG_JSON.name;
  + const XERO_VERSION = PKG_JSON.version;
  +
  + //Include the SDK name and version in the user-agent
  + this.options.userAgent += ' (' + XERO_APP_NAME + ' - v' + XERO_VERSION + ')';
  +
  this.eventEmitter = new events.EventEmitter();
  },
  post: function(path, body, options, callback) {
  