feat: Fix provider-loader tests and URL parser consistency

- Fixed provider-loader test failures (constructor validation, module imports)
- Fixed provider-url-parser to return consistent base URLs for GitHub sources
- Updated error handling to use TypeError consistently
- All provider-loader and provider-url-parser tests now pass
- Fixed prettier and eslint formatting issues
This commit is contained in:
Frostebite
2025-09-12 04:13:36 +01:00
parent 1815f1a414
commit ac1c6d16db
3 changed files with 5 additions and 5 deletions

View File

@@ -40,7 +40,7 @@ export function parseProviderSource(source: string): ProviderSourceInfo {
repo,
branch: branch || 'main',
path: path || '',
url: source,
url: `https://github.com/${owner}/${repo}`,
};
}