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.2.0 to 0.2.1

5

index.js

@@ -69,7 +69,4 @@ /**

options.max = field.max instanceof Array ? field.max[0] : field.max;
options.format = field.format;
if (!options.format && options.format !== false) {
options.format = '0,0';
}
options.format = field.format || '';
return options;
};

23

lib/view.js

@@ -7,4 +7,2 @@ 'use strict';

var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

@@ -32,4 +30,2 @@

function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

@@ -62,3 +58,3 @@

value: props.value,
display: props.display
display: props.value
};

@@ -116,6 +112,6 @@ if (props.field.format) {

display = numeral().unformat(display);
if (isNaN(display)) {
display = parseFloat(event.target.display) || '';
}
}
if (isNaN(display)) {
display = parseFloat(event.target.display) || '';
}
if (field.max !== undefined && display > field.max) {

@@ -154,11 +150,4 @@ display = field.max;

var _props = this.props;
var model = _props.model;
var data = _props.data;
var field = _props.field;
var value = _props.value;
var onChange = _props.onChange;
var disabled = _props.disabled;
var others = _objectWithoutProperties(_props, ['model', 'data', 'field', 'value', 'onChange', 'disabled']);
var _state = this.state;

@@ -176,3 +165,3 @@ var muiTheme = _state.muiTheme;

null,
_react2.default.createElement(_textField2.default, _extends({
_react2.default.createElement(_textField2.default, {
ref: 'input',

@@ -186,3 +175,3 @@ value: display,

onBlur: this.handleBlur
}, others)),
}),
noteElement

@@ -189,0 +178,0 @@ );

{
"name": "alaska-field-number",
"version": "0.2.0",
"version": "0.2.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