mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Remove legacy apiBase global
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
2478136635
commit
2909674beb
6 files changed
+10
-52
No files matched your search
@@ -5,13 +5,7 @@
|
||||
|
||||
import type { JsonApi } from "./json-api";
|
||||
import { getInjectionToken } from "@ogre-tools/injectable";
|
||||
import { asLegacyGlobalForExtensionApi } from "../../extensions/as-legacy-globals-for-extension-api/as-legacy-global-object-for-extension-api";
|
||||
|
||||
export const apiBaseInjectionToken = getInjectionToken<JsonApi>({
|
||||
id: "api-base-token",
|
||||
});
|
||||
|
||||
/**
|
||||
* @deprecated switch to using apiBaseInjectionToken instead
|
||||
*/
|
||||
export const apiBase = asLegacyGlobalForExtensionApi(apiBaseInjectionToken);
|
||||
@@ -3,5 +3,4 @@
|
||||
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||
*/
|
||||
|
||||
export { apiBase } from "./api-base";
|
||||
export { apiKube } from "./api-kube";
|
||||
Reference in new issue
Block a user