@cascateer/core 2.2.11 → 2.2.13
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/package.json +1 -1
- package/src/multicast.ts +3 -5
package/package.json
CHANGED
package/src/multicast.ts
CHANGED
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
mergeMap,
|
|
9
9
|
Observable,
|
|
10
10
|
scan,
|
|
11
|
+
share,
|
|
11
12
|
} from "rxjs";
|
|
12
13
|
import { v4 } from "uuid";
|
|
13
14
|
import { nonNullable, property } from "./lib";
|
|
@@ -73,6 +74,7 @@ const actions = proxyReplaySubject<Observable<InMessages>, OutMessages>(
|
|
|
73
74
|
),
|
|
74
75
|
),
|
|
75
76
|
),
|
|
77
|
+
share(),
|
|
76
78
|
),
|
|
77
79
|
);
|
|
78
80
|
|
|
@@ -100,11 +102,7 @@ self.addEventListener("connect", ({ ports }) => {
|
|
|
100
102
|
(message) => message.type === "connect",
|
|
101
103
|
);
|
|
102
104
|
|
|
103
|
-
|
|
104
|
-
return { connect, actions };
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
return [];
|
|
105
|
+
return connect != null ? { connect, actions } : [];
|
|
108
106
|
}),
|
|
109
107
|
),
|
|
110
108
|
);
|