@esfaenza/httpservice 11.2.47 → 11.2.48
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.
- package/bundles/esfaenza-httpservice.umd.js +6 -6
- package/bundles/esfaenza-httpservice.umd.js.map +1 -1
- package/bundles/esfaenza-httpservice.umd.min.js +1 -1
- package/bundles/esfaenza-httpservice.umd.min.js.map +1 -1
- package/esm2015/lib/httpservice.service.js +7 -7
- package/fesm2015/esfaenza-httpservice.js +6 -6
- package/fesm2015/esfaenza-httpservice.js.map +1 -1
- package/package.json +1 -1
|
@@ -558,7 +558,7 @@
|
|
|
558
558
|
if (succesfulResultMandatory === void 0) { succesfulResultMandatory = true; }
|
|
559
559
|
if (errorCallback === void 0) { errorCallback = null; }
|
|
560
560
|
// TODO provare e testare
|
|
561
|
-
return rxjs.from(this.defaultStartCall(url)).pipe(operators.concatMap(function (myGuid) {
|
|
561
|
+
return rxjs.from([this.defaultStartCall(url)]).pipe(operators.concatMap(function (myGuid) {
|
|
562
562
|
var cachedInfos = _this.tryGetCacheInformations(url, params);
|
|
563
563
|
if (cachedInfos.cache && cachedInfos.cacheItem) {
|
|
564
564
|
_this.log(_this.loc("Result for") + " " + url + " " + _this.loc("retrieved from cache"));
|
|
@@ -601,7 +601,7 @@
|
|
|
601
601
|
if (transaction === void 0) { transaction = ""; }
|
|
602
602
|
if (succesfulResultMandatory === void 0) { succesfulResultMandatory = true; }
|
|
603
603
|
if (errorCallback === void 0) { errorCallback = null; }
|
|
604
|
-
return rxjs.from(this.defaultStartCall(url)).pipe(operators.concatMap(function (myGuid) {
|
|
604
|
+
return rxjs.from([this.defaultStartCall(url)]).pipe(operators.concatMap(function (myGuid) {
|
|
605
605
|
var cachedInfos = _this.tryGetCacheInformations(url, params);
|
|
606
606
|
if (cachedInfos.cache && cachedInfos.cacheItem) {
|
|
607
607
|
_this.log(_this.loc("Result for") + " " + url + " " + _this.loc("retrieved from cache"));
|
|
@@ -638,7 +638,7 @@
|
|
|
638
638
|
if (params === void 0) { params = null; }
|
|
639
639
|
if (transaction === void 0) { transaction = ""; }
|
|
640
640
|
if (succesfulResultMandatory === void 0) { succesfulResultMandatory = true; }
|
|
641
|
-
return rxjs.from(this.defaultStartCall(url)).pipe(operators.concatMap(function (myGuid) {
|
|
641
|
+
return rxjs.from([this.defaultStartCall(url)]).pipe(operators.concatMap(function (myGuid) {
|
|
642
642
|
var httpCall = _this.http.post(url, bodyData, { headers: _this.getHeaders(transaction), params: params });
|
|
643
643
|
return httpCall.pipe(operators.catchError(function (err, caught) {
|
|
644
644
|
return !succesfulResultMandatory ? rxjs.throwError(err) : _this.registerErrorAndReturnEmptyObservable(err, myGuid);
|
|
@@ -661,7 +661,7 @@
|
|
|
661
661
|
if (params === void 0) { params = null; }
|
|
662
662
|
if (transaction === void 0) { transaction = ""; }
|
|
663
663
|
if (succesfulResultMandatory === void 0) { succesfulResultMandatory = true; }
|
|
664
|
-
return rxjs.from(this.defaultStartCall(url)).pipe(operators.concatMap(function (myGuid) {
|
|
664
|
+
return rxjs.from([this.defaultStartCall(url)]).pipe(operators.concatMap(function (myGuid) {
|
|
665
665
|
var httpCall = _this.http.delete(url, { headers: _this.getHeaders(transaction), params: params });
|
|
666
666
|
return httpCall.pipe(operators.catchError(function (err, caught) {
|
|
667
667
|
return !succesfulResultMandatory ? rxjs.throwError(err) : _this.registerErrorAndReturnEmptyObservable(err, myGuid);
|
|
@@ -685,7 +685,7 @@
|
|
|
685
685
|
if (params === void 0) { params = null; }
|
|
686
686
|
if (transaction === void 0) { transaction = ""; }
|
|
687
687
|
if (succesfulResultMandatory === void 0) { succesfulResultMandatory = true; }
|
|
688
|
-
return rxjs.from(this.defaultStartCall(url)).pipe(operators.concatMap(function (myGuid) {
|
|
688
|
+
return rxjs.from([this.defaultStartCall(url)]).pipe(operators.concatMap(function (myGuid) {
|
|
689
689
|
var httpCall = _this.http.put(url, bodyData, { headers: _this.getHeaders(transaction), params: params });
|
|
690
690
|
return httpCall.pipe(operators.catchError(function (err, caught) {
|
|
691
691
|
return !succesfulResultMandatory ? rxjs.throwError(err) : _this.registerErrorAndReturnEmptyObservable(err, myGuid);
|
|
@@ -705,7 +705,7 @@
|
|
|
705
705
|
*/
|
|
706
706
|
HTTPService.prototype.postwithFiles = function (url, bodyData, fileArrayOrFile) {
|
|
707
707
|
var _this = this;
|
|
708
|
-
return rxjs.from(this.defaultStartCall(url)).pipe(operators.concatMap(function (myGuid) {
|
|
708
|
+
return rxjs.from([this.defaultStartCall(url)]).pipe(operators.concatMap(function (myGuid) {
|
|
709
709
|
var formData = _this.getFilesFormData(fileArrayOrFile);
|
|
710
710
|
formData.append("body", JSON.stringify(bodyData));
|
|
711
711
|
var httpCall = _this.http.post(url, formData, { headers: _this.getHeaders(null, true, null, null) });
|