fix(tests & jsonl): Improve test structure and refine JSONL parsing for incomplete data
This commit is contained in:
@ -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.'
|
||||
}
|
||||
|
@ -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();
|
||||
},
|
||||
})
|
||||
|
Reference in New Issue
Block a user