quicktype 23.2.3 → 23.2.5
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 +21 -22
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -291,7 +291,7 @@ function makeOptionDefinitions(targetLanguages) {
|
|
|
291
291
|
{
|
|
292
292
|
name: "out",
|
|
293
293
|
alias: "o",
|
|
294
|
-
|
|
294
|
+
optionType: "string",
|
|
295
295
|
typeLabel: "FILE",
|
|
296
296
|
description: "The output file. Determines --lang and --top-level.",
|
|
297
297
|
kind: "cli",
|
|
@@ -299,7 +299,7 @@ function makeOptionDefinitions(targetLanguages) {
|
|
|
299
299
|
{
|
|
300
300
|
name: "top-level",
|
|
301
301
|
alias: "t",
|
|
302
|
-
|
|
302
|
+
optionType: "string",
|
|
303
303
|
typeLabel: "NAME",
|
|
304
304
|
description: "The name for the top level type.",
|
|
305
305
|
kind: "cli",
|
|
@@ -311,7 +311,7 @@ function makeOptionDefinitions(targetLanguages) {
|
|
|
311
311
|
{
|
|
312
312
|
name: "lang",
|
|
313
313
|
alias: "l",
|
|
314
|
-
|
|
314
|
+
optionType: "string",
|
|
315
315
|
typeLabel: "LANG",
|
|
316
316
|
description: "The target language.",
|
|
317
317
|
kind: "cli",
|
|
@@ -321,7 +321,7 @@ function makeOptionDefinitions(targetLanguages) {
|
|
|
321
321
|
{
|
|
322
322
|
name: "src-lang",
|
|
323
323
|
alias: "s",
|
|
324
|
-
|
|
324
|
+
optionType: "string",
|
|
325
325
|
defaultValue: undefined,
|
|
326
326
|
typeLabel: "SRC_LANG",
|
|
327
327
|
description: "The source language (default is json).",
|
|
@@ -329,16 +329,15 @@ function makeOptionDefinitions(targetLanguages) {
|
|
|
329
329
|
},
|
|
330
330
|
{
|
|
331
331
|
name: "src",
|
|
332
|
-
|
|
332
|
+
optionType: "string",
|
|
333
333
|
multiple: true,
|
|
334
|
-
defaultOption: true,
|
|
335
334
|
typeLabel: "FILE|URL|DIRECTORY",
|
|
336
335
|
description: "The file, url, or data directory to type.",
|
|
337
336
|
kind: "cli",
|
|
338
337
|
},
|
|
339
338
|
{
|
|
340
339
|
name: "src-urls",
|
|
341
|
-
|
|
340
|
+
optionType: "string",
|
|
342
341
|
typeLabel: "FILE",
|
|
343
342
|
description: "Tracery grammar describing URLs to crawl.",
|
|
344
343
|
kind: "cli",
|
|
@@ -347,7 +346,7 @@ function makeOptionDefinitions(targetLanguages) {
|
|
|
347
346
|
const inference = Array.from((0, collection_utils_1.mapMap)((0, collection_utils_1.mapFromObject)(quicktype_core_1.inferenceFlags), (flag, name) => {
|
|
348
347
|
return {
|
|
349
348
|
name: dashedFromCamelCase(negatedInferenceFlagName(name)),
|
|
350
|
-
|
|
349
|
+
optionType: "boolean",
|
|
351
350
|
description: flag.negationDescription + ".",
|
|
352
351
|
kind: "cli",
|
|
353
352
|
};
|
|
@@ -355,28 +354,28 @@ function makeOptionDefinitions(targetLanguages) {
|
|
|
355
354
|
const afterInference = [
|
|
356
355
|
{
|
|
357
356
|
name: "graphql-schema",
|
|
358
|
-
|
|
357
|
+
optionType: "string",
|
|
359
358
|
typeLabel: "FILE",
|
|
360
359
|
description: "GraphQL introspection file.",
|
|
361
360
|
kind: "cli",
|
|
362
361
|
},
|
|
363
362
|
{
|
|
364
363
|
name: "graphql-introspect",
|
|
365
|
-
|
|
364
|
+
optionType: "string",
|
|
366
365
|
typeLabel: "URL",
|
|
367
366
|
description: "Introspect GraphQL schema from a server.",
|
|
368
367
|
kind: "cli",
|
|
369
368
|
},
|
|
370
369
|
{
|
|
371
370
|
name: "http-method",
|
|
372
|
-
|
|
371
|
+
optionType: "string",
|
|
373
372
|
typeLabel: "METHOD",
|
|
374
373
|
description: "HTTP method to use for the GraphQL introspection query.",
|
|
375
374
|
kind: "cli",
|
|
376
375
|
},
|
|
377
376
|
{
|
|
378
377
|
name: "http-header",
|
|
379
|
-
|
|
378
|
+
optionType: "string",
|
|
380
379
|
multiple: true,
|
|
381
380
|
typeLabel: "HEADER",
|
|
382
381
|
description: "Header(s) to attach to all HTTP requests, including the GraphQL introspection query.",
|
|
@@ -385,7 +384,7 @@ function makeOptionDefinitions(targetLanguages) {
|
|
|
385
384
|
{
|
|
386
385
|
name: "additional-schema",
|
|
387
386
|
alias: "S",
|
|
388
|
-
|
|
387
|
+
optionType: "string",
|
|
389
388
|
multiple: true,
|
|
390
389
|
typeLabel: "FILE",
|
|
391
390
|
description: "Register the $id's of additional JSON Schema files.",
|
|
@@ -393,45 +392,45 @@ function makeOptionDefinitions(targetLanguages) {
|
|
|
393
392
|
},
|
|
394
393
|
{
|
|
395
394
|
name: "no-render",
|
|
396
|
-
|
|
395
|
+
optionType: "boolean",
|
|
397
396
|
description: "Don't render output.",
|
|
398
397
|
kind: "cli",
|
|
399
398
|
},
|
|
400
399
|
{
|
|
401
400
|
name: "alphabetize-properties",
|
|
402
|
-
|
|
401
|
+
optionType: "boolean",
|
|
403
402
|
description: "Alphabetize order of class properties.",
|
|
404
403
|
kind: "cli",
|
|
405
404
|
},
|
|
406
405
|
{
|
|
407
406
|
name: "all-properties-optional",
|
|
408
|
-
|
|
407
|
+
optionType: "boolean",
|
|
409
408
|
description: "Make all class properties optional.",
|
|
410
409
|
kind: "cli",
|
|
411
410
|
},
|
|
412
411
|
{
|
|
413
412
|
name: "build-markov-chain",
|
|
414
|
-
|
|
413
|
+
optionType: "string",
|
|
415
414
|
typeLabel: "FILE",
|
|
416
415
|
description: "Markov chain corpus filename.",
|
|
417
416
|
kind: "cli",
|
|
418
417
|
},
|
|
419
418
|
{
|
|
420
419
|
name: "quiet",
|
|
421
|
-
|
|
420
|
+
optionType: "boolean",
|
|
422
421
|
description: "Don't show issues in the generated code.",
|
|
423
422
|
kind: "cli",
|
|
424
423
|
},
|
|
425
424
|
{
|
|
426
425
|
name: "debug",
|
|
427
|
-
|
|
426
|
+
optionType: "string",
|
|
428
427
|
typeLabel: "OPTIONS or all",
|
|
429
428
|
description: "Comma separated debug options: print-graph, print-reconstitution, print-gather-names, print-transformations, print-schema-resolving, print-times, provenance",
|
|
430
429
|
kind: "cli",
|
|
431
430
|
},
|
|
432
431
|
{
|
|
433
432
|
name: "telemetry",
|
|
434
|
-
|
|
433
|
+
optionType: "string",
|
|
435
434
|
typeLabel: "enable|disable",
|
|
436
435
|
description: "Enable anonymous telemetry to help improve quicktype",
|
|
437
436
|
kind: "cli",
|
|
@@ -439,14 +438,14 @@ function makeOptionDefinitions(targetLanguages) {
|
|
|
439
438
|
{
|
|
440
439
|
name: "help",
|
|
441
440
|
alias: "h",
|
|
442
|
-
|
|
441
|
+
optionType: "boolean",
|
|
443
442
|
description: "Get some help.",
|
|
444
443
|
kind: "cli",
|
|
445
444
|
},
|
|
446
445
|
{
|
|
447
446
|
name: "version",
|
|
448
447
|
alias: "v",
|
|
449
|
-
|
|
448
|
+
optionType: "boolean",
|
|
450
449
|
description: "Display the version of quicktype",
|
|
451
450
|
kind: "cli",
|
|
452
451
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "quicktype",
|
|
3
|
-
"version": "23.2.
|
|
3
|
+
"version": "23.2.5",
|
|
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.5",
|
|
38
|
+
"quicktype-graphql-input": "23.2.5",
|
|
39
|
+
"quicktype-typescript-input": "23.2.5",
|
|
40
40
|
"readable-stream": "^4.5.2",
|
|
41
41
|
"stream-json": "1.8.0",
|
|
42
42
|
"string-to-stream": "^3.0.1",
|