UNPKG

moleculer-api

Version:

A dynamic API Gateway for MoleculerJS which updates REST endpoints and aggregated GraphQL schema, access control policy for each action calls from metadata of remote services schema without restart or deployment.

27 lines 659 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ServiceNode = void 0; const tslib_1 = require("tslib"); const kleur = tslib_1.__importStar(require("kleur")); class ServiceNode { constructor(props) { this.props = props; } get id() { return this.props.id; } get displayName() { return this.props.displayName; } get meta() { return this.props.meta; } toString() { return kleur.green(this.props.id); } getInformation() { return Object.assign({}, this.props); } } exports.ServiceNode = ServiceNode; //# sourceMappingURL=node.js.map