@absolutejs/voice 0.0.22-beta.47 → 0.0.22-beta.49

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.
@@ -1442,7 +1442,7 @@ var createVoiceWorkflowStatusStore = (path = "/evals/scenarios/json", options =
1442
1442
  }
1443
1443
  listeners.clear();
1444
1444
  };
1445
- if (options.intervalMs && options.intervalMs > 0) {
1445
+ if (typeof window !== "undefined" && options.intervalMs && options.intervalMs > 0) {
1446
1446
  timer = setInterval(() => {
1447
1447
  refresh().catch(() => {});
1448
1448
  }, options.intervalMs);
@@ -726,7 +726,7 @@ var createVoiceWorkflowStatusStore = (path = "/evals/scenarios/json", options =
726
726
  }
727
727
  listeners.clear();
728
728
  };
729
- if (options.intervalMs && options.intervalMs > 0) {
729
+ if (typeof window !== "undefined" && options.intervalMs && options.intervalMs > 0) {
730
730
  timer = setInterval(() => {
731
731
  refresh().catch(() => {});
732
732
  }, options.intervalMs);
package/dist/vue/index.js CHANGED
@@ -1491,7 +1491,7 @@ var createVoiceWorkflowStatusStore = (path = "/evals/scenarios/json", options =
1491
1491
  }
1492
1492
  listeners.clear();
1493
1493
  };
1494
- if (options.intervalMs && options.intervalMs > 0) {
1494
+ if (typeof window !== "undefined" && options.intervalMs && options.intervalMs > 0) {
1495
1495
  timer = setInterval(() => {
1496
1496
  refresh().catch(() => {});
1497
1497
  }, options.intervalMs);
@@ -1526,7 +1526,9 @@ var useVoiceWorkflowStatus = (path = "/evals/scenarios/json", options = {}) => {
1526
1526
  };
1527
1527
  const unsubscribe = store.subscribe(sync);
1528
1528
  sync();
1529
- store.refresh().catch(() => {});
1529
+ if (typeof window !== "undefined") {
1530
+ store.refresh().catch(() => {});
1531
+ }
1530
1532
  onUnmounted4(() => {
1531
1533
  unsubscribe();
1532
1534
  store.close();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@absolutejs/voice",
3
- "version": "0.0.22-beta.47",
3
+ "version": "0.0.22-beta.49",
4
4
  "description": "Voice primitives and Elysia plugin for AbsoluteJS",
5
5
  "repository": {
6
6
  "type": "git",