UNPKG

vulcain-corejs

Version:
39 lines (37 loc) 2.03 kB
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; const annotations_1 = require("../di/annotations"); const annotations_2 = require("../pipeline/annotations"); const system_1 = require("./../configurations/globals/system"); const annotations_3 = require("./../configurations/dependencies/annotations"); const applicationRequestError_1 = require("../errors/applicationRequestError"); let DependencyExplorer = class DependencyExplorer { constructor() { } getDependencies() { let ctx = this.requestContext; if (ctx.publicPath) throw new applicationRequestError_1.ForbiddenRequestError(); return system_1.System.manifest; } }; __decorate([ annotations_2.Query({ outputSchema: annotations_3.VulcainManifest, description: "Get service dependencies", action: "_serviceDependencies" }), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", void 0) ], DependencyExplorer.prototype, "getDependencies", null); DependencyExplorer = __decorate([ annotations_2.QueryHandler({ scope: "?", serviceLifeTime: annotations_1.LifeTime.Singleton }), __metadata("design:paramtypes", []) ], DependencyExplorer); exports.DependencyExplorer = DependencyExplorer; //# sourceMappingURL=dependencyExplorer.js.map