Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ts-json-schema-generator

Package Overview
Dependencies
Maintainers
1
Versions
335
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-json-schema-generator - npm Package Compare versions

Comparing version 0.13.0 to 0.14.0

7

dist/src/TypeFormatter/AnnotatedTypeFormatter.js

@@ -22,2 +22,9 @@ "use strict";

const subdef = {};
if ("anyOf" in def) {
for (const d of def.anyOf) {
if (d.type === "null") {
return def;
}
}
}
for (const k in def) {

@@ -24,0 +31,0 @@ if (def.hasOwnProperty(k) && k !== "description" && k !== "title" && k !== "default") {

8

external.ts

@@ -1,5 +0,3 @@

/**
* Test
* @hide
*/
export type A = "a";
export type Type = {
foo: number;
};
{
"name": "ts-json-schema-generator",
"version": "0.13.0",
"version": "0.14.0",
"description": "Generate JSON schema from your Typescript sources",

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

@@ -1,3 +0,6 @@

const FOO = "foo";
export type MyType = typeof FOO;
export interface MyObject {
/**
* @nullable
*/
optional?: MyObject | null;
}

Sorry, the diff of this file is not supported yet

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