UNPKG

685 BJavaScriptView Raw
1"use strict";
2var __importStar = (this && this.__importStar) || function (mod) {
3 if (mod && mod.__esModule) return mod;
4 var result = {};
5 if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
6 result["default"] = mod;
7 return result;
8};
9Object.defineProperty(exports, "__esModule", { value: true });
10var url = __importStar(require("url"));
11function settingsUrl(apiUrl) {
12 var host = url.parse(apiUrl).host;
13 if (host && host.includes('api.')) {
14 host = host.replace('api.', '');
15 }
16 return "https://" + host + "/settings/tokens/new";
17}
18exports.default = settingsUrl;
19//# sourceMappingURL=settings-url.js.map
\No newline at end of file