From 7699f60fbd18ea8f118665dd9e73ba0e2ddb857a Mon Sep 17 00:00:00 2001 From: cjihrig Date: Sun, 24 Nov 2024 20:59:35 -0500 Subject: [PATCH] src: remove AbortSignal import AbortSignal is available in all supported versions of Node. These imports were causing problems when attempting to upgrade TypeScript settings because apparently 'node-fetch/externals' exists in the types package, but not in the actual node-fetch module. --- src/log.ts | 1 - src/watch.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/src/log.ts b/src/log.ts index 84c99a6ec56..21038549118 100644 --- a/src/log.ts +++ b/src/log.ts @@ -1,5 +1,4 @@ import fetch from 'node-fetch'; -import { AbortSignal } from 'node-fetch/externals'; import { Writable } from 'node:stream'; import { ApiException } from './api'; import { KubeConfig } from './config'; diff --git a/src/watch.ts b/src/watch.ts index 86f24ab6ccc..32be518d572 100644 --- a/src/watch.ts +++ b/src/watch.ts @@ -1,6 +1,5 @@ import { createInterface } from 'node:readline'; import fetch from 'node-fetch'; -import { AbortSignal } from 'node-fetch/externals'; import { KubeConfig } from './config'; export class Watch {