wappsto-redux
Advanced tools
Comparing version 4.0.1 to 4.0.2
@@ -24,2 +24,14 @@ "use strict"; | ||
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } | ||
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } | ||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } | ||
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } | ||
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } | ||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } | ||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
@@ -29,2 +41,3 @@ | ||
var initialState = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
var enhancers = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; | ||
@@ -58,4 +71,9 @@ // Preserve initial state for not-yet-loaded reducers | ||
var store = (0, _redux.createStore)(combine(_reducerRegistry["default"].getReducers()), initialState, (0, _redux.applyMiddleware)(_reduxThunk["default"])); // Replace the store's reducer whenever a new reducer is registered. | ||
var createEnhancer = function createEnhancer() { | ||
enhancers.push((0, _redux.applyMiddleware)(_reduxThunk["default"])); | ||
return _redux.compose.apply(void 0, _toConsumableArray(enhancers)); | ||
}; | ||
var store = (0, _redux.createStore)(combine(_reducerRegistry["default"].getReducers()), initialState, createEnhancer()); // Replace the store's reducer whenever a new reducer is registered. | ||
_reducerRegistry["default"].setChangeListener(function (reducers) { | ||
@@ -62,0 +80,0 @@ store.replaceReducer(combine(reducers)); |
{ | ||
"name": "wappsto-redux", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"description": "", | ||
@@ -41,6 +41,6 @@ "files": [ | ||
"deep-equal": "^2.0.5", | ||
"normalizr": "^3.6.1", | ||
"normalizr": "^3.6.2", | ||
"query-string": "^7.1.1", | ||
"react": "^17.0.2", | ||
"redux": "^4.1.2", | ||
"redux": "^4.2.0", | ||
"redux-thunk": "^2.4.1", | ||
@@ -52,23 +52,24 @@ "regenerator-runtime": "^0.13.9", | ||
"@babel/cli": "^7.17.6", | ||
"@babel/core": "^7.17.5", | ||
"@babel/core": "^7.17.9", | ||
"@babel/eslint-parser": "^7.17.0", | ||
"@babel/preset-env": "^7.16.11", | ||
"@babel/preset-react": "^7.16.7", | ||
"babel-jest": "^27.5.1", | ||
"eslint": "^8.9.0", | ||
"babel-jest": "^28.0.2", | ||
"eslint": "^8.14.0", | ||
"eslint-config-airbnb": "^19.0.4", | ||
"eslint-config-prettier": "^8.4.0", | ||
"eslint-plugin-import": "^2.25.4", | ||
"eslint-plugin-jest": "^26.1.1", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-jest": "^26.1.5", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"eslint-plugin-react": "^7.28.0", | ||
"eslint-plugin-react": "^7.29.4", | ||
"husky": "^7.0.4", | ||
"jest": "^27.5.1", | ||
"jest": "^28.0.2", | ||
"jest-environment-jsdom": "^28.0.2", | ||
"jest-fetch-mock": "^3.0.3", | ||
"jest-websocket-mock": "^2.3.0", | ||
"lint-staged": "^12.3.4", | ||
"prettier": "^2.5.1", | ||
"lint-staged": "^12.4.1", | ||
"prettier": "^2.6.2", | ||
"pretty-quick": "^3.1.3", | ||
"react-scripts": "^5.0.0", | ||
"react-test-renderer": "^17.0.2" | ||
"react-scripts": "^5.0.1", | ||
"react-test-renderer": "^18.1.0" | ||
}, | ||
@@ -75,0 +76,0 @@ "lint-staged": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
90775
2102
23
Updatednormalizr@^3.6.2
Updatedredux@^4.2.0