UNPKG

972 BJavaScriptView Raw
1import { __assign } from "tslib";
2import { ConsoleLogger as Logger } from '@aws-amplify/core';
3var logger = new Logger('AbstractPubSubProvider');
4var AbstractPubSubProvider = /** @class */ (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}());
25export { AbstractPubSubProvider };
26//# sourceMappingURL=PubSubProvider.js.map
\No newline at end of file