law-common 10.45.3-beta.3 → 10.45.3-beta.4

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.
@@ -101,14 +101,11 @@ function parseEntities(json, baseEntity, entityMap) {
101
101
  if (!(baseEntity in exports.entityEnumToEntityModel)) {
102
102
  throw new Error(`Unknown entity: ${baseEntity}`);
103
103
  }
104
- console.log("entityMap 1", entityMap);
105
- console.log("ssssssssssssssssssssssssss");
106
- entityMap[baseEntity] = (entityMap[baseEntity] && entityMap[baseEntity].length > 0
104
+ entityMap[baseEntity] = ((entityMap[baseEntity] && entityMap[baseEntity].length > 0
107
105
  ? [...entityMap[baseEntity], ...json["baseEntities"]]
108
- : json["baseEntities"]).map(
106
+ : json["baseEntities"]) || []).map(
109
107
  // @ts-ignore
110
108
  (e) => exports.entityEnumToEntityModel[baseEntity](e));
111
- console.log("entityMap 2", entityMap);
112
109
  if (json["relatedEntities"]) {
113
110
  const relatedEntities = json["relatedEntities"];
114
111
  for (const entityName in relatedEntities) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "law-common",
3
- "version": "10.45.3-beta.3",
3
+ "version": "10.45.3-beta.4",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [