@aakash58/chatbot 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ import { CommonModule } from '@angular/common';
3
3
  import * as i1 from '@angular/common/http';
4
4
  import { HttpHeaders, HttpErrorResponse, HttpEventType, HttpClient, provideHttpClient, HTTP_INTERCEPTORS, withInterceptorsFromDi } from '@angular/common/http';
5
5
  import * as i0 from '@angular/core';
6
- import { isDevMode, Injectable, signal, inject, effect, EventEmitter, Output, Input, Component, Pipe, ViewChild, Inject, HostListener, Directive, InjectionToken, computed, ChangeDetectionStrategy, ChangeDetectorRef, ElementRef, ViewEncapsulation, provideAppInitializer, ContentChildren } from '@angular/core';
6
+ import { isDevMode, Injectable, signal, inject, effect, EventEmitter, Output, Input, Component, Pipe, ViewChild, Inject, HostListener, Directive, InjectionToken, computed, ChangeDetectionStrategy, ChangeDetectorRef, ElementRef, ViewEncapsulation, APP_INITIALIZER, ContentChildren } from '@angular/core';
7
7
  import { DomSanitizer, bootstrapApplication } from '@angular/platform-browser';
8
8
  import { ReplaySubject, delay, retry, map, catchError, of, BehaviorSubject, firstValueFrom, throwError, tap, switchMap, filter, take, Observable, Subject, lastValueFrom } from 'rxjs';
9
9
  import { JwtHelperService } from '@auth0/angular-jwt';
@@ -4785,13 +4785,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.14", ngImpo
4785
4785
  //! ================== INITIALIZATION =======================
4786
4786
  function initializeApp() {
4787
4787
  const appConst = inject(AppConst);
4788
- return appConst.load(); // Returns a Promise
4788
+ return () => appConst.load(); // Returns a function that returns a Promise
4789
4789
  }
4790
4790
  bootstrapApplication(Doohbot, {
4791
4791
  providers: [
4792
4792
  provideHttpClient(withInterceptorsFromDi()),
4793
4793
  AppConst,
4794
- provideAppInitializer(initializeApp),
4794
+ {
4795
+ provide: APP_INITIALIZER,
4796
+ useFactory: initializeApp,
4797
+ multi: true,
4798
+ },
4795
4799
  {
4796
4800
  provide: HTTP_INTERCEPTORS,
4797
4801
  useClass: AuthInterceptor,