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 4.3.2 to 4.3.3

6

dist/src/generator.js

@@ -80,2 +80,8 @@ "use strict";

switch (ast.type) {
case 'ARRAY':
type = [
declareNamedTypes(ast.params, options, processed),
AST_1.hasStandaloneName(ast) ? generateStandaloneType(ast, options) : undefined
].filter(Boolean).join('\n');
break;
case 'ENUM':

@@ -82,0 +88,0 @@ type = '';

2

package.json
{
"name": "json-schema-to-typescript",
"version": "4.3.2",
"version": "4.3.3",
"description": "compile json schema to typescript typings",

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

@@ -102,2 +102,8 @@ import { whiteBright } from 'cli-color'

switch (ast.type) {
case 'ARRAY':
type = [
declareNamedTypes((ast as TArray).params, options, processed),
hasStandaloneName(ast) ? generateStandaloneType(ast, options) : undefined
].filter(Boolean).join('\n')
break
case 'ENUM':

@@ -104,0 +110,0 @@ type = ''

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