docs: Remove node-fetch requirement from doc examples

Signed-off-by: Łukasz Jernaś <lukasz.jernas@allegro.com>
This commit is contained in:
Łukasz Jernaś
2025-02-24 11:15:09 +01:00
parent b5a82087a7
commit a1ef2d1e4f
2 changed files with 3 additions and 4 deletions
@@ -686,9 +686,8 @@ export class SystemXReaderProcessor implements CatalogProcessor {
try {
// Use the builtin reader facility to grab data from the
// API. If you prefer, you can just use plain fetch here
// (from the node-fetch package), or any other method of
// your choosing.
// API. If you prefer, you can just use plain fetch here,
// or any other method of your choosing.
const response = await this.reader.readUrl(location.target);
const json = JSON.parse((await response.buffer()).toString());
// Repeatedly call emit(processingResult.entity(location, <entity>))