algolia-experiences 1.5.9 → 1.5.11

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
  })
@@ -10600,10 +10603,14 @@
10600
10603
  var insightsClientWithLocalCredentials = insightsClient;
10601
10604
  if (isModernInsightsClient(insightsClient)) {
10602
10605
  insightsClientWithLocalCredentials = function insightsClientWithLocalCredentials(method, payload) {
10606
+ var _getAppIdAndApiKey3 = getAppIdAndApiKey(instantSearchInstance.client),
10607
+ _getAppIdAndApiKey4 = _slicedToArray$4(_getAppIdAndApiKey3, 2),
10608
+ latestAppId = _getAppIdAndApiKey4[0],
10609
+ latestApiKey = _getAppIdAndApiKey4[1];
10603
10610
  var extraParams = {
10604
10611
  headers: {
10605
- 'X-Algolia-Application-Id': appId,
10606
- 'X-Algolia-API-Key': apiKey
10612
+ 'X-Algolia-Application-Id': latestAppId,
10613
+ 'X-Algolia-API-Key': latestApiKey
10607
10614
  }
10608
10615
  };
10609
10616
 
@@ -13048,7 +13055,7 @@
13048
13055
  };
13049
13056
  }
13050
13057
 
13051
- var version$1 = '4.78.1';
13058
+ var version$1 = '4.78.3';
13052
13059
 
13053
13060
  function _typeof$j(o) {
13054
13061
  "@babel/helpers - typeof";