@veloceapps/api 4.0.12 → 4.0.13

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.
@@ -1134,7 +1134,12 @@
1134
1134
  ConfigurationSettingsApiService.prototype.fetchSetting = function (settingsKey, options) {
1135
1135
  return this.httpService
1136
1136
  .api(Object.assign({ url: this.SERVICE_URL + "/byKey/" + settingsKey, method: 'get' }, options))
1137
- .pipe(operators.map(function (setting) { return ConfigurationSettingsDTO.fromDTO(setting, settingsKey); }), operators.catchError(function () { return rxjs.of(null); }));
1137
+ .pipe(operators.map(function (setting) { return ConfigurationSettingsDTO.fromDTO(setting, settingsKey); }), operators.catchError(function (err) {
1138
+ if (err instanceof i5.HttpErrorResponse && err.status === 404) {
1139
+ return rxjs.of(null);
1140
+ }
1141
+ throw err;
1142
+ }));
1138
1143
  };
1139
1144
  ConfigurationSettingsApiService.prototype.createSetting = function (setting, options) {
1140
1145
  var request = ConfigurationSettingsDTO.toDTO(setting);