UNPKG

@sentry/wizard

Version:

Sentry wizard helping you to configure your project

19 lines 680 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getIssueStreamUrl = void 0; var url_1 = require("url"); /** * Returns the url to the Sentry project stream. * * Example: https://org-slug.sentry.io/issues/?project=1234567 */ function getIssueStreamUrl(_a) { var url = _a.url, orgSlug = _a.orgSlug, projectId = _a.projectId; var urlObject = new url_1.URL(url); urlObject.host = "".concat(orgSlug, ".").concat(urlObject.host); urlObject.pathname = '/issues/'; urlObject.searchParams.set('project', projectId); return urlObject.toString(); } exports.getIssueStreamUrl = getIssueStreamUrl; //# sourceMappingURL=url.js.map