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

react-bsonschema-form

Package Overview
Dependencies
Maintainers
2
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-bsonschema-form - npm Package Compare versions

Comparing version 0.41.15 to 0.41.16

dist/react-jsonschema-form.js

8

lib/components/fields/DoubleField.js

@@ -35,2 +35,6 @@ "use strict";

function round(value) {
return parseFloat(value).toFixed(2);
}
function DoubleField(props) {

@@ -40,2 +44,5 @@ return _react2.default.createElement(_StringField2.default, _extends({}, props, {

return props.onChange(convert(value));
},
onBlur: function onBlur(event) {
return props.onChange(convert(round(event.target.value)));
} }));

@@ -50,2 +57,3 @@ }

onChange: _react.PropTypes.func.isRequired,
onBlur: _react.PropTypes.func,
formData: _react.PropTypes.oneOfType([_react.PropTypes.number, _react.PropTypes.string, _react.PropTypes.object]),

@@ -52,0 +60,0 @@ required: _react.PropTypes.bool,

12

lib/components/fields/StringField.js

@@ -30,3 +30,4 @@ "use strict";

registry = props.registry,
onChange = props.onChange;
onChange = props.onChange,
onBlur = props.onBlur;
var title = schema.title,

@@ -48,4 +49,8 @@ format = schema.format;

var Widget = (0, _utils.getWidget)(schema, widget, widgets);
var inputProps = {};
if (onBlur) {
inputProps.onBlur = onBlur;
}
return _react2.default.createElement(Widget, {
return _react2.default.createElement(Widget, _extends({}, inputProps, {
options: _extends({}, options, { enumOptions: enumOptions }),

@@ -63,3 +68,3 @@ schema: schema,

registry: registry,
placeholder: placeholder });
placeholder: placeholder }));
}

@@ -73,2 +78,3 @@

onChange: _react.PropTypes.func.isRequired,
onBlur: _react.PropTypes.func,
formData: _react.PropTypes.oneOfType([_react2.default.PropTypes.string, _react2.default.PropTypes.number, _react2.default.PropTypes.object]),

@@ -75,0 +81,0 @@ registry: _react.PropTypes.shape({

{
"name": "react-bsonschema-form",
"version": "0.41.15",
"version": "0.41.16",
"description": "A simple React component capable of building HTML forms out of a JSON schema.",

@@ -5,0 +5,0 @@ "scripts": {

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