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

typescript-json-schema

Package Overview
Dependencies
Maintainers
2
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typescript-json-schema - npm Package Compare versions

Comparing version 0.36.0 to 0.37.0

.DS_Store

2

package.json
{
"name": "typescript-json-schema",
"version": "0.36.0",
"version": "0.37.0",
"description": "typescript-json-schema generates JSON Schema files from your Typescript sources",

@@ -5,0 +5,0 @@ "main": "typescript-json-schema.js",

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

var symbol = typ.getSymbol();
var isRawType = (!symbol || symbol.name === "Date" || symbol.name === "integer" || this.tc.getIndexInfoOfType(typ, ts.IndexKind.Number) !== undefined);
var isRawType = (!symbol || this.tc.getFullyQualifiedName(symbol) === "Date" || symbol.name === "integer" || this.tc.getIndexInfoOfType(typ, ts.IndexKind.Number) !== undefined);
var isStringEnum = false;

@@ -979,3 +979,7 @@ if (typ.flags & ts.TypeFlags.Union) {

delete options.declarationMap;
var program = ts.createProgram(onlyIncludeFiles || configParseResult.fileNames, options);
var program = ts.createProgram({
rootNames: onlyIncludeFiles || configParseResult.fileNames,
options: options,
projectReferences: configParseResult.projectReferences
});
return program;

@@ -982,0 +986,0 @@ }

@@ -861,3 +861,3 @@ import * as glob from "glob";

// FIXME: We can't just compare the name of the symbol - it ignores the namespace
const isRawType = (!symbol || symbol.name === "Date" || symbol.name === "integer" || this.tc.getIndexInfoOfType(typ, ts.IndexKind.Number) !== undefined);
const isRawType = (!symbol || this.tc.getFullyQualifiedName(symbol) === "Date" || symbol.name === "integer" || this.tc.getIndexInfoOfType(typ, ts.IndexKind.Number) !== undefined);

@@ -1189,3 +1189,7 @@ // special case: an union where all child are string literals -> make an enum instead

const program = ts.createProgram(onlyIncludeFiles || configParseResult.fileNames, options);
const program = ts.createProgram({
rootNames: onlyIncludeFiles || configParseResult.fileNames,
options,
projectReferences: configParseResult.projectReferences
});
return program;

@@ -1192,0 +1196,0 @@ }

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