Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[appcenter-file-upload-client node] Remove deprecated VM2 package #2387

Merged
merged 5 commits into from
Jul 25, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update AC-FUS-UTIL
  • Loading branch information
AnatolyPristensky committed Jul 24, 2023
commit d9e59bd569c81e33136c6f4df87dd2302901858a
4 changes: 2 additions & 2 deletions appcenter-file-upload-client-node/src/ac-fus-util.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fetch from "node-fetch";
import * as ProxyAgent from "proxy-agent";
import { ProxyAgent } from 'proxy-agent';

export function resolveProxySettings(options: any = {}) {
const instanceOptions = {
Expand All @@ -14,7 +14,7 @@ export function resolveProxySettings(options: any = {}) {
console.warn("Proxy address in environment variable does not start with either 'http://' or 'https://'. CLI might not work correctly.");
}
if (!options.agent && proxyServer) {
instanceOptions.agent = ProxyAgent(proxyServer);
instanceOptions.agent = new ProxyAgent({ getProxyForUrl: () => proxyServer });
}
return instanceOptions;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { resolveProxySettings } from "../../src/ac-fus-util";
import * as assert from "assert";
import * as ProxyAgent from "proxy-agent";
import { ProxyAgent } from 'proxy-agent';
import { after } from "mocha";

describe('fetchWithOptions', () => {
Expand Down
Loading