@glissade/core 0.10.0-pre.0 → 0.10.0-pre.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/dist/index.js +7 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -57,6 +57,7 @@ function runFlush() {
57
57
  function drain() {
58
58
  if (flushing) return;
59
59
  flushing = true;
60
+ let thrown;
60
61
  try {
61
62
  let passes = 0;
62
63
  while (pending.size > 0) {
@@ -66,11 +67,16 @@ function drain() {
66
67
  }
67
68
  const batchCbs = [...pending];
68
69
  pending.clear();
69
- for (const cb of batchCbs) cb();
70
+ for (const cb of batchCbs) try {
71
+ cb();
72
+ } catch (err) {
73
+ thrown ??= { err };
74
+ }
70
75
  }
71
76
  } finally {
72
77
  flushing = false;
73
78
  }
79
+ if (thrown) throw thrown.err;
74
80
  }
75
81
  /**
76
82
  * Bracket a single top-level write (the signal layer calls this around each
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissade/core",
3
- "version": "0.10.0-pre.0",
3
+ "version": "0.10.0-pre.1",
4
4
  "description": "glissade core: signals, tracks, timeline document, evaluation, easing, springs, seeded RNG. Zero DOM/Node dependencies.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",