New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github-url-detection

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-url-detection - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

1

cjs/index.d.ts

@@ -45,2 +45,3 @@ export declare const is404: () => boolean;

export declare const isRepoSettings: (url?: URL | Location) => boolean;
export declare const isRepoMainSettings: (url?: URL | Location) => boolean;
export declare const isRepoTree: (url?: URL | Location) => boolean;

@@ -47,0 +48,0 @@ export declare const isRepoWithAccess: () => boolean;

@@ -172,2 +172,4 @@ "use strict";

exports.isRepoMainSettings = (url = location) => "settings" === getRepoPath(url);
exports.isRepoPRList = isRepoPRList;

@@ -174,0 +176,0 @@

@@ -45,2 +45,3 @@ export declare const is404: () => boolean;

export declare const isRepoSettings: (url?: URL | Location) => boolean;
export declare const isRepoMainSettings: (url?: URL | Location) => boolean;
export declare const isRepoTree: (url?: URL | Location) => boolean;

@@ -47,0 +48,0 @@ export declare const isRepoWithAccess: () => boolean;

4

esm/index.js

@@ -91,2 +91,4 @@ var reservedNames = [ "400", "401", "402", "403", "404", "405", "406", "407", "408", "409", "410", "411", "412", "413", "414", "415", "416", "417", "418", "419", "420", "421", "422", "423", "424", "425", "426", "427", "428", "429", "430", "431", "500", "501", "502", "503", "504", "505", "506", "507", "508", "509", "510", "511", "about", "access", "account", "admin", "anonymous", "any", "api", "apps", "attributes", "auth", "billing", "blob", "blog", "bounty", "branches", "business", "businesses", "c", "cache", "case-studies", "categories", "central", "certification", "changelog", "cla", "cloud", "codereview", "collection", "collections", "comments", "commit", "commits", "community", "companies", "compare", "contact", "contributing", "cookbook", "coupons", "customer", "customers", "dashboard", "dashboards", "design", "develop", "developer", "diff", "discover", "discussions", "docs", "downloads", "downtime", "editor", "editors", "edu", "enterprise", "events", "explore", "featured", "features", "files", "fixtures", "forked", "garage", "ghost", "gist", "gists", "graphs", "guide", "guides", "help", "help-wanted", "home", "hooks", "hosting", "hovercards", "identity", "images", "inbox", "individual", "info", "integration", "interfaces", "introduction", "invalid-email-address", "investors", "issues", "jobs", "join", "journal", "journals", "lab", "labs", "languages", "launch", "layouts", "learn", "legal", "library", "linux", "listings", "lists", "login", "logos", "logout", "mac", "maintenance", "malware", "man", "marketplace", "mention", "mentioned", "mentioning", "mentions", "migrating", "milestones", "mine", "mirrors", "mobile", "navigation", "network", "new", "news", "none", "nonprofit", "nonprofits", "notices", "notifications", "oauth", "offer", "open-source", "organisations", "organizations", "orgs", "pages", "partners", "payments", "personal", "plans", "plugins", "popular", "popularity", "posts", "press", "pricing", "professional", "projects", "pulls", "raw", "readme", "recommendations", "redeem", "releases", "render", "reply", "repositories", "resources", "restore", "revert", "save-net-neutrality", "saved", "scraping", "search", "security", "services", "sessions", "settings", "shareholders", "shop", "showcases", "signin", "signup", "site", "spam", "sponsors", "ssh", "staff", "starred", "stars", "static", "status", "statuses", "storage", "store", "stories", "styleguide", "subscriptions", "suggest", "suggestion", "suggestions", "support", "suspended", "talks", "teach", "teacher", "teachers", "teaching", "teams", "ten", "terms", "timeline", "topic", "topics", "tos", "tour", "train", "training", "translations", "tree", "trending", "updates", "username", "users", "visualization", "w", "watching", "wiki", "windows", "works-with", "www0", "www1", "www2", "www3", "www4", "www5", "www6", "www7", "www8", "www9" ];

const isRepoMainSettings = (url = location) => "settings" === getRepoPath(url);
const isRepoTree = (url = location) => isRepoRoot(url) || String(getRepoPath(url)).startsWith("tree/");

@@ -143,2 +145,2 @@

export { hasCode, hasComments, hasRichTextEditor, is404, is500, isActionJobRun, isActionPage, isBlame, isBranches, isCommit, isCommitList, isCompare, isConflict, isDashboard, isDiscussionList, isEditingFile, isEnterprise, isFileFinder, isForkedRepo, isGist, isGlobalDiscussionList, isGlobalSearchResults, isIssue, isLabelList, isMilestone, isMilestoneList, isNewIssue, isNewRelease, isNotifications, isOrganizationDiscussion, isOrganizationProfile, isOwnOrganizationProfile, isOwnUserProfile, isPR, isPRCommit, isPRCommitList, isPRConversation, isPRFiles, isPRList, isProject, isQuickPR, isReleasesOrTags, isRepo, isRepoCommitList, isRepoDiscussionList, isRepoIssueList, isRepoPRList, isRepoRoot, isRepoSearch, isRepoSettings, isRepoTaxonomyDiscussionList, isRepoTree, isRepoWithAccess, isSingleCommit, isSingleFile, isSingleGist, isSingleTagPage, isTrending, isUserProfile, isUserProfileRepoTab, utils };
export { hasCode, hasComments, hasRichTextEditor, is404, is500, isActionJobRun, isActionPage, isBlame, isBranches, isCommit, isCommitList, isCompare, isConflict, isDashboard, isDiscussionList, isEditingFile, isEnterprise, isFileFinder, isForkedRepo, isGist, isGlobalDiscussionList, isGlobalSearchResults, isIssue, isLabelList, isMilestone, isMilestoneList, isNewIssue, isNewRelease, isNotifications, isOrganizationDiscussion, isOrganizationProfile, isOwnOrganizationProfile, isOwnUserProfile, isPR, isPRCommit, isPRCommitList, isPRConversation, isPRFiles, isPRList, isProject, isQuickPR, isReleasesOrTags, isRepo, isRepoCommitList, isRepoDiscussionList, isRepoIssueList, isRepoMainSettings, isRepoPRList, isRepoRoot, isRepoSearch, isRepoSettings, isRepoTaxonomyDiscussionList, isRepoTree, isRepoWithAccess, isSingleCommit, isSingleFile, isSingleGist, isSingleTagPage, isTrending, isUserProfile, isUserProfileRepoTab, utils };
{
"name": "github-url-detection",
"version": "1.1.1",
"version": "1.1.2",
"description": "Which GitHub page are you on? Is it an issue? Is it a list? Perfect for your WebExtension or userscript.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -1,2 +0,2 @@

# github-url-detection [![][badge-gzip]][link-bundlephobia]
# <img width="438" align="right" src="https://user-images.githubusercontent.com/1402241/81425503-01b4d800-9158-11ea-9406-484a1ff37968.png"> github-url-detection [![][badge-gzip]][link-bundlephobia]

@@ -76,5 +76,9 @@ [badge-gzip]: https://img.shields.io/bundlephobia/minzip/github-url-detection.svg?label=gzipped

## Related
- [github-reserved-names](https://github.com/Mottie/github-reserved-names) - Get a list, or check if a user or organization name is reserved by GitHub.
- [shorten-repo-url](https://github.com/fregante/shorten-repo-url) - Shorten GitHub links like GitHub shortens Issues and Commit links.
## License
MIT © [Federico Brigante](https://bfred.it)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc