src/jira.js
/**
   * @name makeUri
   * @function
   * Creates a URI object for a given pathname
   * @param {object} [options] - an object containing path information
   */
@name makeUri
@function
Creates a URI object for a given pathname
@param {object} [options] - an object containing path information
@name makeUri @function Creates a URI object for a given pathname @param { object } [ options ] - an object containing path information
makeUri({
    pathname, query, intermediatePath, encode = false,
  }) {
    const intermediateToUse = this.intermediatePath || intermediatePath;
    const tempPath = intermediateToUse || `/rest/api/${this.apiVersion}`;
    const uri = url.format({
      protocol: this.protocol,
      hostname: this.host,
      port: this.port,
      pathname: `${this.base}${tempPath}${pathname}`,
      query,
    });
    return encode ? encodeURI(uri) : decodeURIComponent(uri);
  }
makeUri ( { pathname , query , intermediatePath , encode = false , } ) { const intermediateToUse = this . intermediatePath || intermediatePath ; const tempPath = intermediateToUse || ` ${ this . apiVersion } ` ; const uri = url . format ( { protocol : this . protocol , hostname : this . host , port : this . port , pathname : ` ${ this . base } ${ tempPath } ${ pathname } ` , query , } ) ; return encode ? encodeURI ( uri ) : decodeURIComponent ( uri ) ; }
@name makeUri
 @function
 Creates a URI object for a given pathname
 @param {object} [options] - an object containing path information
@name makeUri @function Creates a URI object for a given pathname @param { object } [ options ] - an object containing path information