chore: added dependencies

Signed-off-by: Gabriel <gaccettola@mirantis.com>
This commit is contained in:
Gabriel authored and Sebastian Malton committed 2023-05-03 14:24:14 -07:00
1 parent f9ea643320
commit d27c6ff678
14 files changed
+2515 -1536

No files matched your search

@@ -3,9 +3,8 @@
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import type { Injectable } from "@ogre-tools/injectable";
import { asLegacyGlobalForExtensionApi } from "./as-legacy-global-object-for-extension-api";
import { getLegacyGlobalDiForExtensionApi } from "./legacy-global-di-for-extension-api";
import { loggerInjectable } from "@k8slens/logger";
import { asLegacyGlobalForExtensionApi, getLegacyGlobalDiForExtensionApi } from "@k8slens/legacy-global-di";
import { loggerInjectionToken } from "@k8slens/logger";
export interface LegacySingleton<T> {
createInstance(): T;
@@ -32,7 +31,7 @@ export function asLegacyGlobalSingletonForExtensionApi<Instance, InstantiationPa
resetInstance: () => {
const di = getLegacyGlobalDiForExtensionApi();
const logger = di.inject(loggerInjectable);
const logger = di.inject(loggerInjectionToken);
logger.warn(
`resetInstance() for a legacy global singleton of "${injectable.id}" does nothing.`,
@@ -28,6 +28,7 @@ import { setLegacyGlobalDiForExtensionApi } from "@k8slens/legacy-global-di";
import { registerMobX } from "@ogre-tools/injectable-extension-for-mobx";
import { registerFeature } from "@k8slens/feature-core";
import { messagingFeature, testUtils as messagingTestUtils } from "@k8slens/messaging";
import { loggerFeature } from "@k8slens/logger";
export function getDiForUnitTesting() {
const environment = "main";
@@ -40,8 +41,9 @@ export function getDiForUnitTesting() {
runInAction(() => {
registerFeature(di,
messagingFeature,
messagingTestUtils.messagingFeatureForUnitTesting
messagingFeature,
messagingTestUtils.messagingFeatureForUnitTesting,
loggerFeature,
);
});
@@ -13,7 +13,7 @@ import type { ShowNotification } from "../notifications";
import { Button } from "@k8slens/button";
import type { KubeObjectDetailsProps } from "../kube-object-details";
import { ConfigMap } from "@k8slens/kube-object";
import type { Logger } from "../../../common/logger";
import type { Logger } from "@k8slens/logger";
import type { ConfigMapStore } from "./store";
import { withInjectables } from "@ogre-tools/injectable-react";
import configMapStoreInjectable from "./store.injectable";
@@ -14,7 +14,7 @@ import type { KubeObjectDetailsProps } from "../kube-object-details";
import { Input } from "../input";
import type { AdditionalPrinterColumnsV1, KubeObjectMetadata, KubeObjectStatus } from "@k8slens/kube-object";
import { CustomResourceDefinition, KubeObject } from "@k8slens/kube-object";
import type { Logger } from "../../../common/logger";
import type { Logger } from "@k8slens/logger";
import { withInjectables } from "@ogre-tools/injectable-react";
import { loggerInjectionToken } from "@k8slens/logger";
@@ -16,7 +16,7 @@ import type { CronJobStore } from "./store";
import type { KubeObjectDetailsProps } from "../kube-object-details";
import type { Job } from "@k8slens/kube-object";
import { CronJob } from "@k8slens/kube-object";
import type { Logger } from "../../../common/logger";
import type { Logger } from "@k8slens/logger";
import { withInjectables } from "@ogre-tools/injectable-react";
import type { SubscribeStores } from "../../kube-watch-api/kube-watch-api";
import subscribeStoresInjectable from "../../kube-watch-api/subscribe-stores.injectable";
@@ -34,10 +34,11 @@ export const getDiForUnitTesting = () => {
runInAction(() => {
registerFeature(di,
messagingFeature,
messagingTestUtils.messagingFeatureForUnitTesting,
routingFeature,
loggerFeature);
messagingFeature,
messagingTestUtils.messagingFeatureForUnitTesting,
routingFeature,
loggerFeature,
);
});
di.preventSideEffects();