Skip to content

Commit a832a1b

Browse files
authored
chore(deps): remove proxy-agent and form-data in favor of undici (#672)
1 parent 64f6a1c commit a832a1b

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

lib/ci/run_ci.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import FormData from 'form-data';
1+
import { FormData } from 'undici';
22

33
import {
44
CI_DOMAIN,

lib/proxy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { globalAgent } from 'node:https';
22
import { spawnSync } from 'child_process';
33

4-
import ProxyAgent from 'proxy-agent';
4+
import { ProxyAgent } from 'undici';
55

66
import { getMergedConfig } from './config.js';
77

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,12 @@
4343
"enquirer": "^2.3.6",
4444
"execa": "^7.0.0",
4545
"figures": "^5.0.0",
46-
"form-data": "^4.0.0",
4746
"ghauth": "^5.0.1",
4847
"inquirer": "^9.1.4",
4948
"listr2": "^5.0.7",
5049
"lodash": "^4.17.21",
5150
"log-symbols": "^5.1.0",
5251
"ora": "^6.1.2",
53-
"proxy-agent": "^5.0.0",
5452
"replace-in-file": "^6.3.5",
5553
"undici": "^5.20.0",
5654
"which": "^3.0.0",

test/unit/ci_start.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import assert from 'assert';
22

33
import sinon from 'sinon';
4-
import FormData from 'form-data';
4+
import { FormData } from 'undici';
55

66
import {
77
RunPRJob,

0 commit comments

Comments
 (0)