@smartbit4all/ng-client 1.0.2 → 1.0.3

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.
@@ -3607,8 +3607,16 @@ class SmartSubject extends Subject {
3607
3607
  super();
3608
3608
  this.unsubscribe$ = unsubscribe$;
3609
3609
  }
3610
- subscribe(next, error, complete) {
3611
- const subscription = super.subscribe(next, error, complete);
3610
+ subscribe(observerOrNext, error, complete) {
3611
+ if (typeof observerOrNext === "object") {
3612
+ const next = observerOrNext.next;
3613
+ observerOrNext.next = (value) => {
3614
+ if (next) {
3615
+ next.call(observerOrNext, value);
3616
+ }
3617
+ };
3618
+ }
3619
+ const subscription = super.subscribe(observerOrNext, error, complete);
3612
3620
  subscription.add(this.unsubscribe$.subscribe());
3613
3621
  return subscription;
3614
3622
  }