UNPKG

@altravia/openapi

Version:
14 lines (13 loc) 463 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getBaseUrl = exports.isServiceInScopes = void 0; function isServiceInScopes(scopes, baseUrl) { return scopes.find(function (scope) { return scope.domain.match(baseUrl); }); } exports.isServiceInScopes = isServiceInScopes; function getBaseUrl(env, baseUrl) { return 'https://' + ((env === 'test') ? 'test.' : '') + baseUrl; } exports.getBaseUrl = getBaseUrl;