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

@sinclair/typebox

Package Overview
Dependencies
Maintainers
1
Versions
337
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sinclair/typebox - npm Package Compare versions

Comparing version 0.20.2 to 0.20.3

2

package.json
{
"name": "@sinclair/typebox",
"version": "0.20.2",
"version": "0.20.3",
"description": "JSONSchema Type Builder with Static Type Resolution for TypeScript",

@@ -5,0 +5,0 @@ "keywords": [

@@ -91,4 +91,4 @@ export declare const ReadonlyOptionalModifier: unique symbol;

type: 'array';
items: [...T];
additionalItems: false;
items?: [...T];
additionalItems?: false;
minItems: number;

@@ -95,0 +95,0 @@ maxItems: number;

@@ -102,3 +102,5 @@ "use strict";

const maxItems = items.length;
return { ...options, kind: exports.TupleKind, type: 'array', items, additionalItems, minItems, maxItems };
return (items.length > 0)
? { ...options, kind: exports.TupleKind, type: 'array', items, additionalItems, minItems, maxItems }
: { ...options, kind: exports.TupleKind, type: 'array', minItems, maxItems };
}

@@ -105,0 +107,0 @@ /** `STANDARD` Creates a `object` schema with the given properties. */

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