@zodic/shared 0.0.380 → 0.0.382

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.
@@ -942,7 +942,7 @@ export class ArchetypeService {
942
942
  throw new Error(`No content found after skipping delimiters for ${section}`);
943
943
  }
944
944
 
945
- const content: Record<string, Record<string, string>> = { 'PT-M': {}, 'PT-F': {}, 'EN': {} };
945
+ const content: Record<string, Record<string, string>> = { 'PT-M:': {}, 'PT-F:': {}, 'EN:': {} };
946
946
  let currentSectionHeader = '';
947
947
  let currentSection = '';
948
948
  let currentText: string[] = [];
@@ -989,6 +989,7 @@ export class ArchetypeService {
989
989
  this.log('debug', `Starting new section ${currentSection} for ${currentLang}`);
990
990
  } else if (line) {
991
991
  currentText.push(line);
992
+ this.log('debug', `Adding line to ${currentSection} for ${currentLang}`, { line });
992
993
  }
993
994
  }
994
995
 
@@ -999,6 +1000,9 @@ export class ArchetypeService {
999
1000
  this.log('debug', `Extracted final section ${currentSection} for ${currentLang}`, { key, text: content[currentLang][key] });
1000
1001
  }
1001
1002
 
1003
+ // Log the full content object for debugging
1004
+ this.log('debug', `Full parsed content before selection`, { content });
1005
+
1002
1006
  // Determine which content to return based on section and gender
1003
1007
  let targetLang = section;
1004
1008
  if (section === 'PT') {
@@ -1022,6 +1026,9 @@ export class ArchetypeService {
1022
1026
  lightWithin: targetContent['thelightwithin'] || targetContent['aluzinterior'] || '',
1023
1027
  };
1024
1028
 
1029
+ // Log the parsed content before validation
1030
+ this.log('debug', `Parsed content before validation for ${targetLang}`, { parsedContent });
1031
+
1025
1032
  if (Object.values(parsedContent).some((value) => !value)) {
1026
1033
  this.log('error', `Malformed content response for ${targetLang}`, { parsedContent, response });
1027
1034
  throw new Error(`Malformed content response for ${targetLang}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zodic/shared",
3
- "version": "0.0.380",
3
+ "version": "0.0.382",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "publishConfig": {