From a1ef2d1e4f3d15bfd48f6d7be6eb47d4440ddda6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Jerna=C5=9B?= Date: Mon, 24 Feb 2025 11:15:09 +0100 Subject: [PATCH] docs: Remove node-fetch requirement from doc examples MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Łukasz Jernaś --- docs/features/software-catalog/external-integrations.md | 5 ++--- docs/plugins/integrating-search-into-plugins.md | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/features/software-catalog/external-integrations.md b/docs/features/software-catalog/external-integrations.md index 6b57922166..343128bfbf 100644 --- a/docs/features/software-catalog/external-integrations.md +++ b/docs/features/software-catalog/external-integrations.md @@ -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, )) diff --git a/docs/plugins/integrating-search-into-plugins.md b/docs/plugins/integrating-search-into-plugins.md index e51b4cfefa..c8cb0810f7 100644 --- a/docs/plugins/integrating-search-into-plugins.md +++ b/docs/plugins/integrating-search-into-plugins.md @@ -46,7 +46,7 @@ We will use some libraries in the module, so let's add them to your plugin modul git checkout -b tutorials/new-faq-snippets-collator # Install the package containing the interface -yarn workspace @internal/backstage-plugin-search-backend-module-faq-snippets-collator add node-fetch @backstage/plugin-search-common @backstage/plugin-search-backend-node +yarn workspace @internal/backstage-plugin-search-backend-module-faq-snippets-collator add @backstage/plugin-search-common @backstage/plugin-search-backend-node ``` #### 3. Use Backstage App configuration