Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Fix vm2 vulnerability: remove superagent-proxy dependency #830

Merged
merged 5 commits into from
Aug 16, 2023

Conversation

DmitriyKirakosyan
Copy link
Contributor

@DmitriyKirakosyan DmitriyKirakosyan commented Aug 3, 2023

This PR remove the superagent-proxy package, as it's not maintained anymore and depends on the vulnerable vm2 package.
agent-proxy is used directly with superagent's Request object now.

AB#101666

@DmitriyKirakosyan DmitriyKirakosyan requested a review from a team as a code owner August 3, 2023 10:14
@@ -2,8 +2,8 @@ import superagent = require("superagent");
import { CodePushUnauthorizedError } from "../script/code-push-error"
import { CodePushError, Headers } from "../script/types";

var superproxy = require("superagent-proxy");
superproxy(superagent);
import superagent_setup from "./superagent-proxy.js";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't we directly use proxy-agent here?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants