@stripe/ui-extension-sdk
Version:
The suite of functionality available to UI extensions in Stripe apps
10 lines (9 loc) • 392 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.fetchViaHost = void 0;
const _endpoint_1 = require("../_endpoint");
const fetchViaHost = async (encodedUrl, options = {}) => {
const url = new URL(encodedUrl);
return (0, _endpoint_1.getHostEndpoint)().call.stripeApiFetch(url.pathname + url.search, options);
};
exports.fetchViaHost = fetchViaHost;