@poe-platform/safe-bash 0.1.62 → 0.1.64
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/safe-bash/browser.js +6 -1
- package/dist/safe-bash/browser.js.map +2 -2
- package/dist/safe-bash/commands/text-programs/shared.d.ts +1 -0
- package/dist/safe-bash/commands/text-programs/shared.d.ts.map +1 -1
- package/dist/safe-bash/commands/text-programs/shared.js +6 -2
- package/dist/safe-bash/commands/text-programs/shared.js.map +1 -1
- package/package.json +2 -2
|
@@ -16445,6 +16445,7 @@ var Budget3 = class {
|
|
|
16445
16445
|
maxBufferBytes;
|
|
16446
16446
|
remaining;
|
|
16447
16447
|
checkpoints = 0;
|
|
16448
|
+
lastYield = monotonicNow();
|
|
16448
16449
|
step(count2 = 1) {
|
|
16449
16450
|
this.context.signal.throwIfAborted();
|
|
16450
16451
|
this.remaining -= count2;
|
|
@@ -16455,7 +16456,11 @@ var Budget3 = class {
|
|
|
16455
16456
|
return text;
|
|
16456
16457
|
}
|
|
16457
16458
|
async checkpoint() {
|
|
16458
|
-
|
|
16459
|
+
this.context.signal.throwIfAborted();
|
|
16460
|
+
if (++this.checkpoints % 256 === 0 || monotonicNow() - this.lastYield >= 25) {
|
|
16461
|
+
await yieldTurn(this.context.signal);
|
|
16462
|
+
this.lastYield = monotonicNow();
|
|
16463
|
+
}
|
|
16459
16464
|
this.context.signal.throwIfAborted();
|
|
16460
16465
|
}
|
|
16461
16466
|
};
|