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

redux-persist-transform-filter

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-persist-transform-filter - npm Package Compare versions

Comparing version 0.0.17 to 0.0.18

6

dist/index.js

@@ -40,2 +40,6 @@ 'use strict';

var _lodash13 = require('lodash.clonedeep');
var _lodash14 = _interopRequireDefault(_lodash13);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -110,3 +114,3 @@

} else if (transformType === 'blacklist') {
subset = Object.assign({}, state);
subset = (0, _lodash14.default)(state);
paths.forEach(function (path) {

@@ -113,0 +117,0 @@ if ((typeof path === 'undefined' ? 'undefined' : _typeof(path)) === 'object' && !(path instanceof Array)) {

3

index.js

@@ -8,2 +8,3 @@ import { createTransform } from 'redux-persist';

import forIn from 'lodash.forin';
import cloneDeep from 'lodash.clonedeep';

@@ -73,3 +74,3 @@ export function createFilter (reducerName, inboundPaths, outboundPaths, transformType = 'whitelist') {

} else if (transformType === 'blacklist') {
subset = Object.assign({}, state);
subset = cloneDeep(state);
paths.forEach((path) => {

@@ -76,0 +77,0 @@ if (typeof path === 'object' && !(path instanceof Array)) {

{
"name": "redux-persist-transform-filter",
"version": "0.0.17",
"version": "0.0.18",
"description": "Filter transformator for redux-persist",

@@ -30,2 +30,3 @@ "main": "dist/index.js",

"dependencies": {
"lodash.clonedeep": "^4.5.0",
"lodash.forin": "^4.4.0",

@@ -32,0 +33,0 @@ "lodash.get": "^4.4.2",

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