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

react-bsonschema-form

Package Overview
Dependencies
Maintainers
3
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.43.6 to 0.43.7

22

lib/utils.js

@@ -43,2 +43,4 @@ "use strict";

var _bson = require("bson");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -235,3 +237,15 @@

// For enum with no defined default, select the first entry.
defaults = schema.enum[0];
switch (schema.type) {
case 'int':
defaults = new _bson.Int32(schema.enum[0]);
break;
case 'long':
defaults = new _bson.Long(schema.enum[0]);
break;
case 'double':
defaults = new _bson.Double(schema.enum[0]);
break;
default:
defaults = schema.enum[0];
}
} else if ("$ref" in schema) {

@@ -314,8 +328,8 @@ // Use referenced schema defaults for this node.

// NOTE: do not merge bson object types
if (shouldSkip(obj2)) {
return obj2;
}
if (shouldSkip(obj1)) {
return obj1;
}
if (shouldSkip(obj2)) {
return obj2;
}
// Recursively merge deeply nested objects.

@@ -322,0 +336,0 @@ var acc = Object.assign({}, obj1); // Prevent mutation of source object.

4

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

@@ -33,3 +33,3 @@ "scripts": {

"bson": "^0.5.5",
"bsonschema": "1.1.4",
"bsonschema": "1.1.5",
"moment": "^2.15.0",

@@ -36,0 +36,0 @@ "react-datetime": "^2.8.8",

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