1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var tslib_1 = require("tslib");
|
4 | var core_1 = require("@aws-amplify/core");
|
5 | var logger = new core_1.ConsoleLogger('AbstractPubSubProvider');
|
6 | var AbstractPubSubProvider = (function () {
|
7 | function AbstractPubSubProvider(options) {
|
8 | this._config = options;
|
9 | }
|
10 | AbstractPubSubProvider.prototype.configure = function (config) {
|
11 | this._config = tslib_1.__assign(tslib_1.__assign({}, config), this._config);
|
12 | logger.debug("configure " + this.getProviderName(), this._config);
|
13 | return this.options;
|
14 | };
|
15 | AbstractPubSubProvider.prototype.getCategory = function () {
|
16 | return 'PubSub';
|
17 | };
|
18 | Object.defineProperty(AbstractPubSubProvider.prototype, "options", {
|
19 | get: function () {
|
20 | return tslib_1.__assign({}, this._config);
|
21 | },
|
22 | enumerable: true,
|
23 | configurable: true
|
24 | });
|
25 | return AbstractPubSubProvider;
|
26 | }());
|
27 | exports.AbstractPubSubProvider = AbstractPubSubProvider;
|
28 |
|
\ | No newline at end of file |