mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-24 06:14:01 +08:00
24 lines
620 B
JavaScript
24 lines
620 B
JavaScript
// The public shape Vercel's CLI installs into its fetch wrapper when proxy
|
|
// environment variables are present. The methods deliberately throw: scriptc's
|
|
// native transport must recognize this adapter without calling through it.
|
|
export class EnvProxyDispatcher {
|
|
constructor() {
|
|
this.noProxyValue = "";
|
|
this.noProxyEntries = [];
|
|
this.directAgent = {};
|
|
this.httpAgent = {};
|
|
this.httpsAgent = {};
|
|
}
|
|
|
|
dispatch() {
|
|
throw new Error("the native transport must not invoke the dispatcher");
|
|
}
|
|
|
|
close() {}
|
|
destroy() {}
|
|
agents() {}
|
|
getAgent() {}
|
|
shouldProxy() {}
|
|
parseNoProxy() {}
|
|
}
|