@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.
- package/esm2020/lib/smart-client/smart.subject.mjs +11 -3
- package/fesm2015/smartbit4all-ng-client.mjs +10 -2
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +10 -2
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-client/smart.subject.d.ts +2 -2
- package/package.json +1 -1
- package/smartbit4all-ng-client-1.0.3.tgz +0 -0
- package/smartbit4all-ng-client-1.0.2.tgz +0 -0
|
@@ -3607,8 +3607,16 @@ class SmartSubject extends Subject {
|
|
|
3607
3607
|
super();
|
|
3608
3608
|
this.unsubscribe$ = unsubscribe$;
|
|
3609
3609
|
}
|
|
3610
|
-
subscribe(
|
|
3611
|
-
|
|
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
|
}
|