@uistate/core 5.0.0 → 5.0.1

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.
Files changed (2) hide show
  1. package/eventState.js +3 -1
  2. package/package.json +1 -1
package/eventState.js CHANGED
@@ -65,7 +65,9 @@ const createEventState = (initial = {}) => {
65
65
  bus.removeEventListener(path, onEvent);
66
66
  };
67
67
  },
68
- addStateListener: subscribe,
68
+ addStateListener(path, handler) {
69
+ return this.subscribe(path, handler);
70
+ },
69
71
  off(unsubscribe) {
70
72
  if (typeof unsubscribe !== 'function') {
71
73
  throw new TypeError('off(unsubscribe) requires a function returned by subscribe');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uistate/core",
3
- "version": "5.0.0",
3
+ "version": "5.0.1",
4
4
  "description": "Lightweight event-driven state management with slot orchestration and experimental event-sequence testing (eventTest.js available under dual license)",
5
5
  "type": "module",
6
6
  "main": "index.js",