@algolia/autocomplete-core 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-core 1.12.1 | MIT License | © Algolia, Inc. and contributors | https://github.com/algolia/autocomplete */
1
+ /*! @algolia/autocomplete-core 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) :
@@ -291,7 +291,7 @@
291
291
  return undefined;
292
292
  }
293
293
 
294
- var version = '1.12.1';
294
+ var version = '1.12.2';
295
295
 
296
296
  var userAgents = [{
297
297
  segment: 'autocomplete-core',
@@ -853,6 +853,12 @@
853
853
  }
854
854
  });
855
855
  }
856
+
857
+ // We return an empty plugin if `insightsClient` is still undefined at
858
+ // this stage, which can happen in server environments.
859
+ if (!insightsClient) {
860
+ return {};
861
+ }
856
862
  var insights = createSearchInsightsApi(insightsClient);
857
863
  var previousItems = createRef([]);
858
864
  var debouncedOnStateChange = debounce(function (_ref3) {