@algolia/autocomplete-js 1.12.1 → 1.12.2
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @algolia/autocomplete-js 1.12.
|
|
1
|
+
/*! @algolia/autocomplete-js 1.12.2 | MIT License | © Algolia, Inc. and contributors | https://github.com/algolia/autocomplete */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
@@ -347,7 +347,7 @@
|
|
|
347
347
|
return undefined;
|
|
348
348
|
}
|
|
349
349
|
|
|
350
|
-
var version = '1.12.
|
|
350
|
+
var version = '1.12.2';
|
|
351
351
|
|
|
352
352
|
var userAgents$1 = [{
|
|
353
353
|
segment: 'autocomplete-core',
|
|
@@ -909,6 +909,12 @@
|
|
|
909
909
|
}
|
|
910
910
|
});
|
|
911
911
|
}
|
|
912
|
+
|
|
913
|
+
// We return an empty plugin if `insightsClient` is still undefined at
|
|
914
|
+
// this stage, which can happen in server environments.
|
|
915
|
+
if (!insightsClient) {
|
|
916
|
+
return {};
|
|
917
|
+
}
|
|
912
918
|
var insights = createSearchInsightsApi(insightsClient);
|
|
913
919
|
var previousItems = createRef([]);
|
|
914
920
|
var debouncedOnStateChange = debounce(function (_ref3) {
|