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

use-redux-form

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-redux-form - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

11

es/index.js

@@ -127,4 +127,11 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';

if (typeof key === 'function') {
computedKey = "".concat(fieldPath).concat(key(computedValue, formState));
computedValue = extractByPath(parsePath(computedKey), formState);
var computedPath = key(computedValue, formState);
var hasNagativeIndex = /\[(-\d+?)\]/.test(computedPath); // to get rid of negitive array index
if (hasNagativeIndex) {
computedValue = '';
} else {
computedKey = "".concat(fieldPath).concat(computedPath);
computedValue = extractByPath(parsePath(computedKey), formState);
}
}

@@ -131,0 +138,0 @@

@@ -136,4 +136,11 @@ 'use strict';

if (typeof key === 'function') {
computedKey = "".concat(fieldPath).concat(key(computedValue, formState));
computedValue = extractByPath(parsePath(computedKey), formState);
var computedPath = key(computedValue, formState);
var hasNagativeIndex = /\[(-\d+?)\]/.test(computedPath); // to get rid of negitive array index
if (hasNagativeIndex) {
computedValue = '';
} else {
computedKey = "".concat(fieldPath).concat(computedPath);
computedValue = extractByPath(parsePath(computedKey), formState);
}
}

@@ -140,0 +147,0 @@

2

package.json
{
"name": "use-redux-form",
"version": "1.0.2",
"version": "1.0.3",
"description": "React hook for using Redux store",

@@ -5,0 +5,0 @@ "author": "Tony Jin <jsveron23@gmail.com>",

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