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

alaska-field-number

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alaska-field-number - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

2

index.js

@@ -85,4 +85,4 @@ /**

NumberField.options = ['min', 'max'];
NumberField.viewOptions = ['min', 'max', 'format'];
NumberField.viewOptions = ['min', 'max', 'format', 'addonBefore', 'addonAfter'];
module.exports = NumberField;

@@ -110,11 +110,15 @@ 'use strict';

var errorText = _props.errorText;
var help = field.help;
var style = undefined;
if (errorText) {
style = 'error';
help = errorText;
}
var display = this.state.display;
var help = errorText ? _react2.default.createElement(
'span',
{ className: 'text-danger' },
errorText
) : field.note ? field.note : null;
return _react2.default.createElement(_reactBootstrap.Input, {
type: 'text',
bsStyle: style,
value: display,

@@ -128,3 +132,5 @@ label: field.label,

wrapperClassName: 'col-xs-10',
help: help
help: help,
addonAfter: field.addonAfter,
addonBefore: field.addonBefore
});

@@ -131,0 +137,0 @@ }

{
"name": "alaska-field-number",
"version": "0.4.0",
"version": "0.4.1",
"description": "Alaska number field",

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

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