@stemy/ngx-utils 11.0.0 → 11.0.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.
@@ -754,7 +754,15 @@
754
754
  var CONFIG_SERVICE = new core.InjectionToken("config-service");
755
755
  var BASE_CONFIG = new core.InjectionToken("base-config");
756
756
  var SCRIPT_PARAMS = new core.InjectionToken("script-params");
757
- var ERROR_HANDLER = new core.InjectionToken("error-handler-callback");
757
+ var ERROR_HANDLER = new core.InjectionToken("error-handler-callback");
758
+ // --- Valued promise ---
759
+ var ValuedPromise = /** @class */ (function (_super) {
760
+ __extends(ValuedPromise, _super);
761
+ function ValuedPromise() {
762
+ return _super !== null && _super.apply(this, arguments) || this;
763
+ }
764
+ return ValuedPromise;
765
+ }(Promise));
758
766
 
759
767
  var AjaxRequestHandler = /** @class */ (function () {
760
768
  function AjaxRequestHandler(pattern, callback) {
@@ -3152,7 +3160,8 @@
3152
3160
  _this.http.get(configUrl).toPromise().then(function (response) {
3153
3161
  resolve(response);
3154
3162
  }, function () {
3155
- reject("Config file not found at: " + configUrl);
3163
+ console.error("Config file not found at: " + configUrl);
3164
+ resolve({});
3156
3165
  });
3157
3166
  });
3158
3167
  };
@@ -5799,15 +5808,14 @@
5799
5808
  {
5800
5809
  provide: CONFIG_SERVICE,
5801
5810
  useExisting: (!config ? null : config.configService) || ConfigService
5802
- }
5803
- ], (config && config.configService ? [
5811
+ },
5804
5812
  {
5805
5813
  provide: core.APP_INITIALIZER,
5806
- useFactory: loadConfig,
5814
+ useFactory: (!config ? null : config.initializeApp) || loadConfig,
5807
5815
  multi: true,
5808
- deps: [CONFIG_SERVICE]
5816
+ deps: [(!config ? null : config.initializeApp) ? core.Injector : CONFIG_SERVICE]
5809
5817
  }
5810
- ] : []))
5818
+ ])
5811
5819
  };
5812
5820
  };
5813
5821
  return NgxUtilsModule;
@@ -5929,6 +5937,7 @@
5929
5937
  exports.UnorderedListItemDirective = UnorderedListItemDirective;
5930
5938
  exports.UnorderedListTemplateDirective = UnorderedListTemplateDirective;
5931
5939
  exports.UnorederedListTemplate = UnorederedListTemplate;
5940
+ exports.ValuedPromise = ValuedPromise;
5932
5941
  exports.ValuesPipe = ValuesPipe;
5933
5942
  exports.Vector = Vector;
5934
5943
  exports.ɵa = pipes;