UNPKG

839 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var tslib_1 = require("tslib");
4var core_1 = require("@aws-amplify/core");
5var internals_1 = require("./internals");
6var PubSubClass = /** @class */ (function (_super) {
7 tslib_1.__extends(PubSubClass, _super);
8 function PubSubClass() {
9 return _super !== null && _super.apply(this, arguments) || this;
10 }
11 PubSubClass.prototype.getModuleName = function () {
12 return 'PubSub';
13 };
14 PubSubClass.prototype.subscribe = function (topics, options) {
15 return _super.prototype.subscribe.call(this, topics, options);
16 };
17 return PubSubClass;
18}(internals_1.InternalPubSubClass));
19exports.PubSubClass = PubSubClass;
20exports.PubSub = new PubSubClass();
21core_1.Amplify.register(exports.PubSub);
22//# sourceMappingURL=PubSub.js.map
\No newline at end of file