github-url-detection 6.0.1 → 6.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/distribution/index.js +1 -1
- package/package.json +1 -1
package/distribution/index.js
CHANGED
|
@@ -383,7 +383,7 @@ const doesLookLikeAProfile = (string) => typeof string === "string" && string.le
|
|
|
383
383
|
const isProfile = (url = location) => !isGist(url) && doesLookLikeAProfile(getCleanPathname(url));
|
|
384
384
|
const isGistProfile = (url = location) => doesLookLikeAProfile(getCleanGistPathname(url));
|
|
385
385
|
const isUserProfile = () => isProfile() && !isOrganizationProfile();
|
|
386
|
-
const isPrivateUserProfile = () => isUserProfile() && !exists(
|
|
386
|
+
const isPrivateUserProfile = () => isUserProfile() && !exists('.UnderlineNav-item[href$="tab=stars"]');
|
|
387
387
|
const isUserProfileMainTab = () => isUserProfile() && !new URLSearchParams(location.search).has("tab");
|
|
388
388
|
const isUserProfileRepoTab = (url = location) => isProfile(url) && new URLSearchParams(url.search).get("tab") === "repositories";
|
|
389
389
|
const isUserProfileStarsTab = (url = location) => isProfile(url) && new URLSearchParams(url.search).get("tab") === "stars";
|