@cascateer/core 2.4.28 → 2.4.29

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cascateer/core",
3
- "version": "2.4.28",
3
+ "version": "2.4.29",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cascateer/core.git"
package/src/multicast.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { property } from "@cascateer/lib";
2
2
  import { flatMap, reduce } from "@cascateer/lib/observables";
3
- import assert from "assert";
4
3
  import { partition, thru, uniq, uniqBy } from "lodash";
5
4
  import {
6
5
  distinct,
@@ -88,7 +87,13 @@ self.addEventListener("connect", ({ ports }) => {
88
87
  reduce(
89
88
  ({ id: previousId }, action) =>
90
89
  action.type === "seedAction" ? action : { ...action, previousId },
91
- (action) => (assert(action.type === "seedAction"), action),
90
+ (action) => {
91
+ if (action.type !== "seedAction") {
92
+ throw new Error();
93
+ }
94
+
95
+ return action;
96
+ },
92
97
  ),
93
98
  map(({ origin, ...message }) => message),
94
99
  exchangeWith<MulticastClientMessage, MulticastActionMessage<any>>(port),
package/src/store.ts CHANGED
@@ -238,7 +238,6 @@ export class StoreProvider<Data> extends ExtendableStoreAdapter<
238
238
  );
239
239
  },
240
240
  (action) => (
241
- console.log(action),
242
241
  assert(action.type === "seedAction"),
243
242
  action.predicate()
244
243
  ),