diff --git a/.eslintrc.js b/.eslintrc.js index f20ea4d354..688073a937 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -81,11 +81,6 @@ module.exports = { name: 'Buffer', message: 'Global buffer is not supported on all platforms. Import buffer from `src/utils/buffer`', }, - { - name: 'AbortController', - message: - "Global AbortController is not supported on all platforms. Use `import { AbortController } from 'abort-controller'`", - }, ], }, }, diff --git a/packages/core/src/transport/HttpOutboundTransport.ts b/packages/core/src/transport/HttpOutboundTransport.ts index 72d34d11bb..0d68d21413 100644 --- a/packages/core/src/transport/HttpOutboundTransport.ts +++ b/packages/core/src/transport/HttpOutboundTransport.ts @@ -4,7 +4,6 @@ import type { AgentMessageReceivedEvent } from '../agent/Events' import type { Logger } from '../logger' import type { OutboundPackage } from '../types' -import { AbortController } from 'abort-controller' import { Subject } from 'rxjs' import { AgentEventTypes } from '../agent/Events' diff --git a/packages/core/src/utils/fetch.ts b/packages/core/src/utils/fetch.ts index 1c2f842de3..29f4acdece 100644 --- a/packages/core/src/utils/fetch.ts +++ b/packages/core/src/utils/fetch.ts @@ -1,7 +1,5 @@ import type { AgentDependencies } from '../agent/AgentDependencies' -import { AbortController } from 'abort-controller' - export async function fetchWithTimeout( fetch: AgentDependencies['fetch'], url: string, diff --git a/packages/core/src/utils/parseInvitation.ts b/packages/core/src/utils/parseInvitation.ts index cbe8574983..5ba6dcfb81 100644 --- a/packages/core/src/utils/parseInvitation.ts +++ b/packages/core/src/utils/parseInvitation.ts @@ -1,6 +1,5 @@ import type { AgentDependencies } from '../agent/AgentDependencies' -import { AbortController } from 'abort-controller' import { parseUrl } from 'query-string' import { AgentMessage } from '../agent/AgentMessage'