This commit is contained in:
Ritesh Kumar authored and GitHub committed 2020-01-12 13:59:39 +05:30
1 parent 217b9978cd
commit acb0ffa9e7
8 files changed
+49793 -44869

No files matched your search

+2 -2
View File
@@ -57,7 +57,7 @@
"is-capitalized": "^1.0.0",
"is-svg": "^4.2.0",
"json-schema-to-openapi-schema": "^0.3.0",
"json-schema-to-typescript": "^6.1.3",
"json-schema-to-typescript": "^8.0.0",
"json-to-go": "gist:0d0b8324131c80eeb7e1df20001be32f",
"json-ts": "^1.6.4",
"json_typegen_wasm": "^0.4.0",
@@ -80,8 +80,8 @@
"snack-sdk": "^2.3.1",
"stringify-object": "^3.3.0",
"svg-to-dataurl": "^1.0.0",
"tempy": "^0.3.0",
"svgo": "^1.3.2",
"tempy": "^0.3.0",
"text-encoding-utf-8": "^1.0.2",
"transform-json-types": "^0.7.0",
"ts-json-schema-generator": "^0.58.1",
@@ -1,44 +0,0 @@
diff --git a/node_modules/json-schema-to-typescript/dist/src/formatter.js b/node_modules/json-schema-to-typescript/dist/src/formatter.js
index 1c2c709..ccc647b 100644
--- a/node_modules/json-schema-to-typescript/dist/src/formatter.js
+++ b/node_modules/json-schema-to-typescript/dist/src/formatter.js
@@ -11,9 +11,8 @@ var __assign = (this && this.__assign) || function () {
return __assign.apply(this, arguments);
};
Object.defineProperty(exports, "__esModule", { value: true });
-var prettier_1 = require("prettier");
function format(code, options) {
- return prettier_1.format(code, __assign({ parser: 'typescript' }, options.style));
+ return code;
}
exports.format = format;
//# sourceMappingURL=formatter.js.map
diff --git a/node_modules/json-schema-to-typescript/dist/src/index.js b/node_modules/json-schema-to-typescript/dist/src/index.js
index 106f6df..d235ae7 100644
--- a/node_modules/json-schema-to-typescript/dist/src/index.js
+++ b/node_modules/json-schema-to-typescript/dist/src/index.js
@@ -59,9 +59,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
}
};
Object.defineProperty(exports, "__esModule", { value: true });
-var fs_1 = require("fs");
var lodash_1 = require("lodash");
-var path_1 = require("path");
var formatter_1 = require("./formatter");
var generator_1 = require("./generator");
var normalizer_1 = require("./normalizer");
@@ -87,13 +85,7 @@ exports.DEFAULT_OPTIONS = {
unreachableDefinitions: false,
$refOptions: {}
};
-function compileFromFile(filename, options) {
- if (options === void 0) { options = exports.DEFAULT_OPTIONS; }
- var contents = utils_1.Try(function () { return fs_1.readFileSync(filename); }, function () { throw new ReferenceError("Unable to read file \"" + filename + "\""); });
- var schema = utils_1.Try(function () { return JSON.parse(contents.toString()); }, function () { throw new TypeError("Error parsing JSON in file \"" + filename + "\""); });
- return compile(schema, utils_1.stripExtension(filename), __assign({ cwd: path_1.dirname(filename) }, options));
-}
-exports.compileFromFile = compileFromFile;
+
function compile(schema, name, options) {
if (options === void 0) { options = {}; }
return __awaiter(this, void 0, void 0, function () {
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+13 -27
View File
@@ -1210,10 +1210,6 @@
version "1.3.1"
resolved "https://registry.yarnpkg.com/@types/anymatch/-/anymatch-1.3.1.tgz#336badc1beecb9dacc38bea2cf32adf627a8421a"
"@types/cli-color@^0.3.29":
version "0.3.29"
resolved "https://registry.yarnpkg.com/@types/cli-color/-/cli-color-0.3.29.tgz#c83a71fe02c8c7e1ccec048dd6a2458d1f6c96ea"
"@types/events@*":
version "3.0.0"
resolved "https://registry.yarnpkg.com/@types/events/-/events-3.0.0.tgz#2862f3f58a9a7f7c3e78d79f130dd4d71c25c2a7"
@@ -1234,7 +1230,7 @@
version "1.5.0"
resolved "https://registry.yarnpkg.com/@types/jsonld/-/jsonld-1.5.0.tgz#cd5cb660dcbeffd391290f820efebab571af65d9"
"@types/lodash@^4.14.121", "@types/lodash@^4.14.135":
"@types/lodash@^4.14.135":
version "4.14.136"
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.136.tgz#413e85089046b865d960c9ff1d400e04c31ab60f"
@@ -1242,23 +1238,13 @@
version "3.0.3"
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d"
"@types/minimist@^1.2.0":
version "1.2.0"
resolved "https://registry.yarnpkg.com/@types/minimist/-/minimist-1.2.0.tgz#69a23a3ad29caf0097f06eda59b361ee2f0639f6"
"@types/mz@0.0.32":
version "0.0.32"
resolved "https://registry.yarnpkg.com/@types/mz/-/mz-0.0.32.tgz#e8248b4e41424c052edc1725dd33650c313a3659"
dependencies:
"@types/node" "*"
"@types/node@*":
version "12.0.8"
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.0.8.tgz#551466be11b2adc3f3d47156758f610bd9f6b1d8"
"@types/node@^11.10.4":
version "11.13.17"
resolved "https://registry.yarnpkg.com/@types/node/-/node-11.13.17.tgz#2e7efbfe5253561087812571e5e6a1e4b1d6295b"
"@types/node@>=4.5.0":
version "13.1.6"
resolved "https://registry.yarnpkg.com/@types/node/-/node-13.1.6.tgz#076028d0b0400be8105b89a0a55550c86684ffec"
"@types/node@^8.0.7":
version "8.10.50"
@@ -5445,16 +5431,12 @@ json-schema-to-openapi-schema@^0.3.0:
dependencies:
"@cloudflare/json-schema-walker" "^0.1.1"
json-schema-to-typescript@^6.1.3:
version "6.1.3"
resolved "https://registry.yarnpkg.com/json-schema-to-typescript/-/json-schema-to-typescript-6.1.3.tgz#245364e8564263e53738320b46227f304491cc77"
json-schema-to-typescript@^8.0.0:
version "8.0.0"
resolved "https://registry.yarnpkg.com/json-schema-to-typescript/-/json-schema-to-typescript-8.0.0.tgz#3dbe5df6cc6ffcb3a11b00ca09ee80428a01e96d"
dependencies:
"@types/cli-color" "^0.3.29"
"@types/json-schema" "^7.0.3"
"@types/lodash" "^4.14.121"
"@types/minimist" "^1.2.0"
"@types/mz" "0.0.32"
"@types/node" "^11.10.4"
"@types/node" ">=4.5.0"
"@types/prettier" "^1.16.1"
cli-color "^1.4.0"
json-schema-ref-parser "^6.1.0"
@@ -5462,7 +5444,7 @@ json-schema-to-typescript@^6.1.3:
lodash "^4.17.11"
minimist "^1.2.0"
mz "^2.7.0"
prettier "^1.16.4"
prettier "^1.19.1"
stdin "0.0.1"
json-schema-traverse@^0.4.1:
@@ -7496,6 +7478,10 @@ prettier@^1.16.4, prettier@^1.18.2:
version "1.18.2"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.18.2.tgz#6823e7c5900017b4bd3acf46fe9ac4b4d7bda9ea"
prettier@^1.19.1:
version "1.19.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb"
pretty-quick@^1.11.1:
version "1.11.1"
resolved "https://registry.yarnpkg.com/pretty-quick/-/pretty-quick-1.11.1.tgz#462ffa2b93d24c05b7a0c3a001e08601a0c55ee4"