@absolutejs/voice 0.0.22-beta.47 → 0.0.22-beta.48
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.
- package/dist/angular/index.js +4 -2
- package/dist/client/index.js +1 -1
- package/dist/react/index.js +1 -1
- package/dist/svelte/index.js +1 -1
- package/dist/vue/index.js +4 -2
- package/package.json +1 -1
package/dist/angular/index.js
CHANGED
|
@@ -1520,7 +1520,7 @@ var createVoiceWorkflowStatusStore = (path = "/evals/scenarios/json", options =
|
|
|
1520
1520
|
}
|
|
1521
1521
|
listeners.clear();
|
|
1522
1522
|
};
|
|
1523
|
-
if (options.intervalMs && options.intervalMs > 0) {
|
|
1523
|
+
if (typeof window !== "undefined" && options.intervalMs && options.intervalMs > 0) {
|
|
1524
1524
|
timer = setInterval(() => {
|
|
1525
1525
|
refresh().catch(() => {});
|
|
1526
1526
|
}, options.intervalMs);
|
|
@@ -1561,7 +1561,9 @@ class VoiceWorkflowStatusService {
|
|
|
1561
1561
|
};
|
|
1562
1562
|
const unsubscribe = store.subscribe(sync);
|
|
1563
1563
|
sync();
|
|
1564
|
-
|
|
1564
|
+
if (typeof window !== "undefined") {
|
|
1565
|
+
store.refresh().catch(() => {});
|
|
1566
|
+
}
|
|
1565
1567
|
return {
|
|
1566
1568
|
close: () => {
|
|
1567
1569
|
unsubscribe();
|
package/dist/client/index.js
CHANGED
|
@@ -1762,7 +1762,7 @@ var createVoiceWorkflowStatusStore = (path = "/evals/scenarios/json", options =
|
|
|
1762
1762
|
}
|
|
1763
1763
|
listeners.clear();
|
|
1764
1764
|
};
|
|
1765
|
-
if (options.intervalMs && options.intervalMs > 0) {
|
|
1765
|
+
if (typeof window !== "undefined" && options.intervalMs && options.intervalMs > 0) {
|
|
1766
1766
|
timer = setInterval(() => {
|
|
1767
1767
|
refresh().catch(() => {});
|
|
1768
1768
|
}, options.intervalMs);
|
package/dist/react/index.js
CHANGED
|
@@ -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);
|
package/dist/svelte/index.js
CHANGED
|
@@ -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
|
-
|
|
1529
|
+
if (typeof window !== "undefined") {
|
|
1530
|
+
store.refresh().catch(() => {});
|
|
1531
|
+
}
|
|
1530
1532
|
onUnmounted4(() => {
|
|
1531
1533
|
unsubscribe();
|
|
1532
1534
|
store.close();
|