cleanup auth-utils and remove example files
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
7b5bfcee52
commit
1f4e42c09e
1 changed files with 29 additions and 389 deletions
|
|
@ -23,14 +23,6 @@ export function validateResourceUri(resourceUri: string): void {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes fragment from URI to make it RFC 8707 compliant.
|
||||
* @deprecated Use resourceUrlFromServerUrl instead
|
||||
*/
|
||||
export function canonicalizeResourceUri(resourceUri: string): string {
|
||||
return resourceUrlFromServerUrl(resourceUri);
|
||||
}
|
||||
|
||||
/**
|
||||
* Extracts resource URI from server URL by removing fragment.
|
||||
* @param serverUrl The server URL to extract from
|
||||
|
|
@ -38,7 +30,4 @@ export function canonicalizeResourceUri(resourceUri: string): string {
|
|||
*/
|
||||
export function extractResourceUri(serverUrl: string | URL): string {
|
||||
return resourceUrlFromServerUrl(typeof serverUrl === 'string' ? serverUrl : serverUrl.href);
|
||||
}
|
||||
|
||||
// Backward compatibility alias
|
||||
export const extractCanonicalResourceUri = extractResourceUri;
|
||||
}
|
||||
Loading…
Reference in a new issue