chore: remove node-fetch from the project

This commit is contained in:
blam
2020-10-09 14:14:53 +02:00
parent a45a5d9418
commit f36e1e9fe7
15 changed files with 12 additions and 21 deletions
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import fetch, { RequestInit } from 'node-fetch';
import fetch from 'cross-fetch';
import parseGitUrl from 'git-url-parse';
import { ConfigReader, Config } from '@backstage/config';
import { loadBackendConfig } from '@backstage/backend-common';
@@ -1,4 +1,3 @@
import fetch from 'node-fetch';
/*
* Copyright 2020 Spotify AB
*
@@ -15,6 +14,8 @@ import fetch from 'node-fetch';
* limitations under the License.
*/
import fetch from 'cross-fetch';
export class TechDocsMetadata {
private async getMetadataFile(docsUrl: String) {
const metadataURL = `${docsUrl}/techdocs_metadata.json`;
@@ -17,7 +17,7 @@ import { Logger } from 'winston';
import Router from 'express-promise-router';
import express from 'express';
import Knex from 'knex';
import fetch from 'node-fetch';
import fetch from 'cross-fetch';
import { Config } from '@backstage/config';
import Docker from 'dockerode';
import {