make methods public

This commit is contained in:
Jacob Overgaard
2023-02-27 13:26:43 +01:00
parent 3d9313d4e9
commit 5ec64f85da

View File

@@ -20,8 +20,8 @@ export class UmbPackageRepository {
this.#init = new Promise((res) => {
new UmbContextConsumerController(host, UMB_PACKAGE_STORE_TOKEN, (instance) => {
this.#packageStore = instance;
this.#requestRootItems(instance);
this.#requestPackageMigrations(instance);
this.requestRootItems(instance);
this.requestPackageMigrations(instance);
res();
});
});
@@ -30,9 +30,8 @@ export class UmbPackageRepository {
/**
* Request the root items from the Data Source
* @memberOf UmbPackageRepository
* @private
*/
async #requestRootItems(store: UmbPackageStore) {
async requestRootItems(store: UmbPackageStore) {
if (store.isPackagesLoaded) {
return;
}
@@ -57,7 +56,11 @@ export class UmbPackageRepository {
}
}
async #requestPackageMigrations(store: UmbPackageStore) {
/**
* Request the package migrations from the Data Source
* @memberOf UmbPackageRepository
*/
async requestPackageMigrations(store: UmbPackageStore) {
const { data: migrations } = await this.#packageSource.getPackageMigrations();
if (migrations) {