json-schema-to-typescript
Advanced tools
Comparing version 4.2.0 to 4.2.1
@@ -12,4 +12,4 @@ #!/usr/bin/env node | ||
var __generator = (this && this.__generator) || function (thisArg, body) { | ||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t; | ||
return { next: verb(0), "throw": verb(1), "return": verb(2) }; | ||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
function verb(n) { return function (v) { return step([n, v]); }; } | ||
@@ -54,5 +54,5 @@ function step(op) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var argIn, argOut, schema, _a, _b, _c, ts, e_1; | ||
return __generator(this, function (_d) { | ||
switch (_d.label) { | ||
var argIn, argOut, schema, _a, _b, ts, e_1; | ||
return __generator(this, function (_c) { | ||
switch (_c.label) { | ||
case 0: | ||
@@ -65,18 +65,18 @@ if (argv.help) { | ||
argOut = argv._[1] || argv.output; | ||
_d.label = 1; | ||
_c.label = 1; | ||
case 1: | ||
_d.trys.push([1, 5, , 6]); | ||
_c.trys.push([1, 5, , 6]); | ||
_b = (_a = JSON).parse; | ||
return [4 /*yield*/, readInput(argIn)]; | ||
case 2: | ||
schema = _b.apply(_a, [_d.sent()]); | ||
schema = _b.apply(_a, [_c.sent()]); | ||
return [4 /*yield*/, index_1.compile(schema, argIn)]; | ||
case 3: | ||
ts = _d.sent(); | ||
ts = _c.sent(); | ||
return [4 /*yield*/, writeOutput(ts, argOut)]; | ||
case 4: | ||
_d.sent(); | ||
_c.sent(); | ||
return [3 /*break*/, 6]; | ||
case 5: | ||
e_1 = _d.sent(); | ||
e_1 = _c.sent(); | ||
process.stderr.write(e_1.message); | ||
@@ -83,0 +83,0 @@ process.exit(1); |
@@ -29,4 +29,4 @@ "use strict"; | ||
var __generator = (this && this.__generator) || function (thisArg, body) { | ||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t; | ||
return { next: verb(0), "throw": verb(1), "return": verb(2) }; | ||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
function verb(n) { return function (v) { return step([n, v]); }; } | ||
@@ -87,5 +87,5 @@ function step(op) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var _options, errors, _a, _b, _c, _d, _e, _f; | ||
return __generator(this, function (_g) { | ||
switch (_g.label) { | ||
var _options, errors, _a, _b, _c; | ||
return __generator(this, function (_d) { | ||
switch (_d.label) { | ||
case 0: | ||
@@ -103,6 +103,6 @@ _options = __assign({}, exports.DEFAULT_OPTIONS, options); | ||
_a = generator_1.generate; | ||
_c = optimizer_1.optimize; | ||
_e = parser_1.parse; | ||
_b = optimizer_1.optimize; | ||
_c = parser_1.parse; | ||
return [4 /*yield*/, resolver_1.dereference(normalizer_1.normalize(schema, name), _options.cwd)]; | ||
case 1: return [2 /*return*/, _a.apply(void 0, [_c.apply(void 0, [_e.apply(void 0, [_g.sent()])]), | ||
case 1: return [2 /*return*/, _a.apply(void 0, [_b.apply(void 0, [_c.apply(void 0, [_d.sent()])]), | ||
_options])]; | ||
@@ -109,0 +109,0 @@ } |
@@ -11,4 +11,4 @@ "use strict"; | ||
var __generator = (this && this.__generator) || function (thisArg, body) { | ||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t; | ||
return { next: verb(0), "throw": verb(1), "return": verb(2) }; | ||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
function verb(n) { return function (v) { return step([n, v]); }; } | ||
@@ -15,0 +15,0 @@ function step(op) { |
@@ -11,4 +11,4 @@ "use strict"; | ||
var __generator = (this && this.__generator) || function (thisArg, body) { | ||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t; | ||
return { next: verb(0), "throw": verb(1), "return": verb(2) }; | ||
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
function verb(n) { return function (v) { return step([n, v]); }; } | ||
@@ -15,0 +15,0 @@ function step(op) { |
{ | ||
"name": "json-schema-to-typescript", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"description": "compile json schema to typescript typings", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
@@ -33,2 +33,3 @@ # json-schema-to-typescript [![Build Status][build]](https://circleci.com/gh/bcherny/json-schema-to-typescript) [![npm]](https://www.npmjs.com/package/json-schema-to-typescript) [![mit]](https://opensource.org/licenses/MIT) | ||
}, | ||
"additionalProperties": false, | ||
"required": ["firstName", "lastName"] | ||
@@ -35,0 +36,0 @@ } |
Sorry, the diff of this file is too big to display
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
2310399
135
65128
166
8