From 06123603f8ac5cdc438efd0dba224d13566ca37f Mon Sep 17 00:00:00 2001 From: Gustav Bylund Date: Thu, 22 May 2025 15:42:30 +0200 Subject: [PATCH] fix: readd AbortError export This was removed in https://github.com/kubernetes-client/javascript/pull/2062 --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 10fb300ede..fb6b1bba01 100644 --- a/src/index.ts +++ b/src/index.ts @@ -19,5 +19,5 @@ export * from './middleware.js'; export * from './patch.js'; export { type ConfigOptions, type User, type Cluster, type Context } from './config_types.js'; -// Export FetchError so that instanceof checks in user code will definitely use the same instance -export { FetchError } from 'node-fetch'; +// Export AbortError and FetchError so that instanceof checks in user code will definitely use the same instances +export { AbortError, FetchError } from 'node-fetch';