Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix url construction #40

Merged
merged 3 commits into from
Aug 15, 2023
Merged

Fix url construction #40

merged 3 commits into from
Aug 15, 2023

Conversation

jpuri
Copy link
Collaborator

@jpuri jpuri commented Aug 15, 2023

Add method to safely create URL.

@jpuri jpuri requested a review from a team as a code owner August 15, 2023 10:24
src/util.ts Outdated
@@ -48,3 +49,10 @@ export const validateSignature = async (
throw Error(`Signature verification failed for file path: ${filePath}`);
}
};

export const constructURL = (base: string, path: string): string =>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[suggestion] maybe we can rename this to constructURLHref since we are returning the href rather than URL object

@jpuri jpuri requested a review from digiwand August 15, 2023 12:40
@jpuri jpuri merged commit d54cce6 into main Aug 15, 2023
16 checks passed
@jpuri jpuri deleted the fix_url_construction branch August 15, 2023 14:46
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.

2 participants