@senior-gestao-empresarial/angular-components 7.16.0 → 7.16.1-0848a857-3f86-4e2d-9ca9-a638447157d8
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/bundles/senior-gestao-empresarial-angular-components.umd.js +10 -7
- package/bundles/senior-gestao-empresarial-angular-components.umd.js.map +1 -1
- package/bundles/senior-gestao-empresarial-angular-components.umd.min.js +1 -1
- package/bundles/senior-gestao-empresarial-angular-components.umd.min.js.map +1 -1
- package/components/websocket/models/primitive-manager.d.ts +0 -1
- package/esm2015/components/websocket/models/primitive-manager.js +1 -5
- package/esm2015/components/websocket/websocket.service.js +11 -4
- package/esm5/components/websocket/models/primitive-manager.js +1 -5
- package/esm5/components/websocket/websocket.service.js +11 -4
- package/fesm2015/senior-gestao-empresarial-angular-components.js +10 -7
- package/fesm2015/senior-gestao-empresarial-angular-components.js.map +1 -1
- package/fesm5/senior-gestao-empresarial-angular-components.js +10 -7
- package/fesm5/senior-gestao-empresarial-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/senior-gestao-empresarial-angular-components.metadata.json +1 -1
|
@@ -8388,10 +8388,6 @@
|
|
|
8388
8388
|
PrimitiveManager.prototype.getSubscriptionObservable = function () {
|
|
8389
8389
|
return this.subscribed$.asObservable();
|
|
8390
8390
|
};
|
|
8391
|
-
PrimitiveManager.prototype.hasObservers = function () {
|
|
8392
|
-
// @IMPORTANT: Replace .observers.length === 1 with .observed in rxjs 7.0+
|
|
8393
|
-
return this.event$.observers.length !== 1;
|
|
8394
|
-
};
|
|
8395
8391
|
PrimitiveManager.prototype.getObserversCount = function () {
|
|
8396
8392
|
return this.event$.observers.length;
|
|
8397
8393
|
};
|
|
@@ -8646,6 +8642,16 @@
|
|
|
8646
8642
|
};
|
|
8647
8643
|
WebsocketService.prototype.handleOnWebSocketClose = function (data) {
|
|
8648
8644
|
var _a, _b;
|
|
8645
|
+
if ((data === null || data === void 0 ? void 0 : data.reason) === '') {
|
|
8646
|
+
this.lostConnection = true;
|
|
8647
|
+
this.handleError('Failed to send message to ExecutorSubscribableChannel', new stompjs.FrameImpl({
|
|
8648
|
+
command: data.type,
|
|
8649
|
+
headers: {
|
|
8650
|
+
message: data.reason
|
|
8651
|
+
}
|
|
8652
|
+
}));
|
|
8653
|
+
return;
|
|
8654
|
+
}
|
|
8649
8655
|
if (((_a = data === null || data === void 0 ? void 0 : data.reason) === null || _a === void 0 ? void 0 : _a.toLowerCase().indexOf("go away")) !== -1) {
|
|
8650
8656
|
this.lostConnection = true;
|
|
8651
8657
|
this.handleError('AuthenticationError', new stompjs.FrameImpl({
|
|
@@ -8732,9 +8738,6 @@
|
|
|
8732
8738
|
return __generator(this, function (_a) {
|
|
8733
8739
|
switch (_a.label) {
|
|
8734
8740
|
case 0:
|
|
8735
|
-
if (primitiveManager.hasObservers()) {
|
|
8736
|
-
return [2 /*return*/];
|
|
8737
|
-
}
|
|
8738
8741
|
primitiveManager.unsubscribe();
|
|
8739
8742
|
key = this.buildPrimitiveManagerKey(primitiveManager.domain, primitiveManager.service, primitiveManager.primitive);
|
|
8740
8743
|
this.primitiveManagers.delete(key);
|