@veloceapps/api 6.0.0-7 → 6.0.0-9
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/veloceapps-api.umd.js +3 -6
- package/bundles/veloceapps-api.umd.js.map +1 -1
- package/esm2015/lib/services/catalog-admin-api.service.js +2 -3
- package/esm2015/lib/services/shopping-cart-settings-api.service.js +3 -5
- package/fesm2015/veloceapps-api.js +3 -6
- package/fesm2015/veloceapps-api.js.map +1 -1
- package/lib/services/shopping-cart-settings-api.service.d.ts +2 -2
- package/package.json +1 -1
@@ -223,8 +223,7 @@
|
|
223
223
|
var catalogId = _a.catalogId, categoryId = _a.categoryId, data = _a.data;
|
224
224
|
return _this.baseHttpService.api({
|
225
225
|
method: 'delete',
|
226
|
-
url: _this.serviceUrl + "/" + catalogId + "/categories/" + categoryId + "/products/" + data.id
|
227
|
-
body: data,
|
226
|
+
url: _this.serviceUrl + "/" + catalogId + "/categories/" + categoryId + "/products/" + data.id
|
228
227
|
});
|
229
228
|
};
|
230
229
|
}
|
@@ -2202,12 +2201,10 @@
|
|
2202
2201
|
this.shoppingCartSettingsKey = 'shopping-cart';
|
2203
2202
|
}
|
2204
2203
|
ShoppingCartSettingsApiService.prototype.getSetting = function (id) {
|
2205
|
-
return this.fetchSettings().pipe(operators.map(function (settings) { return settings.find(function (setting) { return setting.id == id; }); }));
|
2204
|
+
return this.fetchSettings().pipe(operators.map(function (setting) { return ((setting === null || setting === void 0 ? void 0 : setting.value) ? JSON.parse(setting.value) : []); }), operators.map(function (settings) { return settings.find(function (setting) { return setting.id == id; }); }));
|
2206
2205
|
};
|
2207
2206
|
ShoppingCartSettingsApiService.prototype.fetchSettings = function () {
|
2208
|
-
return this.configurationSettingsApiService
|
2209
|
-
.fetchSetting(this.shoppingCartSettingsKey)
|
2210
|
-
.pipe(operators.map(function (setting) { return ((setting === null || setting === void 0 ? void 0 : setting.value) ? JSON.parse(setting.value) : []); }));
|
2207
|
+
return this.configurationSettingsApiService.fetchSetting(this.shoppingCartSettingsKey, { skipErrorHandler: true });
|
2211
2208
|
};
|
2212
2209
|
return ShoppingCartSettingsApiService;
|
2213
2210
|
}());
|