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 5.3.4 to 5.4.0

4

dist/src/generator.js

@@ -32,2 +32,6 @@ "use strict";

break;
case 'ARRAY':
return declareEnums(ast.params, options, processed);
case 'TUPLE':
return ast.params.reduce(function (prev, ast) { return prev + declareEnums(ast, options, processed); }, '');
case 'INTERFACE':

@@ -34,0 +38,0 @@ type = getSuperTypesAndParams(ast).reduce(function (prev, ast) {

2

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

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

@@ -39,2 +39,6 @@ import { whiteBright } from 'cli-color'

break
case 'ARRAY':
return declareEnums(ast.params, options, processed)
case 'TUPLE':
return ast.params.reduce((prev, ast) => prev + declareEnums(ast, options, processed), '')
case 'INTERFACE':

@@ -41,0 +45,0 @@ type = getSuperTypesAndParams(ast).reduce((prev, ast) =>

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