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

@sinclair/typebox

Package Overview
Dependencies
Maintainers
0
Versions
363
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.34.2 to 0.34.3

8

build/cjs/value/default/default.js

@@ -35,2 +35,10 @@ "use strict";

function FromArray(schema, references, value) {
// if the value is an array, we attempt to initialize it's elements
if ((0, index_5.IsArray)(value)) {
for (let i = 0; i < value.length; i++) {
value[i] = Visit(schema.items, references, value[i]);
}
return value;
}
// ... otherwise use default initialization
const defaulted = ValueOrDefault(schema, value);

@@ -37,0 +45,0 @@ if (!(0, index_5.IsArray)(defaulted))

2

package.json
{
"name": "@sinclair/typebox",
"version": "0.34.2",
"version": "0.34.3",
"description": "Json Schema Type Builder with Static Type Resolution for TypeScript",

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

Sorry, the diff of this file is not supported yet

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