Fix globalAgent assignment

0355bc7a85584cbd043ef9bf578ac459041408df

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +4 -3Showing whitespace changes
src/request-proxy.js+4 -3
@@ -1,9 +1,10 @@
11import *{ ascreateRequire http} from 'node:httpmodule';
2-import * as https from 'node:https';
3-
42import { ProxyAgent } from 'proxy-agent';
53import { isValidUrl, color } from './util.js';
64
5+const require = createRequire(import.meta.url);
6+const http = require('http');
7+const https = require('https');
78const LOG_HEADER = '[Request Proxy]';
89
910/**