message: Moved debaseUrl alphabetically to top of file.
diff: @@ -29,6 +29,19 @@ const sharedRelativeUrlProperties =
  */
  export type UrlString = string;
  +/**
  + * Returns a URL with the basename removed from the pathname. Strips the
  + * search off of the URL as well, since it will not apply.
  + */
  +export function debaseUrl(href: UrlString): UrlString {
  + const u = url.parse(href);
  + if (typeof u.pathname === 'string') {
  + u.pathname = path.dirname(u.pathname + '_').replace(/_$/, '') + '/';
  + }
  + u.search = undefined;
  + return url.format(u);
  +}
  +
  /**
  * Returns true if the href is an absolute path.
  */
  @@ -92,16 +105,3 @@ export function rewriteImportedRelPath(
  }
  return absUrl;
  }
  -
  -/**
  - * Returns a URL with the basename removed from the pathname. Strips the
  - * search off of the URL as well, since it will not apply.
  - */
  -export function debaseUrl(href: UrlString): UrlString {
  - const u = url.parse(href);
  - if (typeof u.pathname === 'string') {
  - u.pathname = path.dirname(u.pathname + '_').replace(/_$/, '') + '/';
  - }
  - u.search = undefined;
  - return url.format(u);
  -}
  