New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

uniforms-bridge-json-schema

Package Overview
Dependencies
Maintainers
0
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uniforms-bridge-json-schema - npm Package Compare versions

Comparing version 4.0.0-beta.4 to 4.0.0-beta.5

6

cjs/JSONSchemaBridge.js

@@ -189,2 +189,5 @@ "use strict";

if (type === 'array') {
if (!field.minItems) {
return [];
}
const item = this.getInitialValue((0, uniforms_1.joinName)(name, '$'));

@@ -194,4 +197,3 @@ if (item === undefined) {

}
const length = field.minItems || 0;
return Array.from({ length }, () => item);
return Array.from({ length: field.minItems }, () => item);
}

@@ -198,0 +200,0 @@ if (type === 'object') {

@@ -187,2 +187,5 @@ import { __rest } from "tslib";

if (type === 'array') {
if (!field.minItems) {
return [];
}
const item = this.getInitialValue(joinName(name, '$'));

@@ -192,4 +195,3 @@ if (item === undefined) {

}
const length = field.minItems || 0;
return Array.from({ length }, () => item);
return Array.from({ length: field.minItems }, () => item);
}

@@ -196,0 +198,0 @@ if (type === 'object') {

{
"name": "uniforms-bridge-json-schema",
"version": "4.0.0-beta.4",
"version": "4.0.0-beta.5",
"license": "MIT",

@@ -36,3 +36,3 @@ "main": "./cjs/index.js",

"peerDependencies": {
"uniforms": "4.0.0-beta.4"
"uniforms": "4.0.0-beta.5"
},

@@ -48,3 +48,3 @@ "dependencies": {

"typescript": "5.5.4",
"uniforms": "4.0.0-beta.4"
"uniforms": "4.0.0-beta.5"
},

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

@@ -279,2 +279,5 @@ import invariant from 'invariant';

if (type === 'array') {
if (!field.minItems) {
return [];
}
const item = this.getInitialValue(joinName(name, '$'));

@@ -285,4 +288,3 @@ if (item === undefined) {

const length = field.minItems || 0;
return Array.from({ length }, () => item);
return Array.from({ length: field.minItems }, () => item);
}

@@ -289,0 +291,0 @@

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