typesense-instantsearch-adapter 2.5.0-0 → 2.5.0-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/dist/typesense-instantsearch-adapter.js +10 -6
- package/dist/typesense-instantsearch-adapter.js.map +1 -1
- package/dist/typesense-instantsearch-adapter.min.js +1 -1
- package/dist/typesense-instantsearch-adapter.min.js.map +1 -1
- package/lib/SearchResponseAdapter.js +10 -6
- package/lib/SearchResponseAdapter.js.map +1 -1
- package/package.json +1 -1
- package/src/SearchResponseAdapter.js +10 -6
|
@@ -2951,13 +2951,13 @@ var SearchResponseAdapter = /*#__PURE__*/function () {
|
|
|
2951
2951
|
if (Array.isArray(value)) {
|
|
2952
2952
|
var _highlightObjectValue;
|
|
2953
2953
|
|
|
2954
|
-
adaptedValue = _this4._adaptHighlightInArrayValue(value, (_highlightObjectValue = highlightObjectValue[attribute]) !== null && _highlightObjectValue !== void 0 ? _highlightObjectValue :
|
|
2954
|
+
adaptedValue = _this4._adaptHighlightInArrayValue(value, (_highlightObjectValue = highlightObjectValue === null || highlightObjectValue === void 0 ? void 0 : highlightObjectValue[attribute]) !== null && _highlightObjectValue !== void 0 ? _highlightObjectValue : [], snippetOrValue);
|
|
2955
2955
|
} else if ((0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__["default"])(value) === "object") {
|
|
2956
2956
|
var _highlightObjectValue2;
|
|
2957
2957
|
|
|
2958
|
-
adaptedValue = _this4._adaptHighlightInObjectValue(value, (_highlightObjectValue2 = highlightObjectValue[attribute]) !== null && _highlightObjectValue2 !== void 0 ? _highlightObjectValue2 : {}, snippetOrValue);
|
|
2958
|
+
adaptedValue = _this4._adaptHighlightInObjectValue(value, (_highlightObjectValue2 = highlightObjectValue === null || highlightObjectValue === void 0 ? void 0 : highlightObjectValue[attribute]) !== null && _highlightObjectValue2 !== void 0 ? _highlightObjectValue2 : {}, snippetOrValue);
|
|
2959
2959
|
} else {
|
|
2960
|
-
adaptedValue = _this4._adaptHighlightInPrimitiveValue(value, highlightObjectValue[attribute], snippetOrValue);
|
|
2960
|
+
adaptedValue = _this4._adaptHighlightInPrimitiveValue(value, highlightObjectValue === null || highlightObjectValue === void 0 ? void 0 : highlightObjectValue[attribute], snippetOrValue);
|
|
2961
2961
|
}
|
|
2962
2962
|
|
|
2963
2963
|
return (0,_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3__["default"])({}, attribute, adaptedValue);
|
|
@@ -2972,11 +2972,15 @@ var SearchResponseAdapter = /*#__PURE__*/function () {
|
|
|
2972
2972
|
var adaptedValue;
|
|
2973
2973
|
|
|
2974
2974
|
if (Array.isArray(value)) {
|
|
2975
|
-
|
|
2975
|
+
var _highlightArrayValue$;
|
|
2976
|
+
|
|
2977
|
+
adaptedValue = _this5._adaptHighlightInArrayValue(value, (_highlightArrayValue$ = highlightArrayValue === null || highlightArrayValue === void 0 ? void 0 : highlightArrayValue[index]) !== null && _highlightArrayValue$ !== void 0 ? _highlightArrayValue$ : [], snippetOrValue);
|
|
2976
2978
|
} else if ((0,_babel_runtime_helpers_typeof__WEBPACK_IMPORTED_MODULE_0__["default"])(value) === "object") {
|
|
2977
|
-
|
|
2979
|
+
var _highlightArrayValue$2;
|
|
2980
|
+
|
|
2981
|
+
adaptedValue = _this5._adaptHighlightInObjectValue(value, (_highlightArrayValue$2 = highlightArrayValue === null || highlightArrayValue === void 0 ? void 0 : highlightArrayValue[index]) !== null && _highlightArrayValue$2 !== void 0 ? _highlightArrayValue$2 : {}, snippetOrValue);
|
|
2978
2982
|
} else {
|
|
2979
|
-
adaptedValue = _this5._adaptHighlightInPrimitiveValue(value, highlightArrayValue[index], snippetOrValue);
|
|
2983
|
+
adaptedValue = _this5._adaptHighlightInPrimitiveValue(value, highlightArrayValue === null || highlightArrayValue === void 0 ? void 0 : highlightArrayValue[index], snippetOrValue);
|
|
2980
2984
|
}
|
|
2981
2985
|
|
|
2982
2986
|
return adaptedValue;
|