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

@felte/react

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@felte/react - npm Package Compare versions

Comparing version 1.0.0-next.2 to 1.0.0-next.3

30

dist/index.js

@@ -568,2 +568,15 @@ 'use strict';

function addAtIndex(storeValue, path, value, index) {
return _update(storeValue, path, (oldValue) => {
if (!Array.isArray(oldValue))
return oldValue;
if (typeof index === 'undefined') {
oldValue.push(value);
}
else {
oldValue.splice(index, 0, value);
}
return oldValue;
});
}
function isUpdater(value) {

@@ -628,2 +641,18 @@ return typeof value === 'function';

}
function addField(path, value, index) {
errors.update(($errors) => {
return addAtIndex($errors, path, null, index);
});
warnings.update(($warnings) => {
return addAtIndex($warnings, path, null, index);
});
touched.update(($touched) => {
return addAtIndex($touched, path, false, index);
});
data.update(($data) => {
const newData = addAtIndex($data, path, value, index);
setTimeout(() => formNode && setForm(formNode, newData));
return newData;
});
}
function resetField(path) {

@@ -680,2 +709,3 @@ const initialValue = _get(initialValues, path);

resetField,
addField,
setInitialValues: (values) => {

@@ -682,0 +712,0 @@ initialValues = values;

6

package.json
{
"name": "@felte/react",
"version": "1.0.0-next.2",
"version": "1.0.0-next.3",
"description": "An extensible form library for ReactJS",

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

"dependencies": {
"@felte/core": "1.0.0-next.2",
"@felte/core": "1.0.0-next.3",
"svelte": "^3.44.3"

@@ -40,3 +40,3 @@ },

"devDependencies": {
"@felte/common": "1.0.0-next.1",
"@felte/common": "1.0.0-next.2",
"@testing-library/jest-dom": "^5.11.9",

@@ -43,0 +43,0 @@ "@testing-library/react-hooks": "^7.0.2",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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