New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.33.0 to 0.34.0

2

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

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

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

var modifierFlags = ts.getCombinedModifierFlags(node);
if (modifierFlags & ts.ModifierFlags.Abstract) {
if (modifierFlags & ts.ModifierFlags.Abstract && this.inheritingTypes[fullName]) {
var oneOf = this.inheritingTypes[fullName].map(function (typename) {

@@ -582,0 +582,0 @@ return _this.getTypeDefinition(_this.allSymbols[typename]);

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

if (typ.flags & ts.TypeFlags.StringLiteral) {
return str;
return str as string;
} else if (typ.flags & ts.TypeFlags.BooleanLiteral) {

@@ -164,3 +164,3 @@ return (typ as any).intrinsicName === "true";

const num = parseFloat(str as string);
return isNaN(num) ? str : num;
return isNaN(num) ? str as string : num;
} else if (typ.flags & ts.TypeFlags.NumberLiteral) {

@@ -728,3 +728,3 @@ return parseFloat(str as string);

if (modifierFlags & ts.ModifierFlags.Abstract) {
if (modifierFlags & ts.ModifierFlags.Abstract && this.inheritingTypes[fullName]) {
const oneOf = this.inheritingTypes[fullName].map((typename) => {

@@ -1083,3 +1083,3 @@ return this.getTypeDefinition(this.allSymbols[typename]);

let diagnostics: Array<ts.Diagnostic> = [];
let diagnostics: ReadonlyArray<ts.Diagnostic> = [];

@@ -1086,0 +1086,0 @@ if (!args.ignoreErrors) {

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