1 | "use strict";
|
2 | var __extends = (this && this.__extends) || (function () {
|
3 | var extendStatics = function (d, b) {
|
4 | extendStatics = Object.setPrototypeOf ||
|
5 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
6 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
7 | return extendStatics(d, b);
|
8 | };
|
9 | return function (d, b) {
|
10 | extendStatics(d, b);
|
11 | function __() { this.constructor = d; }
|
12 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
13 | };
|
14 | })();
|
15 | var __importStar = (this && this.__importStar) || function (mod) {
|
16 | if (mod && mod.__esModule) return mod;
|
17 | var result = {};
|
18 | if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
19 | result["default"] = mod;
|
20 | return result;
|
21 | };
|
22 | var __importDefault = (this && this.__importDefault) || function (mod) {
|
23 | return (mod && mod.__esModule) ? mod : { "default": mod };
|
24 | };
|
25 | Object.defineProperty(exports, "__esModule", { value: true });
|
26 | var resolutionError_1 = __importStar(require("./resolutionError"));
|
27 | var baseConnection_1 = __importDefault(require("./baseConnection"));
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 | var NamingService = (function (_super) {
|
35 | __extends(NamingService, _super);
|
36 | function NamingService() {
|
37 | return _super !== null && _super.apply(this, arguments) || this;
|
38 | }
|
39 | NamingService.prototype.ensureSupportedDomain = function (domain) {
|
40 | if (!this.isSupportedDomain(domain)) {
|
41 | throw new resolutionError_1.default(resolutionError_1.ResolutionErrorCode.UnsupportedDomain, {
|
42 | domain: domain,
|
43 | });
|
44 | }
|
45 | };
|
46 | return NamingService;
|
47 | }(baseConnection_1.default));
|
48 | exports.default = NamingService;
|