ng-miam 6.4.11 → 6.4.12
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/ng-miam.umd.js +12 -12
- package/bundles/ng-miam.umd.js.map +1 -1
- package/bundles/ng-miam.umd.min.js +1 -1
- package/bundles/ng-miam.umd.min.js.map +1 -1
- package/esm2015/lib/_services/interceptor.service.js +2 -2
- package/esm2015/lib/_web-components/recipe-catalog/catalog-list/catalog-list.component.js +12 -12
- package/fesm2015/ng-miam.js +12 -12
- package/fesm2015/ng-miam.js.map +1 -1
- package/package.json +1 -1
package/bundles/ng-miam.umd.js
CHANGED
|
@@ -12205,7 +12205,7 @@
|
|
|
12205
12205
|
request = request.clone({
|
|
12206
12206
|
setHeaders: {
|
|
12207
12207
|
'miam-origin': context.origin.value,
|
|
12208
|
-
'miam-front-version': '6.4.
|
|
12208
|
+
'miam-front-version': '6.4.12',
|
|
12209
12209
|
'miam-front-type': 'web',
|
|
12210
12210
|
'miam-api-version': '4.7.0'
|
|
12211
12211
|
}
|
|
@@ -19402,17 +19402,17 @@
|
|
|
19402
19402
|
if (this.noMoreRecipes) {
|
|
19403
19403
|
return rxjs.of([]);
|
|
19404
19404
|
}
|
|
19405
|
-
|
|
19406
|
-
|
|
19407
|
-
|
|
19408
|
-
|
|
19409
|
-
recipeIncludes$2.
|
|
19410
|
-
|
|
19411
|
-
|
|
19412
|
-
|
|
19413
|
-
|
|
19414
|
-
return _this.recipesService.filter(requestFilters, { size: 20, number: page }, recipeIncludes$2, recipeSparseFields$2, _this.modifiedGuests, _this.randomMode, _this.sort);
|
|
19415
|
-
})
|
|
19405
|
+
return this.recipesService.addMandatoryCompletionToFilter(this.filters).pipe(operators.switchMap(function () {
|
|
19406
|
+
// keep a copy of the filters when request is sent, so we can check they are still the same when it is received
|
|
19407
|
+
// Because if it's not the case we have to ignore the results
|
|
19408
|
+
var requestFilters = _this.filters.copy();
|
|
19409
|
+
if (_this.context.displayIngredientPicturesOnRecipeCards && !recipeIncludes$2.includes('ingredients')) {
|
|
19410
|
+
recipeIncludes$2.push('ingredients');
|
|
19411
|
+
recipeSparseFields$2.recipes.push('ingredients');
|
|
19412
|
+
Object.assign(recipeSparseFields$2, { ingredients: ['name', 'quantity', 'unit', 'active', 'forced-eans', 'picture-url', 'position'] });
|
|
19413
|
+
}
|
|
19414
|
+
return _this.recipesService.filter(requestFilters, { size: 20, number: page }, recipeIncludes$2, recipeSparseFields$2, _this.modifiedGuests, _this.randomMode, _this.sort).pipe(operators.switchMap(function (result) { return _this.processResults(result, requestFilters, page); }));
|
|
19415
|
+
}));
|
|
19416
19416
|
};
|
|
19417
19417
|
CatalogListComponent.prototype.processResults = function (results, requestFilters, page) {
|
|
19418
19418
|
var _this = this;
|