quicktype-core 23.0.54 → 23.0.56

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.
@@ -561,6 +561,7 @@ function addTypesInSchema(resolver, typeBuilder, references, attributeProducers)
561
561
  const isConst = schema.const !== undefined;
562
562
  const typeSet = (0, collection_utils_1.definedMap)(schema.type, t => checkTypeList(t, loc));
563
563
  function isTypeIncluded(name) {
564
+ var _a;
564
565
  if (typeSet !== undefined && !typeSet.has(name)) {
565
566
  return false;
566
567
  }
@@ -580,7 +581,7 @@ function addTypesInSchema(resolver, typeBuilder, references, attributeProducers)
580
581
  return enumArray.find(predicate) !== undefined;
581
582
  }
582
583
  if (isConst) {
583
- return name === "string";
584
+ return name === ((_a = schema.type) !== null && _a !== void 0 ? _a : typeof schema.const);
584
585
  }
585
586
  return true;
586
587
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quicktype-core",
3
- "version": "23.0.54",
3
+ "version": "23.0.56",
4
4
  "description": "The quicktype engine as a library",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/index.js",
@@ -33,7 +33,7 @@
33
33
  "@types/js-base64": "^3.3.1",
34
34
  "@types/node": "18.14.0",
35
35
  "@types/pako": "^1.0.0",
36
- "@types/pluralize": "0.0.29",
36
+ "@types/pluralize": "0.0.30",
37
37
  "@types/readable-stream": "2.3.15",
38
38
  "@types/unicode-properties": "^1.3.0",
39
39
  "@types/yaml": "^1.9.7",