Socket
Socket
Sign inDemoInstall

json-schema-to-typescript

Package Overview
Dependencies
Maintainers
1
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-schema-to-typescript - npm Package Compare versions

Comparing version 6.0.0 to 6.0.1

2

dist/src/generator.js

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

case 'UNION': return generateSetOperation(ast, options);
case 'CUSTOM_TYPE': return ast.param;
case 'CUSTOM_TYPE': return ast.params;
}

@@ -136,0 +136,0 @@ }

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

keyName: keyName,
param: schema.tsType,
params: schema.tsType,
standaloneName: standaloneName(schema, keyNameFromDefinition, usedNames),

@@ -90,0 +90,0 @@ type: 'CUSTOM_TYPE'

@@ -92,5 +92,5 @@ import { JSONSchema4Type } from 'json-schema';

type: 'CUSTOM_TYPE';
param: string;
params: string;
}
export declare const T_ANY: TAny;
export declare const T_ANY_ADDITIONAL_PROPERTIES: TAny & ASTWithName;
{
"name": "json-schema-to-typescript",
"version": "6.0.0",
"version": "6.0.1",
"description": "compile json schema to typescript typings",

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

@@ -161,3 +161,3 @@ import { whiteBright } from 'cli-color'

case 'UNION': return generateSetOperation(ast, options)
case 'CUSTOM_TYPE': return ast.param
case 'CUSTOM_TYPE': return ast.params
}

@@ -164,0 +164,0 @@ }

@@ -107,3 +107,3 @@ import { whiteBright } from 'cli-color'

keyName,
param: schema.tsType!,
params: schema.tsType!,
standaloneName: standaloneName(schema, keyNameFromDefinition, usedNames),

@@ -110,0 +110,0 @@ type: 'CUSTOM_TYPE'

@@ -118,3 +118,3 @@ import { JSONSchema4Type } from 'json-schema'

type: 'CUSTOM_TYPE'
param: string
params: string
}

@@ -121,0 +121,0 @@

Sorry, the diff of this file is too big to display

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