UNPKG

@mdf.js/service-registry

Version:

MMS - API - Service Registry

26 lines 820 B
"use strict"; /* istanbul ignore file */ /** * Copyright 2024 Mytra Control S.L. All rights reserved. * * Use of this source code is governed by an MIT-style license that can be found in the LICENSE file * or at https://opensource.org/licenses/MIT. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.OurComponent = void 0; const tslib_1 = require("tslib"); const events_1 = tslib_1.__importDefault(require("events")); const uuid_1 = require("uuid"); class OurComponent extends events_1.default { constructor(name, error) { super(); this.name = name; this.error = error; this.componentId = (0, uuid_1.v4)(); } emitError(error) { this.emit('error', error); } } exports.OurComponent = OurComponent; //# sourceMappingURL=Error.assets.js.map