mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
23 lines
1.0 KiB
TypeScript
23 lines
1.0 KiB
TypeScript
/**
|
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
*/
|
|
|
|
import { getInjectable, lifecycleEnum } from "@ogre-tools/injectable";
|
|
import extensionLoaderInjectable from "../../../../extensions/extension-loader/extension-loader.injectable";
|
|
import ipcRendererInjectable from "../../../app-paths/get-value-from-registered-channel/ipc-renderer/ipc-renderer.injectable";
|
|
import installFromInputInjectable from "../install-from-input/install-from-input.injectable";
|
|
import { BundledExtensionsUpdater } from "./bundled-extensions-updater";
|
|
|
|
const bundledExtensionsUpdaterInjectable = getInjectable({
|
|
instantiate: (di) =>
|
|
new BundledExtensionsUpdater({
|
|
installFromInput: di.inject(installFromInputInjectable),
|
|
extensions: di.inject(extensionLoaderInjectable).bundledExtensions,
|
|
ipcRenderer: di.inject(ipcRendererInjectable),
|
|
}),
|
|
|
|
lifecycle: lifecycleEnum.singleton,
|
|
});
|
|
|
|
export default bundledExtensionsUpdaterInjectable; |