instantsearch.js 4.77.2 → 4.77.3

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.
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _default = exports.default = '4.77.2';
7
+ var _default = exports.default = '4.77.3';
@@ -1,4 +1,4 @@
1
- /*! InstantSearch.js 4.77.2 | © Algolia, Inc. and contributors; MIT License | https://github.com/algolia/instantsearch */
1
+ /*! InstantSearch.js 4.77.3 | © Algolia, Inc. and contributors; MIT License | https://github.com/algolia/instantsearch */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
4
4
  typeof define === 'function' && define.amd ? define(factory) :
@@ -6583,7 +6583,7 @@
6583
6583
 
6584
6584
  var sortAndMergeRecommendations_1 = sortAndMergeRecommendations;
6585
6585
 
6586
- var version = '3.24.0';
6586
+ var version = '3.24.1';
6587
6587
 
6588
6588
  var escapeFacetValue$4 = escapeFacetValue_1.escapeFacetValue;
6589
6589
 
@@ -8426,8 +8426,11 @@
8426
8426
  if (this._currentNbQueries === 0) this.emit('searchQueueEmpty');
8427
8427
 
8428
8428
  var results = content.results.slice();
8429
- var rawContent = Object.create(content);
8430
- delete rawContent.results;
8429
+ var rawContent = Object.keys(content).reduce(function (value, key) {
8430
+ if (key !== 'results') value[key] = content[key];
8431
+ return value;
8432
+ }, {});
8433
+
8431
8434
  if (Object.keys(rawContent).length <= 0) {
8432
8435
  rawContent = undefined;
8433
8436
  }
@@ -8451,12 +8454,11 @@
8451
8454
  specificResults,
8452
8455
  self._searchResultsOptions
8453
8456
  );
8454
- helper.lastResults._rawContent = rawContent;
8457
+ if (rawContent !== undefined) helper.lastResults._rawContent = rawContent;
8455
8458
 
8456
8459
  helper.emit('result', {
8457
8460
  results: helper.lastResults,
8458
8461
  state: state,
8459
- _rawContent: rawContent,
8460
8462
  });
8461
8463
  });
8462
8464
  };
@@ -16415,7 +16417,7 @@
16415
16417
  };
16416
16418
  }
16417
16419
 
16418
- var version$1 = '4.77.2';
16420
+ var version$1 = '4.77.3';
16419
16421
 
16420
16422
  var withUsage$v = createDocumentationMessageGenerator({
16421
16423
  name: 'instantsearch'