quicktype 23.2.5 → 23.3.0

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -1
  2. package/package.json +19 -6
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, { argv, partial });
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,10 +1,10 @@
1
1
  {
2
2
  "name": "quicktype",
3
- "version": "23.2.5",
3
+ "version": "23.3.0",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
- "repository": "https://github.com/quicktype/quicktype",
7
+ "repository": "https://github.com/glideapps/quicktype",
8
8
  "engines": {
9
9
  "node": ">=18.12.0"
10
10
  },
@@ -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.5",
38
- "quicktype-graphql-input": "23.2.5",
39
- "quicktype-typescript-input": "23.2.5",
37
+ "quicktype-core": "23.3.0",
38
+ "quicktype-graphql-input": "23.3.0",
39
+ "quicktype-typescript-input": "23.3.0",
40
40
  "readable-stream": "^4.5.2",
41
41
  "stream-json": "1.8.0",
42
42
  "string-to-stream": "^3.0.1",
@@ -63,8 +63,21 @@
63
63
  "promise-timeout": "^1.3.0",
64
64
  "semver": "^7.5.4",
65
65
  "shelljs": "^0.8.5",
66
+ "tree-sitter-c": "^0.24.1",
67
+ "tree-sitter-c-sharp": "^0.23.5",
68
+ "tree-sitter-cpp": "^0.23.4",
69
+ "tree-sitter-go": "^0.25.0",
70
+ "tree-sitter-haskell": "^0.23.1",
71
+ "tree-sitter-java": "^0.23.5",
72
+ "tree-sitter-php": "^0.24.2",
73
+ "tree-sitter-python": "^0.25.0",
74
+ "tree-sitter-ruby": "^0.23.1",
75
+ "tree-sitter-rust": "^0.24.0",
76
+ "tree-sitter-scala": "^0.24.0",
77
+ "tree-sitter-typescript": "^0.23.2",
66
78
  "ts-node": "^10.9.2",
67
- "watch": "^1.0.2"
79
+ "watch": "^1.0.2",
80
+ "web-tree-sitter": "^0.26.9"
68
81
  },
69
82
  "overrides": {
70
83
  "cross-fetch": {