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

formerly

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

formerly - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

6

lib/Input.js

@@ -57,2 +57,3 @@ 'use strict';

readValue: function readValue(_ref) {
var name = _ref.name;
var checked = _ref.checked;

@@ -71,3 +72,4 @@ var type = _ref.type;

case 'number':
return typeof value === 'number' || isNaN(Number(value)) ? value : Number(value);
this.skipValue = value === '';
return this.skipValue ? this.context.getValue(name) : Number(value);
default:

@@ -107,3 +109,3 @@ return value;

if (type === 'file') value = undefined;
if (type === 'number') {
if (type === 'number' && this.skipValue) {
defaultValue = value;

@@ -110,0 +112,0 @@ value = undefined;

{
"name": "formerly",
"version": "0.4.0",
"version": "0.4.1",
"description": "yet another form abstraction library for react",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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