UNPKG

491 BJavaScriptView Raw
1import { ConsoleLogger } from '@aws-amplify/core';
2
3const logger = new ConsoleLogger('AbstractPubSubProvider');
4class AbstractPubSub {
5 constructor(options) {
6 this._config = options;
7 }
8 configure(config) {
9 this._config = { ...config, ...this._config };
10 logger.debug(`configure`, this._config);
11 return this.options;
12 }
13 get options() {
14 return { ...this._config };
15 }
16}
17
18export { AbstractPubSub };
19//# sourceMappingURL=PubSub.mjs.map