ng-easycommerce-v18 0.3.19-beta.3 → 0.3.19-beta.5

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.
@@ -1,16 +1,22 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
3
  import { RuntimeConfig } from '../interfaces/runtime-config';
4
+ import { Environment } from '../interfaces';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class RuntimeConfigService {
6
7
  private platformId;
7
8
  private http;
9
+ private environment;
8
10
  private configSubject;
9
11
  config$: Observable<RuntimeConfig | null>;
10
12
  private _config;
11
13
  private _loadPromise;
12
14
  private _isLoaded;
13
- constructor(platformId: Object, http: HttpClient);
15
+ constructor(platformId: Object, http: HttpClient, environment: Environment | null);
16
+ /**
17
+ * Obtiene configuración de fallback desde environment.ts
18
+ */
19
+ private getFallbackConfig;
14
20
  /**
15
21
  * Inicialización única - llamada por APP_INITIALIZER
16
22
  * Garantiza que la configuración se carga solo una vez al inicio
@@ -58,6 +64,6 @@ export declare class RuntimeConfigService {
58
64
  * Método helper para construir URLs del frontend
59
65
  */
60
66
  buildFrontendUrl(path: string): string;
61
- static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeConfigService, never>;
67
+ static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeConfigService, [null, null, { optional: true; }]>;
62
68
  static ɵprov: i0.ɵɵInjectableDeclaration<RuntimeConfigService>;
63
69
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ng-easycommerce-v18",
3
- "version": "0.3.19-beta.3",
3
+ "version": "0.3.19-beta.5",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.0",
6
6
  "@angular/core": "^18.2.0"