New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@sinclair/typebox-codegen

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sinclair/typebox-codegen - npm Package Compare versions

Comparing version
0.9.7
to
0.9.8
sinclair-typebox-codegen-0.9.7.tgz

Sorry, the diff of this file is not supported yet

+4
-1

@@ -167,3 +167,6 @@ "use strict";

function Union(schema) {
return Type(schema, `y.mixed().oneOf([${schema.anyOf.map((schema) => Visit(schema)).join(`, `)}]).required()`);
const isLiteralUnion = schema.anyOf.every((schema) => Types.TypeGuard.IsLiteral(schema));
return isLiteralUnion
? Type(schema, `y.mixed().oneOf([${schema.anyOf.map((schema) => JSON.stringify(schema.const)).join(`, `)}]).required()`)
: Type(schema, `y.mixed().oneOf([${schema.anyOf.map((schema) => Visit(schema)).join(`, `)}]).required()`);
}

@@ -170,0 +173,0 @@ function Unknown(schema) {

+1
-1
{
"name": "@sinclair/typebox-codegen",
"version": "0.9.7",
"version": "0.9.8",
"description": "Code Generation Tools for TypeBox",

@@ -5,0 +5,0 @@ "main": "index.js",