@redhat-cloud-services/frontend-components-utilities 3.2.5 → 3.2.6

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.
@@ -59,7 +59,7 @@ var ReducerRegistry = /*#__PURE__*/function () {
59
59
  var middlewares = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
60
60
  var composeEnhancersDefault = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _redux.compose;
61
61
  (0, _classCallCheck2["default"])(this, ReducerRegistry);
62
- var composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || composeEnhancersDefault;
62
+ var composeEnhancers = typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || composeEnhancersDefault;
63
63
  this.store = (0, _redux.createStore)(function () {
64
64
  var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initState;
65
65
  return state;
@@ -43,7 +43,7 @@ export var ReducerRegistry = /*#__PURE__*/function () {
43
43
 
44
44
  _classCallCheck(this, ReducerRegistry);
45
45
 
46
- var composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || composeEnhancersDefault;
46
+ var composeEnhancers = typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || composeEnhancersDefault;
47
47
  this.store = createStore(function () {
48
48
  var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initState;
49
49
  return state;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redhat-cloud-services/frontend-components-utilities",
3
- "version": "3.2.5",
3
+ "version": "3.2.6",
4
4
  "description": "Util functions for RedHat Cloud Services project.",
5
5
  "main": "index.js",
6
6
  "module": "esm/index.js",