@cascateer/core 2.4.29 → 2.4.31

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.29",
3
+ "version": "2.4.31",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cascateer/core.git"
@@ -29,7 +29,7 @@
29
29
  "vitest": "^4.1.9"
30
30
  },
31
31
  "dependencies": {
32
- "@cascateer/lib": "^1.0.40",
32
+ "@cascateer/lib": "^1.0.41",
33
33
  "lodash": "^4.18.1",
34
34
  "object-hash": "^3.0.0",
35
35
  "rxjs": "^7.8.2",
package/src/multicast.ts CHANGED
@@ -88,11 +88,11 @@ self.addEventListener("connect", ({ ports }) => {
88
88
  ({ id: previousId }, action) =>
89
89
  action.type === "seedAction" ? action : { ...action, previousId },
90
90
  (action) => {
91
- if (action.type !== "seedAction") {
92
- throw new Error();
91
+ if (action.type === "seedAction") {
92
+ return action;
93
93
  }
94
94
 
95
- return action;
95
+ throw new Error();
96
96
  },
97
97
  ),
98
98
  map(({ origin, ...message }) => message),
package/src/store.ts CHANGED
@@ -238,6 +238,7 @@ export class StoreProvider<Data> extends ExtendableStoreAdapter<
238
238
  );
239
239
  },
240
240
  (action) => (
241
+ console.log(action),
241
242
  assert(action.type === "seedAction"),
242
243
  action.predicate()
243
244
  ),