make methods public
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user