lib/travis-status-checker.js
function TravisStatusChecker(options) {
  if (options && typeof options !== 'object') {
    throw new TypeError('options must be an object');
  }
  options = options || {};

  const apiEndpoint = options.apiEndpoint && trimSlash(options.apiEndpoint);
  this._travis = new Travis({
    pro: apiEndpoint === constants.PRO_URI,
    version: '2.0.0'
  });
  this._travis.agent = new TravisStatusHttp(apiEndpoint, options.requestOpts);
  if (options.token) {
    this._travis.agent.setAccessToken(options.token);
  }
}
function TravisStatusChecker(options) {
  if (options && typeof options !== 'object') {
    throw new TypeError('options must be an object');
  }
  options = options || {};

  const apiEndpoint = options.apiEndpoint && trimSlash(options.apiEndpoint);
  this._travis = new Travis({
    pro: apiEndpoint === constants.PRO_URI,
    version: '2.0.0'
  });
  this._travis.agent = new TravisStatusHttp(apiEndpoint, options.requestOpts);
  if (options.token) {
    this._travis.agent.setAccessToken(options.token);
  }
}
Options for {@link TravisStatusChecker}.

@typedef {{
apiEndpoint: string|undefined,
requestOpts: Object|undefined,
token: string|undefined
}} TravisStatusCheckerOptions
@property {string=} apiEndpoint Travis API server to talk to
@property {Object=} requestOpts Options for Travis CI API requests (suitable
for the {@link https://www.npmjs.com/package/request request module}).
Callers are encouraged to pass the <code>agent</code> or
<code>forever</code> options to leverage TCP keep-alive across requests.
@property {string=} token access token to use for Travis CI API requests
 var TravisStatusCheckerOptions; Creates a status checker for Travis CI.

@constructor
@param {TravisStatusCheckerOptions=} options Options.