PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@expo/cli/build/src/api/rest

Просмотр файла: wrapFetchWithBaseUrl.js

"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
exports.wrapFetchWithBaseUrl = wrapFetchWithBaseUrl;
var _url = require("url");
function wrapFetchWithBaseUrl(fetch, baseUrl) {
    return (url, init)=>{
        if (typeof url !== "string") {
            throw new TypeError("Custom fetch function only accepts a string URL as the first parameter");
        }
        const parsed = new _url.URL(url, baseUrl);
        if (init == null ? void 0 : init.searchParams) {
            parsed.search = init.searchParams.toString();
        }
        return fetch(parsed.toString(), init);
    };
}

//# sourceMappingURL=wrapFetchWithBaseUrl.js.map

Выполнить команду


Для локальной разработки. Не используйте в интернете!