@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
|
@@ -8182,10 +8182,6 @@ var PrimitiveManager = /** @class */ (function () {
|
|
|
8182
8182
|
PrimitiveManager.prototype.getSubscriptionObservable = function () {
|
|
8183
8183
|
return this.subscribed$.asObservable();
|
|
8184
8184
|
};
|
|
8185
|
-
PrimitiveManager.prototype.hasObservers = function () {
|
|
8186
|
-
// @IMPORTANT: Replace .observers.length === 1 with .observed in rxjs 7.0+
|
|
8187
|
-
return this.event$.observers.length !== 1;
|
|
8188
|
-
};
|
|
8189
8185
|
PrimitiveManager.prototype.getObserversCount = function () {
|
|
8190
8186
|
return this.event$.observers.length;
|
|
8191
8187
|
};
|
|
@@ -8440,6 +8436,16 @@ var WebsocketService = /** @class */ (function () {
|
|
|
8440
8436
|
};
|
|
8441
8437
|
WebsocketService.prototype.handleOnWebSocketClose = function (data) {
|
|
8442
8438
|
var _a, _b;
|
|
8439
|
+
if ((data === null || data === void 0 ? void 0 : data.reason) === '') {
|
|
8440
|
+
this.lostConnection = true;
|
|
8441
|
+
this.handleError('Failed to send message to ExecutorSubscribableChannel', new FrameImpl({
|
|
8442
|
+
command: data.type,
|
|
8443
|
+
headers: {
|
|
8444
|
+
message: data.reason
|
|
8445
|
+
}
|
|
8446
|
+
}));
|
|
8447
|
+
return;
|
|
8448
|
+
}
|
|
8443
8449
|
if (((_a = data === null || data === void 0 ? void 0 : data.reason) === null || _a === void 0 ? void 0 : _a.toLowerCase().indexOf("go away")) !== -1) {
|
|
8444
8450
|
this.lostConnection = true;
|
|
8445
8451
|
this.handleError('AuthenticationError', new FrameImpl({
|
|
@@ -8526,9 +8532,6 @@ var WebsocketService = /** @class */ (function () {
|
|
|
8526
8532
|
return __generator(this, function (_a) {
|
|
8527
8533
|
switch (_a.label) {
|
|
8528
8534
|
case 0:
|
|
8529
|
-
if (primitiveManager.hasObservers()) {
|
|
8530
|
-
return [2 /*return*/];
|
|
8531
|
-
}
|
|
8532
8535
|
primitiveManager.unsubscribe();
|
|
8533
8536
|
key = this.buildPrimitiveManagerKey(primitiveManager.domain, primitiveManager.service, primitiveManager.primitive);
|
|
8534
8537
|
this.primitiveManagers.delete(key);
|