🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

svelte-forms-lib

Package Overview
Dependencies
Maintainers
2
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-forms-lib - npm Package Compare versions

Comparing version

to
1.8.0

47

build/index.js

@@ -929,3 +929,6 @@ 'use strict';

updateField: /*updateField*/ ctx[6],
updateTouched: /*updateTouched*/ ctx[7]
updateInitialValues: /*updateInitialValues*/ ctx[7],
updateTouched: /*updateTouched*/ ctx[8],
updateValidateField: /*updateValidateField*/ ctx[9],
validateField: /*validateField*/ ctx[10]
});

@@ -938,5 +941,5 @@

let dispose;
const default_slot_template = /*#slots*/ ctx[14].default;
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[13], get_default_slot_context);
let form_1_levels = [/*$$restProps*/ ctx[8]];
const default_slot_template = /*#slots*/ ctx[17].default;
const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[16], get_default_slot_context);
let form_1_levels = [/*$$restProps*/ ctx[11]];
let form_1_data = {};

@@ -970,8 +973,8 @@

if (default_slot) {
if (default_slot.p && dirty & /*$$scope*/ 8192) {
update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[13], dirty, get_default_slot_changes, get_default_slot_context);
if (default_slot.p && dirty & /*$$scope*/ 65536) {
update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[16], dirty, get_default_slot_changes, get_default_slot_context);
}
}
set_attributes(form_1, form_1_data = get_spread_update(form_1_levels, [dirty & /*$$restProps*/ 256 && /*$$restProps*/ ctx[8]]));
set_attributes(form_1, form_1_data = get_spread_update(form_1_levels, [dirty & /*$$restProps*/ 2048 && /*$$restProps*/ ctx[11]]));
},

@@ -1005,3 +1008,3 @@ i(local) {

const { form, errors, touched, state, handleChange, handleSubmit, updateField, updateTouched } = createForm({
const { form, errors, touched, state, handleChange, handleSubmit, updateField, updateInitialValues, updateTouched, updateValidateField, validateField } = createForm({
initialValues,

@@ -1021,3 +1024,6 @@ validationSchema,

updateField,
updateTouched
updateInitialValues,
updateTouched,
updateValidateField,
validateField
});

@@ -1027,8 +1033,8 @@

$$props = assign(assign({}, $$props), exclude_internal_props($$new_props));
$$invalidate(8, $$restProps = compute_rest_props($$props, omit_props_names));
if ("initialValues" in $$new_props) $$invalidate(9, initialValues = $$new_props.initialValues);
if ("validate" in $$new_props) $$invalidate(10, validate = $$new_props.validate);
if ("validationSchema" in $$new_props) $$invalidate(11, validationSchema = $$new_props.validationSchema);
if ("onSubmit" in $$new_props) $$invalidate(12, onSubmit = $$new_props.onSubmit);
if ("$$scope" in $$new_props) $$invalidate(13, $$scope = $$new_props.$$scope);
$$invalidate(11, $$restProps = compute_rest_props($$props, omit_props_names));
if ("initialValues" in $$new_props) $$invalidate(12, initialValues = $$new_props.initialValues);
if ("validate" in $$new_props) $$invalidate(13, validate = $$new_props.validate);
if ("validationSchema" in $$new_props) $$invalidate(14, validationSchema = $$new_props.validationSchema);
if ("onSubmit" in $$new_props) $$invalidate(15, onSubmit = $$new_props.onSubmit);
if ("$$scope" in $$new_props) $$invalidate(16, $$scope = $$new_props.$$scope);
};

@@ -1044,3 +1050,6 @@

updateField,
updateInitialValues,
updateTouched,
updateValidateField,
validateField,
$$restProps,

@@ -1061,6 +1070,6 @@ initialValues,

init(this, options, instance, create_fragment, safe_not_equal, {
initialValues: 9,
validate: 10,
validationSchema: 11,
onSubmit: 12
initialValues: 12,
validate: 13,
validationSchema: 14,
onSubmit: 15
});

@@ -1067,0 +1076,0 @@ }

{
"name": "svelte-forms-lib",
"version": "1.7.2",
"version": "1.8.0",
"description": "Svelte forms lib - A lightweight library for managing forms in Svelte v3",

@@ -5,0 +5,0 @@ "typings": "./lib/index.d.ts",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet