Skip to content

Commit 1c97d66

Browse files
committed
refactor: remove abort controller shim
1 parent bd0d22f commit 1c97d66

File tree

4 files changed

+2
-10
lines changed

4 files changed

+2
-10
lines changed

.github/workflows/unit-test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,5 @@ jobs:
5252
run: pnpm build
5353
- name: Test
5454
run: pnpm test run tests/request.test.ts
55+
env:
56+
NODE_OPTIONS: --experimental-abortcontroller

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
"eslint-define-config": "^1.3.0",
6565
"esno": "^0.14.1",
6666
"md5": "^2.3.0",
67-
"node-abort-controller": "^3.0.1",
6867
"serve": "^13.0.2",
6968
"sharp": "^0.30.3",
7069
"tsup": "^5.12.1",

pnpm-lock.yaml

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/request.test.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { beforeAll, describe, expect, it } from 'vitest'
22
import '../src/node-shim'
3-
import { AbortController } from 'node-abort-controller'
43
import {
54
getAccessToken,
65
request,
@@ -10,8 +9,6 @@ import {
109
import { defaultEnvironment } from '../src/constants'
1110
import type { ApiConfig } from '../src'
1211

13-
if (!globalThis.AbortController) globalThis.AbortController = AbortController
14-
1512
describe('request', () => {
1613
const config: ApiConfig = {
1714
endpointId: 'keji',

0 commit comments

Comments
 (0)