algolia-experiences 1.5.9 → 1.5.10

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.
@@ -5808,11 +5808,13 @@
5808
5808
  });
5809
5809
  }
5810
5810
 
5811
- function sortAndMergeRecommendations(results) {
5811
+ function sortAndMergeRecommendations(objectIDs, results) {
5812
5812
  var indexTracker = {};
5813
5813
 
5814
5814
  results.forEach(function (hits) {
5815
5815
  hits.forEach(function (hit, index) {
5816
+ if (objectIDs.includes(hit.objectID)) return;
5817
+
5816
5818
  if (!indexTracker[hit.objectID]) {
5817
5819
  indexTracker[hit.objectID] = { indexSum: index, count: 1 };
5818
5820
  } else {
@@ -5842,7 +5844,7 @@
5842
5844
 
5843
5845
  var sortAndMergeRecommendations_1 = sortAndMergeRecommendations;
5844
5846
 
5845
- var version = '3.24.3';
5847
+ var version = '3.25.0';
5846
5848
 
5847
5849
  var escapeFacetValue$3 = escapeFacetValue_1.escapeFacetValue;
5848
5850
 
@@ -7763,6 +7765,7 @@
7763
7765
  }
7764
7766
  cache[id] = Object.assign({}, firstResult, {
7765
7767
  hits: sortAndMergeRecommendations_1(
7768
+ ids,
7766
7769
  indices.map(function (idx) {
7767
7770
  return content.results[idx].hits;
7768
7771
  })
@@ -13048,7 +13051,7 @@
13048
13051
  };
13049
13052
  }
13050
13053
 
13051
- var version$1 = '4.78.1';
13054
+ var version$1 = '4.78.2';
13052
13055
 
13053
13056
  function _typeof$j(o) {
13054
13057
  "@babel/helpers - typeof";