react-instantsearch 7.15.5 → 7.15.7

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.
@@ -7,7 +7,7 @@
7
7
 
8
8
  var React__default = 'default' in React ? React['default'] : React;
9
9
 
10
- var version = '7.15.5';
10
+ var version = '7.15.7';
11
11
 
12
12
  // Copyright Joyent, Inc. and other Node contributors.
13
13
  //
@@ -4598,11 +4598,13 @@
4598
4598
  });
4599
4599
  }
4600
4600
 
4601
- function sortAndMergeRecommendations(results) {
4601
+ function sortAndMergeRecommendations(objectIDs, results) {
4602
4602
  var indexTracker = {};
4603
4603
 
4604
4604
  results.forEach(function (hits) {
4605
4605
  hits.forEach(function (hit, index) {
4606
+ if (objectIDs.includes(hit.objectID)) return;
4607
+
4606
4608
  if (!indexTracker[hit.objectID]) {
4607
4609
  indexTracker[hit.objectID] = { indexSum: index, count: 1 };
4608
4610
  } else {
@@ -4632,7 +4634,7 @@
4632
4634
 
4633
4635
  var sortAndMergeRecommendations_1 = sortAndMergeRecommendations;
4634
4636
 
4635
- var version$1 = '3.24.3';
4637
+ var version$1 = '3.25.0';
4636
4638
 
4637
4639
  var escapeFacetValue$3 = escapeFacetValue_1.escapeFacetValue;
4638
4640
 
@@ -6553,6 +6555,7 @@
6553
6555
  }
6554
6556
  cache[id] = Object.assign({}, firstResult, {
6555
6557
  hits: sortAndMergeRecommendations_1(
6558
+ ids,
6556
6559
  indices.map(function (idx) {
6557
6560
  return content.results[idx].hits;
6558
6561
  })
@@ -11694,10 +11697,14 @@
11694
11697
  var insightsClientWithLocalCredentials = insightsClient;
11695
11698
  if (isModernInsightsClient(insightsClient)) {
11696
11699
  insightsClientWithLocalCredentials = function insightsClientWithLocalCredentials(method, payload) {
11700
+ var _getAppIdAndApiKey3 = getAppIdAndApiKey(instantSearchInstance.client),
11701
+ _getAppIdAndApiKey4 = _slicedToArray$7(_getAppIdAndApiKey3, 2),
11702
+ latestAppId = _getAppIdAndApiKey4[0],
11703
+ latestApiKey = _getAppIdAndApiKey4[1];
11697
11704
  var extraParams = {
11698
11705
  headers: {
11699
- 'X-Algolia-Application-Id': appId,
11700
- 'X-Algolia-API-Key': apiKey
11706
+ 'X-Algolia-Application-Id': latestAppId,
11707
+ 'X-Algolia-API-Key': latestApiKey
11701
11708
  }
11702
11709
  };
11703
11710
 
@@ -13430,7 +13437,7 @@
13430
13437
  };
13431
13438
  }
13432
13439
 
13433
- var version$3 = '4.78.1';
13440
+ var version$3 = '4.78.3';
13434
13441
 
13435
13442
  function _typeof$q(o) {
13436
13443
  "@babel/helpers - typeof";