🚀 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
1
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.1.0

8

build/index.js

@@ -828,4 +828,10 @@ 'use strict';

function isCheckbox(el) {
return el.getAttribute && el.getAttribute('type') === 'checkbox';
}
function handleChange(event) {
const { name: field, value } = event.target;
const el = event.target;
const field = el.name;
const value = isCheckbox(el) ? el.checked : el.value;

@@ -832,0 +838,0 @@ updateTouched(field, true);

@@ -43,4 +43,10 @@ import { derived, writable } from "svelte/store";

function isCheckbox(el) {
return el.getAttribute && el.getAttribute('type') === 'checkbox';
}
function handleChange(event) {
const { name: field, value } = event.target;
const el = event.target;
const field = el.name;
const value = isCheckbox(el) ? el.checked : el.value;

@@ -47,0 +53,0 @@ updateTouched(field, true);

4

package.json
{
"name": "svelte-forms-lib",
"version": "1.0.4",
"version": "1.1.0",
"description": "Svelte forms lib - A lightweight library for managing forms in Svelte v3",
"scripts": {
"start": "rollup -c rollup.config.js",
"start": "rollup -c -w rollup.config.js",
"build": "NODE_ENV=production rollup -c rollup.config.js",

@@ -8,0 +8,0 @@ "prepare": "npm run build",

<p>
<img src="https://svelte-forms-lib-sapper-docs.now.sh/logo.png" width="80px" height="80px" title="Svelte forms lib logo" alt="Svelte forms lib logo" />
<img src="https://svelte-forms-lib-sapper-docs.now.sh/logo.png" width="100px" height="100px" title="Svelte forms lib logo" alt="Svelte forms lib logo" />
</p>

@@ -9,11 +9,8 @@

</a>
<br/>
<a href="https://www.npmjs.com/package/svelte-forms-lib">
<img src="https://img.shields.io/npm/dm/svelte-forms-lib.svg" alt="npm downloads">
</a>
<br/>
<a href="https://bundlephobia.com/result?p=svelte-forms-lib">
<img src="https://img.shields.io/bundlephobia/min/svelte-forms-lib.svg" alt="minified size">
</a>
<br/>
<a href="https://opensource.org/licenses/MIT">

@@ -20,0 +17,0 @@ <img src="https://img.shields.io/npm/l/svelte-forms-lib.svg" alt="license">

Sorry, the diff of this file is not supported yet