New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-reducer-store

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-reducer-store - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

15

dist/index.cjs.js

@@ -52,10 +52,2 @@ 'use strict';

function wrapDispatch(dispatch) {
function logAndDispatch(action) {
console.log('Action: ', action);
return dispatch(action);
}
return logAndDispatch;
}
function Store(props) {

@@ -71,2 +63,7 @@ var initialState = props.rootReducer(props.initialValue || {}, {

function logAndDispatch(action) {
console.log('Action: ', action);
return dispatch(action);
}
React.useEffect(function () {

@@ -79,3 +76,3 @@ if (props.log) {

if (props.log) {
dispatch = wrapDispatch(dispatch);
dispatch = logAndDispatch;
}

@@ -82,0 +79,0 @@

@@ -45,10 +45,2 @@ import React, { createContext, useReducer, useEffect, useContext, useMemo } from 'react';

function wrapDispatch(dispatch) {
function logAndDispatch(action) {
console.log('Action: ', action);
return dispatch(action);
}
return logAndDispatch;
}
function Store(props) {

@@ -64,2 +56,7 @@ var initialState = props.rootReducer(props.initialValue || {}, {

function logAndDispatch(action) {
console.log('Action: ', action);
return dispatch(action);
}
useEffect(function () {

@@ -72,3 +69,3 @@ if (props.log) {

if (props.log) {
dispatch = wrapDispatch(dispatch);
dispatch = logAndDispatch;
}

@@ -75,0 +72,0 @@

2

package.json
{
"name": "react-reducer-store",
"version": "2.0.2",
"version": "2.0.3",
"main": "dist/index.cjs.js",

@@ -5,0 +5,0 @@ "module": "dist/index.esm.js",

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