fix(tests & jsonl): Improve test structure and refine JSONL parsing for incomplete data

This commit is contained in:
2025-04-08 15:31:29 +00:00
parent c6964f0310
commit 4030bef7a8
5 changed files with 52 additions and 26 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@fin.cx/opendata',
version: '1.4.5',
version: '1.4.6',
description: 'A TypeScript library for accessing, managing, and updating open business data, focused on German companies and integrating with MongoDB.'
}

View File

@ -96,8 +96,9 @@ export class JsonlDataProcessor<T> {
},
finalFunction: async (streamToolsArg) => {
console.log(`finished processing ${totalRecordsCounter} records.`);
if (!nextRest) return;
JSON.parse(nextRest);
if (nextRest) {
JSON.parse(nextRest);
};
done.resolve();
},
})