Skip to content

Commit

Permalink
perf: remove node abort controller in favor of built-in node-fetch po…
Browse files Browse the repository at this point in the history
…lyfill (#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
  • Loading branch information
antongolub committed Jun 11, 2024
1 parent d8311ce commit 4c52ec5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 17 deletions.
21 changes: 7 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@
"globby": "^14.0.1",
"madge": "^7.0.0",
"minimist": "^1.2.8",
"node-abort-controller": "^3.1.1",
"node-fetch-native": "^1.6.4",
"prettier": "^3.3.1",
"ts-node": "^10.9.2",
Expand Down
3 changes: 1 addition & 2 deletions src/vendor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ import {
} from 'globby'
import * as yaml from 'yaml'
import * as _fs from 'fs-extra'
import type { fetch } from 'node-fetch-native'
import { AbortController } from 'node-abort-controller'
import { type fetch, AbortController } from 'node-fetch-native'

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

Expand Down

0 comments on commit 4c52ec5

Please sign in to comment.