bugsnag-source-maps-fork
Version:
CLI and JS library for uploading source maps to Bugsnag
14 lines • 478 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DEFAULT_UPLOAD_ORIGIN = void 0;
exports.buildEndpointUrl = buildEndpointUrl;
exports.DEFAULT_UPLOAD_ORIGIN = 'https://upload.bugsnag.com';
function buildEndpointUrl(origin, path) {
const url = new URL(origin);
// if no path was given use the default
if (url.pathname === '/') {
url.pathname = path;
}
return url.toString();
}
//# sourceMappingURL=EndpointUrl.js.map