Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

redux-mock-store

Package Overview
Dependencies
Maintainers
2
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-mock-store - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

10

lib/index.js

@@ -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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc