@osovitny/anatoly 3.19.45 → 3.19.46

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.
@@ -1838,7 +1838,6 @@ class AuthService extends ApiServiceBase {
1838
1838
  this.msalService = msalService;
1839
1839
  this.msalBroadcastService = msalBroadcastService;
1840
1840
  this.msalDestroying$ = new Subject();
1841
- this.init();
1842
1841
  }
1843
1842
  ngOnDestroy() {
1844
1843
  this.msalDestroying$.next(undefined);
@@ -1846,10 +1845,6 @@ class AuthService extends ApiServiceBase {
1846
1845
  }
1847
1846
  setDefaults() {
1848
1847
  }
1849
- init() {
1850
- this.setDefaults();
1851
- this.initMSAL();
1852
- }
1853
1848
  /*
1854
1849
  https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/samples/msal-angular-v3-samples/angular-b2c-sample-app/src/app/app.component.ts
1855
1850
 
@@ -2031,7 +2026,11 @@ class AuthService extends ApiServiceBase {
2031
2026
  }));
2032
2027
  }
2033
2028
  }
2034
- // Public funcs
2029
+ //Public funcs
2030
+ init() {
2031
+ this.setDefaults();
2032
+ this.initMSAL();
2033
+ }
2035
2034
  getActiveAccount() {
2036
2035
  this.checkAndSetActiveAccount();
2037
2036
  return this.msalService.instance.getActiveAccount();
@@ -5278,16 +5277,6 @@ class BillingService {
5278
5277
  });
5279
5278
  });
5280
5279
  }
5281
- addFreeSubscription(planId, addons, subtotal, promoCode, total, currency) {
5282
- this.zone.run(() => {
5283
- this.apiSubscriptions.addFreeSubscription(planId, addons, subtotal, promoCode, total, currency, () => {
5284
- this.fireSubscriptionAdded(false, false);
5285
- this.appContext.updateCurrent();
5286
- }, () => {
5287
- this.fireSubscriptionAdded(false, true);
5288
- });
5289
- });
5290
- }
5291
5280
  static { this.ɵfac = function BillingService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || BillingService)(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(AppContextService), i0.ɵɵinject(PaymentsApiService), i0.ɵɵinject(SubscriptionsApiService), i0.ɵɵinject(NotificationService)); }; }
5292
5281
  static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: BillingService, factory: BillingService.ɵfac }); }
5293
5282
  }