typescript-json-schema
Advanced tools
Comparing version 0.65.0 to 0.65.1
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.run = void 0; | ||
exports.run = run; | ||
var typescript_json_schema_1 = require("./typescript-json-schema"); | ||
@@ -88,3 +88,2 @@ function run() { | ||
} | ||
exports.run = run; | ||
if (typeof window === "undefined" && require.main === module) { | ||
@@ -91,0 +90,0 @@ run(); |
@@ -50,3 +50,10 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.exec = exports.programFromConfig = exports.generateSchema = exports.buildGenerator = exports.getProgramFromFiles = exports.JsonSchemaGenerator = exports.regexRequire = exports.getDefaultArgs = void 0; | ||
exports.JsonSchemaGenerator = void 0; | ||
exports.getDefaultArgs = getDefaultArgs; | ||
exports.regexRequire = regexRequire; | ||
exports.getProgramFromFiles = getProgramFromFiles; | ||
exports.buildGenerator = buildGenerator; | ||
exports.generateSchema = generateSchema; | ||
exports.programFromConfig = programFromConfig; | ||
exports.exec = exec; | ||
var glob = require("glob"); | ||
@@ -93,3 +100,2 @@ var safe_stable_stringify_1 = require("safe-stable-stringify"); | ||
} | ||
exports.getDefaultArgs = getDefaultArgs; | ||
function extend(target) { | ||
@@ -156,3 +162,2 @@ var _ = []; | ||
} | ||
exports.regexRequire = regexRequire; | ||
function parseValue(symbol, key, value) { | ||
@@ -1278,3 +1283,2 @@ var match = regexRequire(value); | ||
} | ||
exports.getProgramFromFiles = getProgramFromFiles; | ||
function generateHashOfNode(node, relativePath) { | ||
@@ -1361,3 +1365,2 @@ return (0, crypto_1.createHash)("md5").update(relativePath).update(node.pos.toString()).digest("hex").substring(0, 8); | ||
} | ||
exports.buildGenerator = buildGenerator; | ||
function generateSchema(program, fullTypeName, args, onlyIncludeFiles, externalGenerator) { | ||
@@ -1385,3 +1388,2 @@ if (args === void 0) { args = {}; } | ||
} | ||
exports.generateSchema = generateSchema; | ||
function programFromConfig(configFileName, onlyIncludeFiles) { | ||
@@ -1406,3 +1408,2 @@ var result = ts.parseConfigFileTextToJson(configFileName, ts.sys.readFile(configFileName)); | ||
} | ||
exports.programFromConfig = programFromConfig; | ||
function normalizeFileName(fn) { | ||
@@ -1414,7 +1415,7 @@ while (fn.substr(0, 2) === "./") { | ||
} | ||
function exec(filePattern, fullTypeName, args) { | ||
if (args === void 0) { args = getDefaultArgs(); } | ||
return __awaiter(this, void 0, void 0, function () { | ||
function exec(filePattern_1, fullTypeName_1) { | ||
return __awaiter(this, arguments, void 0, function (filePattern, fullTypeName, args) { | ||
var program, onlyIncludeFiles, globs, definition, json, hasBeenBuffered; | ||
var _a; | ||
if (args === void 0) { args = getDefaultArgs(); } | ||
return __generator(this, function (_b) { | ||
@@ -1471,3 +1472,2 @@ onlyIncludeFiles = undefined; | ||
} | ||
exports.exec = exec; | ||
//# sourceMappingURL=typescript-json-schema.js.map |
{ | ||
"name": "typescript-json-schema", | ||
"version": "0.65.0", | ||
"version": "0.65.1", | ||
"description": "typescript-json-schema generates JSON Schema files from your Typescript sources", | ||
@@ -5,0 +5,0 @@ "main": "dist/typescript-json-schema.js", |
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
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
262167
3583