Skip to content

Commit 4c52ec5

Browse files
authored
perf: remove node abort controller in favor of built-in node-fetch polyfill (google#842)
* perf: replace node-abort-controller with node-fetch polyfill * fix: apply npm audit fix to fix braces <3.0.3 GHSA-grv7-fg5c-xmjg
1 parent d8311ce commit 4c52ec5

File tree

3 files changed

+8
-17
lines changed

3 files changed

+8
-17
lines changed

package-lock.json

+7-14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@
112112
"globby": "^14.0.1",
113113
"madge": "^7.0.0",
114114
"minimist": "^1.2.8",
115-
"node-abort-controller": "^3.1.1",
116115
"node-fetch-native": "^1.6.4",
117116
"prettier": "^3.3.1",
118117
"ts-node": "^10.9.2",

src/vendor.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ import {
2727
} from 'globby'
2828
import * as yaml from 'yaml'
2929
import * as _fs from 'fs-extra'
30-
import type { fetch } from 'node-fetch-native'
31-
import { AbortController } from 'node-abort-controller'
30+
import { type fetch, AbortController } from 'node-fetch-native'
3231

3332
export { exec, buildCmd } from 'zurk/spawn'
3433

0 commit comments

Comments
 (0)