(webBaseUrl: string, organizationSlug?: string | null)
| 30 | */ |
| 31 | export const artifactUrlFor = |
| 32 | (webBaseUrl: string, organizationSlug?: string | null) => |
| 33 | (artifactId: string): string => { |
| 34 | const orgPath = organizationSlug ? `/${encodeURIComponent(organizationSlug)}` : ""; |
| 35 | return new URL(`${orgPath}/artifacts/${encodeURIComponent(artifactId)}`, webBaseUrl).toString(); |
| 36 | }; |
| 37 | |
| 38 | // --------------------------------------------------------------------------- |
| 39 | // Code guard |
no test coverage detected