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

redux-polyglot

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-polyglot - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

11

dist/middleware.js

@@ -21,2 +21,3 @@ 'use strict';

var isFunction = is('function');
var isObject = is('object');
var isArray = Array.isArray;

@@ -33,2 +34,9 @@

var getIsValidPolyglotReducer = function getIsValidPolyglotReducer(state) {
return !!(state && isObject(state.polyglot));
};
var checkState = function checkState(state) {
if (!getIsValidPolyglotReducer(state)) throw new Error('polyglotReducer : need to be store in "state.polyglot"');
};
var createPolyglotMiddleware = exports.createPolyglotMiddleware = function createPolyglotMiddleware(catchedAction, getLocale, getPhrases) {

@@ -39,2 +47,5 @@ checkParams(catchedAction, getLocale, getPhrases);

var dispatch = _ref.dispatch;
var getState = _ref.getState;
checkState(getState());
return function (next) {

@@ -41,0 +52,0 @@ return function (action) {

2

package.json
{
"name": "redux-polyglot",
"version": "1.0.4",
"version": "1.0.5",
"description": "Tool for using Polyglot.js with Redux",

@@ -5,0 +5,0 @@ "main": "./dist/index.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