Skip to content

Commit

Permalink
Refactored to support older libraries without IteratorObject support.
Browse files Browse the repository at this point in the history
  • Loading branch information
KDean-Dolphin committed Feb 4, 2025
1 parent d04bb37 commit 6c21316
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,10 @@ export async function exec(source: fs.ReadStream | (NodeJS.ReadStream & { fd: 0
process.stdout.write(JSON.stringify(outputData));
}).then(() => {
// Log error for each unreferenced term.
definitionsMap.values().filter(definition => !definition.referenced).forEach((definition) => {
console.error(`Unreferenced term "${definition.term}"`);
definitionsMap.forEach((definition) => {
if (!definition.referenced) {
console.error(`Unreferenced term "${definition.term}"`);
}
});
}).catch((e: unknown) => {
console.error(e);
Expand Down

0 comments on commit 6c21316

Please sign in to comment.