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
0
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.10.2
to
0.10.3
+0
-0
model/model-to-io-ts.js

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

+6
-6

@@ -43,6 +43,6 @@ "use strict";

if (typeof parameter === 'string') {
return `${type}(${parameter}, [${constraints.join(', ')}])`;
return `v.pipe(${type}(${parameter}), ${constraints.join(', ')})`;
}
else {
return `${type}([${constraints.join(', ')}])`;
return `v.pipe(${type}(), ${constraints.join(', ')})`;
}

@@ -172,3 +172,3 @@ }

function Undefined(schema) {
return Type(`v.undefinedType`, null, []);
return Type(`v.undefined_`, null, []);
}

@@ -183,3 +183,3 @@ function Union(schema) {

function Void(schema) {
return Type(`v.voidType`, null, []);
return Type(`v.void_`, null, []);
}

@@ -261,6 +261,6 @@ function UnsupportedType(schema) {

output.push(`export ${model_to_typescript_1.ModelToTypeScript.GenerateType(model, schema.$id)}`);
output.push(`export const ${schema.$id || `T`}: v.Output<${schema.$id}> = v.lazy(() => ${index_1.Formatter.Format(type)})`);
output.push(`export const ${schema.$id || `T`}: v.InferOutput<${schema.$id}> = v.lazy(() => ${index_1.Formatter.Format(type)})`);
}
else {
output.push(`export type ${schema.$id} = v.Output<typeof ${schema.$id}>`);
output.push(`export type ${schema.$id} = v.InferOutput<typeof ${schema.$id}>`);
output.push(`export const ${schema.$id || `T`} = ${index_1.Formatter.Format(type)}`);

@@ -267,0 +267,0 @@ }

@@ -0,0 +0,0 @@ "use strict";

{
"name": "@sinclair/typebox-codegen",
"version": "0.10.2",
"version": "0.10.3",
"description": "Code Generation Tools for TypeBox",

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