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

redux-polyglot

Package Overview
Dependencies
Maintainers
3
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 0.2.0 to 0.2.1

LICENSE

3

dist/private/utils.js

@@ -9,2 +9,5 @@ 'use strict';

var identity = exports.identity = function identity(x) {
return x;
};
// eslint-disable-next-line valid-typeof

@@ -11,0 +14,0 @@ var is = exports.is = function is(type) {

@@ -18,2 +18,4 @@ 'use strict';

var _utils = require('./private/utils');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -79,3 +81,10 @@

var getP = function getP(state, polyglotScope) {
if (!getLocale(state) || !getPhrases(state)) return undefined;
if (!getLocale(state) || !getPhrases(state)) {
return {
t: _utils.identity,
tc: _utils.identity,
tu: _utils.identity,
tm: _utils.identity
};
}
return _extends({}, getPolyglot(state, polyglotScope), {

@@ -82,0 +91,0 @@ t: getTranslation(state, polyglotScope),

2

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

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

@@ -9,4 +9,2 @@ # redux-polyglot

```
(not published yet)
## Setup

@@ -13,0 +11,0 @@

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