"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const node_fetch_1 = tslib_1.__importDefault(require("node-fetch"));
const proxy_agent_1 = tslib_1.__importDefault(require("proxy-agent"));
function fetchWithProxy(url, options = {}) {
    const agent = new proxy_agent_1.default();
    return (0, node_fetch_1.default)(url, Object.assign({ agent }, options));
}
exports.default = fetchWithProxy;
