redux-mock-store
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -10,2 +10,8 @@ 'use strict'; | ||
var _lodash = require('lodash.isplainobject'); | ||
var _lodash2 = _interopRequireDefault(_lodash); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } | ||
@@ -35,4 +41,4 @@ | ||
dispatch: function dispatch(action) { | ||
if (typeof action === 'undefined') { | ||
throw new Error('Actions may not be an undefined.'); | ||
if (!(0, _lodash2.default)(action)) { | ||
throw new Error('Actions must be plain objects. ' + 'Use custom middleware for async actions.'); | ||
} | ||
@@ -39,0 +45,0 @@ |
{ | ||
"name": "redux-mock-store", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "A mock store for testing your redux async action creators and middleware", | ||
@@ -33,3 +33,6 @@ "main": "lib/index.js", | ||
"standard": "^7.1.2" | ||
}, | ||
"dependencies": { | ||
"lodash.isplainobject": "^4.0.6" | ||
} | ||
} |
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
5861
1
5
66
+ Addedlodash.isplainobject@^4.0.6
+ Addedlodash.isplainobject@4.0.6(transitive)