instantsearch.js 4.49.0 → 4.49.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/CHANGELOG.md +9 -0
- package/cjs/helpers/get-insights-anonymous-user-token.js +6 -0
- package/cjs/lib/version.js +1 -1
- package/dist/instantsearch.development.js +6 -2
- package/dist/instantsearch.development.js.map +1 -1
- package/dist/instantsearch.production.min.js +2 -2
- package/dist/instantsearch.production.min.js.map +1 -1
- package/es/helpers/get-insights-anonymous-user-token.js +6 -0
- package/es/lib/version.d.ts +1 -1
- package/es/lib/version.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## [4.49.1](https://github.com/algolia/instantsearch.js/compare/v4.49.0...v4.49.1) (2022-11-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **insights:** check before usage of `document` ([#5149](https://github.com/algolia/instantsearch.js/issues/5149)) ([6733dea](https://github.com/algolia/instantsearch.js/commit/6733dea1091a3a6c8ec9049eba652a7f06e9c501))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
1
10
|
# [4.49.0](https://github.com/algolia/instantsearch.js/compare/v4.48.1...v4.49.0) (2022-10-25)
|
|
2
11
|
|
|
3
12
|
|
|
@@ -9,10 +9,16 @@ exports.ANONYMOUS_TOKEN_COOKIE_KEY = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _index = require("../lib/utils/index.js");
|
|
11
11
|
|
|
12
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
13
|
+
|
|
12
14
|
var ANONYMOUS_TOKEN_COOKIE_KEY = '_ALGOLIA';
|
|
13
15
|
exports.ANONYMOUS_TOKEN_COOKIE_KEY = ANONYMOUS_TOKEN_COOKIE_KEY;
|
|
14
16
|
|
|
15
17
|
function getCookie(name) {
|
|
18
|
+
if ((typeof document === "undefined" ? "undefined" : _typeof(document)) !== 'object' || typeof document.cookie !== 'string') {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
|
|
16
22
|
var prefix = "".concat(name, "=");
|
|
17
23
|
var cookies = document.cookie.split(';');
|
|
18
24
|
|
package/cjs/lib/version.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! InstantSearch.js 4.49.
|
|
1
|
+
/*! InstantSearch.js 4.49.1 | © Algolia, Inc. and contributors; MIT License | https://github.com/algolia/instantsearch.js */
|
|
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) :
|
|
@@ -7784,7 +7784,7 @@
|
|
|
7784
7784
|
instantSearchInstance.renderState = _objectSpread2(_objectSpread2({}, instantSearchInstance.renderState), {}, _defineProperty({}, parentIndexName, _objectSpread2(_objectSpread2({}, instantSearchInstance.renderState[parentIndexName]), renderState)));
|
|
7785
7785
|
}
|
|
7786
7786
|
|
|
7787
|
-
var version$1 = '4.49.
|
|
7787
|
+
var version$1 = '4.49.1';
|
|
7788
7788
|
|
|
7789
7789
|
var NAMESPACE = 'ais';
|
|
7790
7790
|
var component = function component(componentName) {
|
|
@@ -7947,6 +7947,10 @@
|
|
|
7947
7947
|
var ANONYMOUS_TOKEN_COOKIE_KEY = '_ALGOLIA';
|
|
7948
7948
|
|
|
7949
7949
|
function getCookie(name) {
|
|
7950
|
+
if ((typeof document === "undefined" ? "undefined" : _typeof(document)) !== 'object' || typeof document.cookie !== 'string') {
|
|
7951
|
+
return undefined;
|
|
7952
|
+
}
|
|
7953
|
+
|
|
7950
7954
|
var prefix = "".concat(name, "=");
|
|
7951
7955
|
var cookies = document.cookie.split(';');
|
|
7952
7956
|
|