quicktype 23.2.5 → 23.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -334,6 +334,7 @@ function makeOptionDefinitions(targetLanguages) {
|
|
|
334
334
|
typeLabel: "FILE|URL|DIRECTORY",
|
|
335
335
|
description: "The file, url, or data directory to type.",
|
|
336
336
|
kind: "cli",
|
|
337
|
+
defaultOption: true,
|
|
337
338
|
},
|
|
338
339
|
{
|
|
339
340
|
name: "src-urls",
|
|
@@ -546,7 +547,10 @@ function parseCLIOptions(argv, targetLanguage) {
|
|
|
546
547
|
function parseOptions(definitions, argv, partial) {
|
|
547
548
|
let opts;
|
|
548
549
|
try {
|
|
549
|
-
opts = (0, command_line_args_1.default)(definitions
|
|
550
|
+
opts = (0, command_line_args_1.default)(definitions.map((def) => ({
|
|
551
|
+
...def,
|
|
552
|
+
type: def.optionType === "boolean" ? Boolean : String,
|
|
553
|
+
})), { argv, partial });
|
|
550
554
|
}
|
|
551
555
|
catch (e) {
|
|
552
556
|
(0, quicktype_core_1.assert)(!partial, "Partial option parsing should not have failed");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "quicktype",
|
|
3
|
-
"version": "23.2.
|
|
3
|
+
"version": "23.2.6",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"graphql": "^0.11.7",
|
|
35
35
|
"lodash": "^4.17.21",
|
|
36
36
|
"moment": "^2.30.1",
|
|
37
|
-
"quicktype-core": "23.2.
|
|
38
|
-
"quicktype-graphql-input": "23.2.
|
|
39
|
-
"quicktype-typescript-input": "23.2.
|
|
37
|
+
"quicktype-core": "23.2.6",
|
|
38
|
+
"quicktype-graphql-input": "23.2.6",
|
|
39
|
+
"quicktype-typescript-input": "23.2.6",
|
|
40
40
|
"readable-stream": "^4.5.2",
|
|
41
41
|
"stream-json": "1.8.0",
|
|
42
42
|
"string-to-stream": "^3.0.1",
|