ts-json-schema-generator
Advanced tools
Comparing version 2.3.0 to 2.3.1--canary.2007.d91cc6e.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createFormatter = void 0; | ||
exports.createFormatter = createFormatter; | ||
const ChainTypeFormatter_js_1 = require("../src/ChainTypeFormatter.js"); | ||
@@ -71,3 +71,2 @@ const CircularReferenceTypeFormatter_js_1 = require("../src/CircularReferenceTypeFormatter.js"); | ||
} | ||
exports.createFormatter = createFormatter; | ||
//# sourceMappingURL=formatter.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createGenerator = void 0; | ||
exports.createGenerator = createGenerator; | ||
const Config_js_1 = require("../src/Config.js"); | ||
@@ -16,3 +16,2 @@ const SchemaGenerator_js_1 = require("../src/SchemaGenerator.js"); | ||
} | ||
exports.createGenerator = createGenerator; | ||
//# sourceMappingURL=generator.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createParser = void 0; | ||
exports.createParser = createParser; | ||
const BasicAnnotationsReader_js_1 = require("../src/AnnotationsReader/BasicAnnotationsReader.js"); | ||
@@ -142,3 +142,2 @@ const ExtendedAnnotationsReader_js_1 = require("../src/AnnotationsReader/ExtendedAnnotationsReader.js"); | ||
} | ||
exports.createParser = createParser; | ||
//# sourceMappingURL=parser.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createProgram = void 0; | ||
exports.createProgram = createProgram; | ||
const tslib_1 = require("tslib"); | ||
@@ -75,3 +75,2 @@ const path = tslib_1.__importStar(require("node:path")); | ||
} | ||
exports.createProgram = createProgram; | ||
//# sourceMappingURL=program.js.map |
{ | ||
"name": "ts-json-schema-generator", | ||
"version": "2.3.0", | ||
"version": "2.3.1--canary.2007.d91cc6e.0", | ||
"description": "Generate JSON schema from your Typescript sources", | ||
@@ -60,9 +60,9 @@ "keywords": [ | ||
"@types/json-schema": "^7.0.15", | ||
"commander": "^12.0.0", | ||
"glob": "^10.3.12", | ||
"commander": "^12.1.0", | ||
"glob": "^10.4.2", | ||
"json5": "^2.2.3", | ||
"normalize-path": "^3.0.0", | ||
"safe-stable-stringify": "^2.4.3", | ||
"tslib": "^2.6.2", | ||
"typescript": "^5.4.5" | ||
"tslib": "^2.6.3", | ||
"typescript": "^5.5.2" | ||
}, | ||
@@ -72,17 +72,17 @@ "devDependencies": { | ||
"@auto-it/first-time-contributor": "^11.1.6", | ||
"@babel/core": "^7.24.4", | ||
"@babel/preset-env": "^7.24.4", | ||
"@babel/preset-typescript": "^7.24.1", | ||
"@eslint/js": "^9.1.1", | ||
"@babel/core": "^7.24.7", | ||
"@babel/preset-env": "^7.24.7", | ||
"@babel/preset-typescript": "^7.24.7", | ||
"@eslint/js": "^9.6.0", | ||
"@types/eslint": "^8.56.10", | ||
"@types/glob": "^8.1.0", | ||
"@types/jest": "^29.5.12", | ||
"@types/node": "^20.12.7", | ||
"@types/node": "^20.14.9", | ||
"@types/normalize-path": "^3.0.2", | ||
"ajv": "^8.12.0", | ||
"ajv": "^8.16.0", | ||
"ajv-formats": "^3.0.1", | ||
"auto": "^11.1.6", | ||
"chai": "^5.1.0", | ||
"chai": "^5.1.1", | ||
"cross-env": "^7.0.3", | ||
"eslint": "^9.1.0", | ||
"eslint": "^9.6.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
@@ -92,7 +92,7 @@ "eslint-plugin-prettier": "^5.1.3", | ||
"jest-junit": "^16.0.0", | ||
"prettier": "^3.2.5", | ||
"tsx": "^4.7.2", | ||
"typescript-eslint": "^7.7.1", | ||
"vega": "^5.28.0", | ||
"vega-lite": "^5.18.0" | ||
"prettier": "^3.3.2", | ||
"tsx": "^4.16.0", | ||
"typescript-eslint": "^7.14.1", | ||
"vega": "^5.30.0", | ||
"vega-lite": "^5.19.0" | ||
}, | ||
@@ -99,0 +99,0 @@ "engines": { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getTypeName = exports.getNamedArguments = exports.FunctionNodeParser = void 0; | ||
exports.FunctionNodeParser = void 0; | ||
exports.getNamedArguments = getNamedArguments; | ||
exports.getTypeName = getTypeName; | ||
const tslib_1 = require("tslib"); | ||
@@ -46,3 +48,2 @@ const typescript_1 = tslib_1.__importDefault(require("typescript")); | ||
} | ||
exports.getNamedArguments = getNamedArguments; | ||
function getTypeName(node) { | ||
@@ -60,3 +61,2 @@ if (typescript_1.default.isArrowFunction(node) || typescript_1.default.isFunctionExpression(node) || typescript_1.default.isFunctionTypeNode(node)) { | ||
} | ||
exports.getTypeName = getTypeName; | ||
//# sourceMappingURL=FunctionNodeParser.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.translate = exports.IntersectionNodeParser = void 0; | ||
exports.IntersectionNodeParser = void 0; | ||
exports.translate = translate; | ||
const tslib_1 = require("tslib"); | ||
@@ -103,3 +104,2 @@ const typescript_1 = tslib_1.__importDefault(require("typescript")); | ||
} | ||
exports.translate = translate; | ||
//# sourceMappingURL=IntersectionNodeParser.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AnnotatedTypeFormatter = exports.makeNullable = void 0; | ||
exports.AnnotatedTypeFormatter = void 0; | ||
exports.makeNullable = makeNullable; | ||
const Errors_js_1 = require("../Error/Errors.js"); | ||
@@ -45,3 +46,2 @@ const AnnotatedType_js_1 = require("../Type/AnnotatedType.js"); | ||
} | ||
exports.makeNullable = makeNullable; | ||
class AnnotatedTypeFormatter { | ||
@@ -48,0 +48,0 @@ childTypeFormatter; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isLiteralUnion = exports.LiteralUnionTypeFormatter = void 0; | ||
exports.LiteralUnionTypeFormatter = void 0; | ||
exports.isLiteralUnion = isLiteralUnion; | ||
const LiteralType_js_1 = require("../Type/LiteralType.js"); | ||
@@ -68,3 +69,2 @@ const NullType_js_1 = require("../Type/NullType.js"); | ||
} | ||
exports.isLiteralUnion = isLiteralUnion; | ||
function getLiteralValue(value) { | ||
@@ -71,0 +71,0 @@ return value instanceof LiteralType_js_1.LiteralType ? value.getValue() : null; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getAllOfDefinitionReducer = void 0; | ||
exports.getAllOfDefinitionReducer = getAllOfDefinitionReducer; | ||
const uniqueArray_js_1 = require("./uniqueArray.js"); | ||
@@ -79,3 +79,2 @@ const deepMerge_js_1 = require("./deepMerge.js"); | ||
} | ||
exports.getAllOfDefinitionReducer = getAllOfDefinitionReducer; | ||
//# sourceMappingURL=allOfDefinition.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.deepMerge = void 0; | ||
exports.deepMerge = deepMerge; | ||
const intersectionOfArrays_js_1 = require("./intersectionOfArrays.js"); | ||
@@ -30,3 +30,2 @@ function deepMerge(a, b) { | ||
} | ||
exports.deepMerge = deepMerge; | ||
function mergeConstsAndEnums(a, b) { | ||
@@ -33,0 +32,0 @@ const enumA = a.const !== undefined ? [a.const] : a.enum; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.derefAliasedType = exports.isHiddenType = exports.derefAnnotatedType = exports.derefType = void 0; | ||
exports.derefType = derefType; | ||
exports.derefAnnotatedType = derefAnnotatedType; | ||
exports.isHiddenType = isHiddenType; | ||
exports.derefAliasedType = derefAliasedType; | ||
const AliasType_js_1 = require("../Type/AliasType.js"); | ||
@@ -19,3 +22,2 @@ const AnnotatedType_js_1 = require("../Type/AnnotatedType.js"); | ||
} | ||
exports.derefType = derefType; | ||
function derefAnnotatedType(type) { | ||
@@ -27,3 +29,2 @@ if (type instanceof AnnotatedType_js_1.AnnotatedType || type instanceof AliasType_js_1.AliasType) { | ||
} | ||
exports.derefAnnotatedType = derefAnnotatedType; | ||
function isHiddenType(type) { | ||
@@ -38,3 +39,2 @@ if (type instanceof HiddenType_js_1.HiddenType || type instanceof NeverType_js_1.NeverType) { | ||
} | ||
exports.isHiddenType = isHiddenType; | ||
function derefAliasedType(type) { | ||
@@ -46,3 +46,2 @@ if (type instanceof AliasType_js_1.AliasType) { | ||
} | ||
exports.derefAliasedType = derefAliasedType; | ||
//# sourceMappingURL=derefType.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.extractLiterals = void 0; | ||
exports.extractLiterals = extractLiterals; | ||
const Errors_js_1 = require("../Error/Errors.js"); | ||
@@ -40,3 +40,2 @@ const AliasType_js_1 = require("../Type/AliasType.js"); | ||
} | ||
exports.extractLiterals = extractLiterals; | ||
//# sourceMappingURL=extractLiterals.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.hasJsDocTag = void 0; | ||
exports.hasJsDocTag = hasJsDocTag; | ||
const symbolAtNode_js_1 = require("./symbolAtNode.js"); | ||
@@ -9,3 +9,2 @@ function hasJsDocTag(node, tagName) { | ||
} | ||
exports.hasJsDocTag = hasJsDocTag; | ||
//# sourceMappingURL=hasJsDocTag.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.intersectionOfArrays = void 0; | ||
exports.intersectionOfArrays = intersectionOfArrays; | ||
const tslib_1 = require("tslib"); | ||
@@ -16,3 +16,2 @@ const safe_stable_stringify_1 = tslib_1.__importDefault(require("safe-stable-stringify")); | ||
} | ||
exports.intersectionOfArrays = intersectionOfArrays; | ||
//# sourceMappingURL=intersectionOfArrays.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isAssignableTo = void 0; | ||
exports.isAssignableTo = isAssignableTo; | ||
const AnyType_js_1 = require("../Type/AnyType.js"); | ||
@@ -209,3 +209,2 @@ const ArrayType_js_1 = require("../Type/ArrayType.js"); | ||
} | ||
exports.isAssignableTo = isAssignableTo; | ||
//# sourceMappingURL=isAssignableTo.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isNodeHidden = void 0; | ||
exports.isNodeHidden = isNodeHidden; | ||
const hasJsDocTag_js_1 = require("./hasJsDocTag.js"); | ||
@@ -8,3 +8,2 @@ function isNodeHidden(node) { | ||
} | ||
exports.isNodeHidden = isNodeHidden; | ||
//# sourceMappingURL=isHidden.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isStatic = exports.isPublic = exports.hasModifier = void 0; | ||
exports.hasModifier = hasModifier; | ||
exports.isPublic = isPublic; | ||
exports.isStatic = isStatic; | ||
const tslib_1 = require("tslib"); | ||
@@ -15,11 +17,8 @@ const typescript_1 = tslib_1.__importDefault(require("typescript")); | ||
} | ||
exports.hasModifier = hasModifier; | ||
function isPublic(node) { | ||
return !(hasModifier(node, typescript_1.default.SyntaxKind.PrivateKeyword) || hasModifier(node, typescript_1.default.SyntaxKind.ProtectedKeyword)); | ||
} | ||
exports.isPublic = isPublic; | ||
function isStatic(node) { | ||
return hasModifier(node, typescript_1.default.SyntaxKind.StaticKeyword); | ||
} | ||
exports.isStatic = isStatic; | ||
//# sourceMappingURL=modifiers.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.narrowType = void 0; | ||
exports.narrowType = narrowType; | ||
const EnumType_js_1 = require("../Type/EnumType.js"); | ||
@@ -44,3 +44,2 @@ const NeverType_js_1 = require("../Type/NeverType.js"); | ||
} | ||
exports.narrowType = narrowType; | ||
//# sourceMappingURL=narrowType.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getKey = exports.hash = void 0; | ||
exports.hash = hash; | ||
exports.getKey = getKey; | ||
const tslib_1 = require("tslib"); | ||
@@ -25,3 +26,2 @@ const safe_stable_stringify_1 = tslib_1.__importDefault(require("safe-stable-stringify")); | ||
} | ||
exports.hash = hash; | ||
function getKey(node, context) { | ||
@@ -44,3 +44,2 @@ const ids = []; | ||
} | ||
exports.getKey = getKey; | ||
//# sourceMappingURL=nodeKey.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.notNever = void 0; | ||
exports.notNever = notNever; | ||
const NeverType_js_1 = require("../Type/NeverType.js"); | ||
@@ -8,3 +8,2 @@ function notNever(x) { | ||
} | ||
exports.notNever = notNever; | ||
//# sourceMappingURL=notNever.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.preserveAnnotation = void 0; | ||
exports.preserveAnnotation = preserveAnnotation; | ||
const AnnotatedType_js_1 = require("../Type/AnnotatedType.js"); | ||
@@ -11,3 +11,2 @@ function preserveAnnotation(originalType, newType) { | ||
} | ||
exports.preserveAnnotation = preserveAnnotation; | ||
//# sourceMappingURL=preserveAnnotation.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.removeUndefined = void 0; | ||
exports.removeUndefined = removeUndefined; | ||
const UndefinedType_js_1 = require("../Type/UndefinedType.js"); | ||
@@ -31,3 +31,2 @@ const UnionType_js_1 = require("../Type/UnionType.js"); | ||
} | ||
exports.removeUndefined = removeUndefined; | ||
//# sourceMappingURL=removeUndefined.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.removeUnreachable = void 0; | ||
exports.removeUnreachable = removeUnreachable; | ||
const Errors_js_1 = require("../Error/Errors.js"); | ||
@@ -77,3 +77,2 @@ const DEFINITION_OFFSET = "#/definitions/".length; | ||
} | ||
exports.removeUnreachable = removeUnreachable; | ||
function isLocalRef(ref) { | ||
@@ -80,0 +79,0 @@ return ref.charAt(0) === "#"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.strip = void 0; | ||
exports.strip = strip; | ||
const quotes = new Set(["'", '"']); | ||
@@ -14,3 +14,2 @@ function strip(input, chars = quotes) { | ||
} | ||
exports.strip = strip; | ||
//# sourceMappingURL=String.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.symbolAtNode = void 0; | ||
exports.symbolAtNode = symbolAtNode; | ||
function symbolAtNode(node) { | ||
return node.symbol; | ||
} | ||
exports.symbolAtNode = symbolAtNode; | ||
//# sourceMappingURL=symbolAtNode.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getTypeByKey = exports.getTypeKeys = void 0; | ||
exports.getTypeKeys = getTypeKeys; | ||
exports.getTypeByKey = getTypeByKey; | ||
const IntersectionNodeParser_js_1 = require("../NodeParser/IntersectionNodeParser.js"); | ||
@@ -39,3 +40,2 @@ const AnyType_js_1 = require("../Type/AnyType.js"); | ||
} | ||
exports.getTypeKeys = getTypeKeys; | ||
function getTypeByKey(type, index) { | ||
@@ -121,3 +121,2 @@ type = (0, derefType_js_1.derefType)(type); | ||
} | ||
exports.getTypeByKey = getTypeByKey; | ||
//# sourceMappingURL=typeKeys.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.typeName = void 0; | ||
exports.typeName = typeName; | ||
const Errors_js_1 = require("../Error/Errors.js"); | ||
@@ -21,3 +21,2 @@ function typeName(value) { | ||
} | ||
exports.typeName = typeName; | ||
//# sourceMappingURL=typeName.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.uniqueArray = void 0; | ||
exports.uniqueArray = uniqueArray; | ||
function uniqueArray(array) { | ||
@@ -12,3 +12,2 @@ return array.reduce((result, item) => { | ||
} | ||
exports.uniqueArray = uniqueArray; | ||
//# sourceMappingURL=uniqueArray.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.uniqueTypeArray = void 0; | ||
exports.uniqueTypeArray = uniqueTypeArray; | ||
function uniqueTypeArray(types) { | ||
@@ -11,3 +11,2 @@ const uniqueTypes = new Map(); | ||
} | ||
exports.uniqueTypeArray = uniqueTypeArray; | ||
//# sourceMappingURL=uniqueTypeArray.js.map |
{ | ||
"name": "ts-json-schema-generator", | ||
"version": "2.3.0", | ||
"version": "2.3.1--canary.2007.d91cc6e.0", | ||
"description": "Generate JSON schema from your Typescript sources", | ||
@@ -60,9 +60,9 @@ "keywords": [ | ||
"@types/json-schema": "^7.0.15", | ||
"commander": "^12.0.0", | ||
"glob": "^10.3.12", | ||
"commander": "^12.1.0", | ||
"glob": "^10.4.2", | ||
"json5": "^2.2.3", | ||
"normalize-path": "^3.0.0", | ||
"safe-stable-stringify": "^2.4.3", | ||
"tslib": "^2.6.2", | ||
"typescript": "^5.4.5" | ||
"tslib": "^2.6.3", | ||
"typescript": "^5.5.2" | ||
}, | ||
@@ -72,17 +72,17 @@ "devDependencies": { | ||
"@auto-it/first-time-contributor": "^11.1.6", | ||
"@babel/core": "^7.24.4", | ||
"@babel/preset-env": "^7.24.4", | ||
"@babel/preset-typescript": "^7.24.1", | ||
"@eslint/js": "^9.1.1", | ||
"@babel/core": "^7.24.7", | ||
"@babel/preset-env": "^7.24.7", | ||
"@babel/preset-typescript": "^7.24.7", | ||
"@eslint/js": "^9.6.0", | ||
"@types/eslint": "^8.56.10", | ||
"@types/glob": "^8.1.0", | ||
"@types/jest": "^29.5.12", | ||
"@types/node": "^20.12.7", | ||
"@types/node": "^20.14.9", | ||
"@types/normalize-path": "^3.0.2", | ||
"ajv": "^8.12.0", | ||
"ajv": "^8.16.0", | ||
"ajv-formats": "^3.0.1", | ||
"auto": "^11.1.6", | ||
"chai": "^5.1.0", | ||
"chai": "^5.1.1", | ||
"cross-env": "^7.0.3", | ||
"eslint": "^9.1.0", | ||
"eslint": "^9.6.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
@@ -92,7 +92,7 @@ "eslint-plugin-prettier": "^5.1.3", | ||
"jest-junit": "^16.0.0", | ||
"prettier": "^3.2.5", | ||
"tsx": "^4.7.2", | ||
"typescript-eslint": "^7.7.1", | ||
"vega": "^5.28.0", | ||
"vega-lite": "^5.18.0" | ||
"prettier": "^3.3.2", | ||
"tsx": "^4.16.0", | ||
"typescript-eslint": "^7.14.1", | ||
"vega": "^5.30.0", | ||
"vega-lite": "^5.19.0" | ||
}, | ||
@@ -99,0 +99,0 @@ "engines": { |
@@ -235,2 +235,3 @@ # ts-json-schema-generator | ||
- `Promise<T>` unwraps to `T` | ||
- Overrides (like `@format`) | ||
@@ -237,0 +238,0 @@ ## Run locally |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
257
837398
13098
2
Updatedcommander@^12.1.0
Updatedglob@^10.4.2
Updatedtslib@^2.6.3
Updatedtypescript@^5.5.2