Skip to content

Commit

Permalink
src: remove AbortSignal import
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cjihrig committed Nov 25, 2024
1 parent 467300e commit 7699f60
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/log.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
1 change: 0 additions & 1 deletion src/watch.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down

0 comments on commit 7699f60

Please sign in to comment.