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