code: function transformOptions (options) {
    if (options.codeBundleId && options.appVersion) {
      delete options.appVersion
    }
    if (options.addWildcardPrefix && options.minifiedUrl) {
      if (options.minifiedUrl.indexOf('://') === -1 && options.minifiedUrl[0] !== '*') { options.minifiedUrl = '*' + options.minifiedUrl }
    }
    if (options.stripProjectRoot) {
      options.tempDir = fs.mkdtempSync(path.join(os.tmpdir(), 'bugsnag-sourcemaps'))
      return transformSourcesMap(options)
    }
    return options
  }
docs: Does any last-minute transformations to the options before preparing the request.
  
  1) Removes the "appVersion" option if the "codeBundleId" is set.
  2) Extracts the source paths from the source map and adds them to the "sources" option.
  
  @param {object} options The options
  @returns {Promise<object>|object}