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

@mark.probst/typescript-json-schema

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mark.probst/typescript-json-schema - npm Package Compare versions

Comparing version 0.31.0 to 0.32.0

10

package.json
{
"name": "@mark.probst/typescript-json-schema",
"version": "0.31.0",
"version": "0.32.0",
"description": "typescript-json-schema generates JSON Schema files from your Typescript sources",

@@ -49,6 +49,6 @@ "main": "typescript-json-schema.js",

"dependencies": {
"glob": "~7.1.2",
"glob": "~7.1.3",
"json-stable-stringify": "^1.0.1",
"typescript": "~3.0.3",
"yargs": "^12.0.1"
"typescript": "~3.2.1",
"yargs": "^12.0.5"
},

@@ -66,3 +66,3 @@ "devDependencies": {

"source-map-support": "^0.5.6",
"ts-node": "^7.0.0",
"ts-node": "^7.0.1",
"tslint": "^5.11.0"

@@ -69,0 +69,0 @@ },

@@ -94,2 +94,5 @@ "use strict";

}
if (typeof str === "bigint") {
return undefined;
}
if (typ.flags & ts.TypeFlags.StringLiteral) {

@@ -96,0 +99,0 @@ return str;

@@ -155,4 +155,8 @@ import * as glob from "glob";

}
if (typeof str === "bigint") {
return undefined;
}
if (typ.flags & ts.TypeFlags.StringLiteral) {
return str;
// FIXME: This cast shouldn't be necessary
return str as PrimitiveType;
} else if (typ.flags & ts.TypeFlags.BooleanLiteral) {

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

const num = parseFloat(str as string);
return isNaN(num) ? str : num;
// FIXME: This cast shouldn't be necessary
return isNaN(num) ? (str as PrimitiveType) : num;
} else if (typ.flags & ts.TypeFlags.NumberLiteral) {

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

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

@@ -1075,0 +1080,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