mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Add getBaseRegistryUrl dep to attemptInstallByInfoInjectable (#4590)
This commit is contained in:
parent
43c16d6203
commit
8f194b87c3
@ -22,10 +22,12 @@ import type { Injectable } from "@ogre-tools/injectable";
|
|||||||
import { lifecycleEnum } from "@ogre-tools/injectable";
|
import { lifecycleEnum } from "@ogre-tools/injectable";
|
||||||
import { attemptInstallByInfo, ExtensionInfo } from "./attempt-install-by-info";
|
import { attemptInstallByInfo, ExtensionInfo } from "./attempt-install-by-info";
|
||||||
import attemptInstallInjectable from "../attempt-install/attempt-install.injectable";
|
import attemptInstallInjectable from "../attempt-install/attempt-install.injectable";
|
||||||
|
import getBaseRegistryUrlInjectable from "../get-base-registry-url/get-base-registry-url.injectable";
|
||||||
|
|
||||||
const attemptInstallByInfoInjectable: Injectable<(extensionInfo: ExtensionInfo) => Promise<void>, {}> = {
|
const attemptInstallByInfoInjectable: Injectable<(extensionInfo: ExtensionInfo) => Promise<void>, {}> = {
|
||||||
getDependencies: di => ({
|
getDependencies: di => ({
|
||||||
attemptInstall: di.inject(attemptInstallInjectable),
|
attemptInstall: di.inject(attemptInstallInjectable),
|
||||||
|
getBaseRegistryUrl: di.inject(getBaseRegistryUrlInjectable),
|
||||||
}),
|
}),
|
||||||
|
|
||||||
instantiate: attemptInstallByInfo,
|
instantiate: attemptInstallByInfo,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user