@imolko/ultra-ddd 2.0.2-beta → 2.0.3

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.
@@ -24,8 +24,8 @@ export function main() {
24
24
  if (propertyType && propertyType.type !== 'string') {
25
25
  return groupedMap;
26
26
  }
27
- const typeConst = propertyType.const;
28
- if (typeConst && typeof typeConst === 'string') {
27
+ if ("const" in propertyType && typeof propertyType.const === 'string') {
28
+ const typeConst = propertyType.const;
29
29
  groupedMap[typeConst] = groupedMap[typeConst] ? [...groupedMap[typeConst], item] : [item];
30
30
  }
31
31
  }
@@ -26,8 +26,8 @@ export function main() {
26
26
  if (propertyType && propertyType.type !== 'string') {
27
27
  return groupedMap;
28
28
  }
29
- const typeConst = propertyType.const;
30
- if (typeConst && typeof typeConst === 'string') {
29
+ if ("const" in propertyType && typeof propertyType.const === 'string') {
30
+ const typeConst = propertyType.const;
31
31
  groupedMap[typeConst] = groupedMap[typeConst] ? [...groupedMap[typeConst], item] : [item];
32
32
  }
33
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imolko/ultra-ddd",
3
- "version": "2.0.2-beta",
3
+ "version": "2.0.3",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "results",