fix: Export alias reference error

Signed-off-by: Jack Palmer <jackpalmer@spotify.com>
This commit is contained in:
Jack Palmer
2023-03-30 09:50:25 +01:00
parent 960c1cf13d
commit 153f2427b4
2 changed files with 14 additions and 15 deletions
@@ -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;
+1 -15
View File
@@ -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';