beestate 0.1.3 → 0.1.4

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.
@@ -186,8 +186,8 @@ class InternalStore {
186
186
  const changes = reducer(instanceState, payload);
187
187
  this.update(instanceKey, changes);
188
188
  // TODO Убрать в логгер
189
- console.log(`dispatch [store: ${this.name}, instance: ${String(instanceKey)}]:`);
190
- console.dir({ payload: changes, [`prev state`]: instanceState, [`next state`]: changes });
189
+ console.log(`dispatch [store: ${this.name}, instance: ${String(instanceKey)}, action: ${reducer.name}]:`);
190
+ console.dir({ payload, [`prev state`]: instanceState, [`next state`]: changes });
191
191
  };
192
192
  this.update = (instanceKey, changes) => {
193
193
  this.state = { ...this.state, [instanceKey]: changes };
@@ -184,8 +184,8 @@ class InternalStore {
184
184
  const changes = reducer(instanceState, payload);
185
185
  this.update(instanceKey, changes);
186
186
  // TODO Убрать в логгер
187
- console.log(`dispatch [store: ${this.name}, instance: ${String(instanceKey)}]:`);
188
- console.dir({ payload: changes, [`prev state`]: instanceState, [`next state`]: changes });
187
+ console.log(`dispatch [store: ${this.name}, instance: ${String(instanceKey)}, action: ${reducer.name}]:`);
188
+ console.dir({ payload, [`prev state`]: instanceState, [`next state`]: changes });
189
189
  };
190
190
  this.update = (instanceKey, changes) => {
191
191
  this.state = { ...this.state, [instanceKey]: changes };
package/package.json CHANGED
@@ -19,5 +19,5 @@
19
19
  "prepublishOnly": "npm run build"
20
20
  },
21
21
  "types": "dist/@types",
22
- "version": "0.1.3"
22
+ "version": "0.1.4"
23
23
  }