@evergis/api 3.0.76 → 3.0.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.cjs.development.js +4 -3
- package/dist/api.cjs.development.js.map +1 -1
- package/dist/api.cjs.production.min.js +1 -1
- package/dist/api.cjs.production.min.js.map +1 -1
- package/dist/api.esm.js +4 -3
- package/dist/api.esm.js.map +1 -1
- package/dist/services/Notification.d.ts +3 -1
- package/package.json +2 -2
|
@@ -843,12 +843,13 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
|
|
|
843
843
|
|
|
844
844
|
var _super = /*#__PURE__*/_createSuper(Notification);
|
|
845
845
|
|
|
846
|
-
function Notification(http) {
|
|
846
|
+
function Notification(http, api) {
|
|
847
847
|
var _this;
|
|
848
848
|
|
|
849
849
|
_classCallCheck(this, Notification);
|
|
850
850
|
|
|
851
851
|
_this = _super.call(this, http);
|
|
852
|
+
_this.api = api;
|
|
852
853
|
_this.MAX_WS_RECONNECT_TRIES = 10;
|
|
853
854
|
_this.reconnectTries = 0;
|
|
854
855
|
_this.subscriptions = [];
|
|
@@ -935,7 +936,7 @@ let Notification = /*#__PURE__*/function (_NotificationService) {
|
|
|
935
936
|
value: async function subscribe(tag) {
|
|
936
937
|
this.subscriptions.push(tag);
|
|
937
938
|
setTimeout(() => {
|
|
938
|
-
if (this.subscriptions.length) {
|
|
939
|
+
if (!this.api.isShared && this.subscriptions.length) {
|
|
939
940
|
this.subscribeListOperation(this.subscriptions);
|
|
940
941
|
}
|
|
941
942
|
|
|
@@ -5895,7 +5896,7 @@ let Api = /*#__PURE__*/function (_EventEmitter) {
|
|
|
5895
5896
|
_this.accountPreview = new AccountPreview(_this.http, _this.account);
|
|
5896
5897
|
_this.bulk = new BulkOperations(_this.http);
|
|
5897
5898
|
_this.security = new Security(_this.http, _this.account);
|
|
5898
|
-
_this.notification = new Notification(_this.http);
|
|
5899
|
+
_this.notification = new Notification(_this.http, _assertThisInitialized(_this));
|
|
5899
5900
|
_this.scheduler = new Scheduler(_this.http);
|
|
5900
5901
|
_this.file = new FileUpload(_this.http);
|
|
5901
5902
|
_this.import = new Import(_this.http);
|