@mark.probst/typescript-json-schema
Advanced tools
Comparing version 0.31.0 to 0.32.0
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
177827
2425
+ Addedtypescript@3.2.4(transitive)
- Removedtypescript@3.0.3(transitive)
Updatedglob@~7.1.3
Updatedtypescript@~3.2.1
Updatedyargs@^12.0.5