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.5
to
0.9.6
+2
-2
model/model-to-typescript.js

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

function Constructor(schema) {
const params = schema.parameters.map((param) => Visit(param)).join(', ');
const params = schema.parameters.map((param, i) => `param${i}: ${Visit(param)}`).join(', ');
const returns = Visit(schema.returns);

@@ -57,3 +57,3 @@ return `(new (${params}) => ${returns})`;

function Function(schema) {
const params = schema.parameters.map((param) => Visit(param)).join(', ');
const params = schema.parameters.map((param, i) => `param${i}: ${Visit(param)}`).join(', ');
const returns = Visit(schema.returns);

@@ -60,0 +60,0 @@ return `((${params}) => ${returns})`;

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

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

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

const types = node.types.map((node) => Collect(node));
// Note: Heritage clauses are only used in interface extends cases. We expect the
// Note: Heritage clauses are only used in interface extends cases. We expect the
// outer type to be a Composite, and where this type will be prepended before the

@@ -402,0 +402,0 @@ // interface definition.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet