law-common 10.30.1 → 10.30.2

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.
@@ -15,7 +15,6 @@ class BaseEntityModel {
15
15
  const thisMappingKey = relationConfig.mapKeyConfig.key;
16
16
  const relatedMappingKey = relationConfig.mapKeyConfig.relationKey;
17
17
  const thisKey = relationConfig.key;
18
- console.log('Populating relation for', relationConfig.name, 'on', this.entityName, relationConfig);
19
18
  // debugger;
20
19
  if (relationConfig.relation === RelationType.ONE) {
21
20
  const relatedEntitiesIndex = entityIndexMap[relationConfig.name] || {};
@@ -24,7 +23,6 @@ class BaseEntityModel {
24
23
  let foundRelatedEntities = [];
25
24
  if (thisMappingKey.includes(".")) {
26
25
  const [parentKey, childKey] = thisMappingKey.split(".");
27
- console.log(`[populateRelationsByIndex] Checking nested relation "${relationConfig.name}" on entity "${this.entityName}" → parentKey="${parentKey}", childKey="${childKey}"`);
28
26
  if (!this[parentKey]) {
29
27
  console.warn(`[populateRelationsByIndex] Missing parent key "${parentKey}" on entity "${this.entityName}". Current entity:`, this);
30
28
  continue;
@@ -45,7 +43,6 @@ class BaseEntityModel {
45
43
  foundRelatedEntities = [relatedEntity];
46
44
  }
47
45
  else if (relatedMappingKey !== "id") {
48
- console.log(`[populateRelationsByIndex] Searching through related entities for relation "${relationConfig.name}" on entity "${this.entityName}"`);
49
46
  foundRelatedEntities = Object.values(relatedEntitiesIndex).filter((entity) => entity[relatedMappingKey] === this[thisMappingKey]);
50
47
  }
51
48
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "law-common",
3
- "version": "10.30.1",
3
+ "version": "10.30.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [