gyoshu 0.4.19 → 0.4.20
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/package.json
CHANGED
|
@@ -275,22 +275,22 @@ async function onSuccessfulContinuationSend(reportTitle: string): Promise<void>
|
|
|
275
275
|
await saveState(state);
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
-
|
|
278
|
+
function registerAutoLoop(state: AutoLoopState): void {
|
|
279
279
|
if (state.active) {
|
|
280
280
|
activeAutoLoops.set(state.reportTitle, state);
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
|
|
284
|
-
|
|
284
|
+
function unregisterAutoLoop(reportTitle: string): void {
|
|
285
285
|
activeAutoLoops.delete(reportTitle);
|
|
286
286
|
recentOutputBuffer.delete(reportTitle);
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
-
|
|
289
|
+
function isAutoLoopActive(reportTitle: string): boolean {
|
|
290
290
|
return activeAutoLoops.has(reportTitle);
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
-
|
|
293
|
+
async function refreshAutoLoopState(reportTitle: string): Promise<void> {
|
|
294
294
|
const state = await loadState(reportTitle);
|
|
295
295
|
if (state?.active) {
|
|
296
296
|
activeAutoLoops.set(reportTitle, state);
|