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.16.2 to 0.16.3

2

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

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

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

const required = items.reduce((acc, object) => object['required'] ? [...acc, ...object['required']] : acc, []);
return { ...options, type, kind: exports.ObjectKind, additionalProperties, properties, required };
return { ...options, type, kind: exports.ObjectKind, additionalProperties, properties, required: [...new Set(required)] };
}

@@ -194,0 +194,0 @@ /** `STANDARD` Make all properties in schema object required. */

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