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

ampersand-input-view

Package Overview
Dependencies
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ampersand-input-view - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

13

ampersand-input-view.js

@@ -64,3 +64,3 @@ var View = require('ampersand-view');

props: {
value: 'string',
value: 'any',
startingValue: 'string',

@@ -110,3 +110,7 @@ name: 'string',

setValue: function () {
this.input.value = this.value;
if (!this.value) {
this.input.value = '';
} else {
this.input.value = String.prototype.toString.call(this.value);
}
if (!this.getErrorMessage(this.value)) {

@@ -143,4 +147,7 @@ this.shouldValidate = true;

}
this.value = this.input.value;
this.value = this.clean(this.input.value);
},
clean: function (val) {
return (this.type === 'number') ? Number(val) : val.trim();
},
handleBlur: function () {

@@ -147,0 +154,0 @@ if (this.value && this.changed) {

{
"name": "ampersand-input-view",
"description": "A view module for intelligently rendering and validating input. Works well with ampersand-form-view.",
"version": "1.1.0",
"version": "1.2.0",
"author": "Henrik Joreteg <henrik@andyet.net>",

@@ -6,0 +6,0 @@ "bugs": {

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