Socket
Socket
Sign inDemoInstall

@sinclair/typebox

Package Overview
Dependencies
Maintainers
1
Versions
324
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.9.14 to 0.9.15

2

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

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

@@ -267,3 +267,3 @@ export interface UserDefinedOptions {

properties: T;
required: string[];
required?: string[];
} & UserDefinedOptions;

@@ -270,0 +270,0 @@ export declare type TMap<T extends TSchema | TComposite> = {

@@ -109,3 +109,3 @@ "use strict";

const required = property_names.filter(name => !optional.includes(name));
return { ...options, type: 'object', properties, required };
return { ...options, type: 'object', properties, required: required.length ? required : undefined };
}

@@ -112,0 +112,0 @@ /** Creates a `{[key: string]: T}` type for the given item. */

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