Merge pull request #31166 from schultzp2020/constructor-parameters

refactor: convert constructor parameter properties for erasableSyntaxOnly compatibility
This commit is contained in:
Patrik Oldsberg
2025-10-15 18:56:42 +02:00
committed by GitHub
187 changed files with 1893 additions and 728 deletions
+6 -2
View File
@@ -20,12 +20,16 @@ import { DiscoveryApi } from '@backstage/core-plugin-api';
export class AuthProxyDiscoveryApi implements DiscoveryApi {
private urlPatternDiscovery: UrlPatternDiscovery;
private readonly isAuthProxyingEnabled?: boolean;
private readonly authProxyUrl?: string;
constructor(
baseUrl: string,
private readonly isAuthProxyingEnabled?: boolean,
private readonly authProxyUrl?: string,
isAuthProxyingEnabled?: boolean,
authProxyUrl?: string,
) {
this.isAuthProxyingEnabled = isAuthProxyingEnabled;
this.authProxyUrl = authProxyUrl;
this.urlPatternDiscovery = UrlPatternDiscovery.compile(
`${baseUrl}/api/{{ pluginId }}`,
);