@figliolia/galena 2.2.6 → 2.2.8

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.
@@ -29,7 +29,7 @@ class Profiler extends Middleware_1.Middleware {
29
29
  const endTime = performance.now();
30
30
  const diff = endTime - this.startTime;
31
31
  if (diff > this.threshold) {
32
- console.warn("Slow state transition detected", nextState);
32
+ console.warn(`A slow state transition was detected on ${nextState.name}`, nextState.getState());
33
33
  console.warn(`The last transition took ${diff}ms`);
34
34
  }
35
35
  }
@@ -27,7 +27,7 @@ export class Profiler extends Middleware {
27
27
  const endTime = performance.now();
28
28
  const diff = endTime - this.startTime;
29
29
  if (diff > this.threshold) {
30
- console.warn("Slow state transition detected", nextState);
30
+ console.warn(`A slow state transition was detected on ${nextState.name}`, nextState.getState());
31
31
  console.warn(`The last transition took ${diff}ms`);
32
32
  }
33
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@figliolia/galena",
3
- "version": "2.2.6",
3
+ "version": "2.2.8",
4
4
  "description": "A performant state management library supporting mutable state, batched updates, middleware and a rich development API",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/mjs/index.js",
@@ -65,4 +65,4 @@
65
65
  "publishConfig": {
66
66
  "access": "public"
67
67
  }
68
- }
68
+ }
@@ -30,7 +30,10 @@ export class Profiler extends Middleware {
30
30
  const endTime = performance.now();
31
31
  const diff = endTime - this.startTime;
32
32
  if (diff > this.threshold) {
33
- console.warn("Slow state transition detected", nextState);
33
+ console.warn(
34
+ `A slow state transition was detected on ${nextState.name}`,
35
+ nextState.getState()
36
+ );
34
37
  console.warn(`The last transition took ${diff}ms`);
35
38
  }
36
39
  }