typesense-instantsearch-adapter 2.5.0 → 2.5.1

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/README.md CHANGED
@@ -368,7 +368,7 @@ const typesenseInstantsearchAdapter = new TypesenseInstantSearchAdapter({
368
368
  ## Compatibility
369
369
 
370
370
  | Typesense Server | typesense-instantsearch-adapter | instantsearch.js | react-instantsearch | vue-instantsearch | angular-instantsearch |
371
- |------------------|---------------------------------|------------------|---------------------|-------------------|-----------------------|
371
+ | ---------------- | ------------------------------- | ---------------- | ------------------- | ----------------- | --------------------- |
372
372
  | \>= v0.24 | \>= v2.5.0 | \>= 4.2.0 | \>= 6.0.0 | \>= 2.2.1 | \>= 3.0.0 |
373
373
  | \>= v0.21 | \>= v2.0.0 | \>= 4.2.0 | \>= 6.0.0 | \>= 2.2.1 | \>= 3.0.0 |
374
374
  | \>= v0.19 | \>= v1.0.0 | \>= 4.2.0 | \>= 6.0.0 | \>= 2.2.1 | \>= 3.0.0 |
@@ -3024,8 +3024,10 @@ var SearchResponseAdapter = /*#__PURE__*/function () {
3024
3024
  key: "_adaptHighlightInPrimitiveValue",
3025
3025
  value: function _adaptHighlightInPrimitiveValue(primitiveValue, highlightPrimitiveValue, snippetOrValue) {
3026
3026
  if (highlightPrimitiveValue != null) {
3027
+ var _ref9, _highlightPrimitiveVa;
3028
+
3027
3029
  return {
3028
- value: this._adaptHighlightTag("".concat(highlightPrimitiveValue[snippetOrValue]), this.instantsearchRequest.params.highlightPreTag, this.instantsearchRequest.params.highlightPostTag),
3030
+ value: this._adaptHighlightTag("".concat((_ref9 = (_highlightPrimitiveVa = highlightPrimitiveValue[snippetOrValue]) !== null && _highlightPrimitiveVa !== void 0 ? _highlightPrimitiveVa : highlightPrimitiveValue["highlight"]) !== null && _ref9 !== void 0 ? _ref9 : highlightPrimitiveValue["snippet"]), this.instantsearchRequest.params.highlightPreTag, this.instantsearchRequest.params.highlightPostTag),
3029
3031
  matchLevel: (highlightPrimitiveValue.matched_tokens || []).length > 0 ? "full" : "none",
3030
3032
  matchedWords: highlightPrimitiveValue.matched_tokens || []
3031
3033
  };