From 153f2427b4f5e230c43d754c9fe3c28a1dd815b9 Mon Sep 17 00:00:00 2001 From: Jack Palmer Date: Thu, 30 Mar 2023 09:50:25 +0100 Subject: [PATCH] fix: Export alias reference error Signed-off-by: Jack Palmer --- .../src/discovery/HostDiscovery.ts | 13 +++++++++++++ packages/backend-common/src/discovery/index.ts | 16 +--------------- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/packages/backend-common/src/discovery/HostDiscovery.ts b/packages/backend-common/src/discovery/HostDiscovery.ts index e8af78b064..e2bd79824a 100644 --- a/packages/backend-common/src/discovery/HostDiscovery.ts +++ b/packages/backend-common/src/discovery/HostDiscovery.ts @@ -118,3 +118,16 @@ export class HostDiscovery implements PluginEndpointDiscovery { return `${this.externalBaseUrl}/${pluginId}`; } } + +/** + * SingleHostDiscovery is a basic PluginEndpointDiscovery implementation + * that assumes that all plugins are hosted in a single deployment. + * + * The deployment may be scaled horizontally, as long as the external URL + * is the same for all instances. However, internal URLs will always be + * resolved to the same host, so there won't be any balancing of internal traffic. + * + * @public + * @deprecated Use {@link HostDiscovery} instead + */ +export const SingleHostDiscovery = HostDiscovery; diff --git a/packages/backend-common/src/discovery/index.ts b/packages/backend-common/src/discovery/index.ts index 335199049f..5c7f5300c0 100644 --- a/packages/backend-common/src/discovery/index.ts +++ b/packages/backend-common/src/discovery/index.ts @@ -13,19 +13,5 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - -import { HostDiscovery } from './HostDiscovery'; -/** - * SingleHostDiscovery is a basic PluginEndpointDiscovery implementation - * that assumes that all plugins are hosted in a single deployment. - * - * The deployment may be scaled horizontally, as long as the external URL - * is the same for all instances. However, internal URLs will always be - * resolved to the same host, so there won't be any balancing of internal traffic. - * - * @public - * @deprecated Use {@link HostDiscovery} instead - */ -export const SingleHostDiscovery = HostDiscovery; -export { HostDiscovery } from './HostDiscovery'; +export { HostDiscovery, SingleHostDiscovery } from './HostDiscovery'; export type { PluginEndpointDiscovery } from './types';