Skip to content

feat: upto scheme updates#19

Merged
dixitaniket merged 8 commits intomainfrom
ani/scheme-updates
Apr 24, 2026
Merged

feat: upto scheme updates#19
dixitaniket merged 8 commits intomainfrom
ani/scheme-updates

Conversation

@dixitaniket
Copy link
Copy Markdown
Collaborator

@dixitaniket dixitaniket commented Apr 9, 2026

  • adds upstream upto changes and support for x402 official permit contracts

@socket-security
Copy link
Copy Markdown

socket-security Bot commented Apr 9, 2026

All alerts resolved. Learn more about Socket for GitHub.

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report

this.url = config?.url || DEFAULT_FACILITATOR_URL;
// Normalize URL: strip trailing slashes to prevent redirect loops (e.g. 308)
// when constructing endpoint paths like `${url}/supported`
this.url = (config?.url || DEFAULT_FACILITATOR_URL).replace(/\/+$/, "");
routePattern: string,
urlPath: string,
): { routeTemplate: string; pathParams: Record<string, string> } | null {
const hasBracket = BRACKET_PARAM_REGEX.test(routePattern);
// When both [param] and :param are present, normalize brackets to colons first
// so all params are extracted uniformly.
const normalizedPattern = hasBracket
? routePattern.replace(BRACKET_PARAM_REGEX_ALL, ":$1")
// Split on param markers so literal segments can be regex-escaped independently.
// Without escaping, a route like /api/v1.0/[id] would produce a regex where '.' matches
// any character (e.g. /api/v1X0/123 would incorrectly match).
const parts = routePattern.split(splitRegex);
@dixitaniket dixitaniket merged commit acabfad into main Apr 24, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants