@poe-platform/safe-bash 0.1.61 → 0.1.62

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.
@@ -9943,6 +9943,7 @@ var defaultLimits = {
9943
9943
  maxInputBytes: 32 * 1024 * 1024,
9944
9944
  maxOutputBytes: 16 * 1024 * 1024,
9945
9945
  maxCommands: 1e4,
9946
+ maxRedirects: 64,
9946
9947
  maxPipelineStages: 64,
9947
9948
  maxLoopIterations: 1e4,
9948
9949
  maxSubstitutionDepth: 64,
@@ -12048,6 +12049,8 @@ var Runtime = class _Runtime {
12048
12049
  return value2;
12049
12050
  }
12050
12051
  async redirect(redirects, state, io, inputs, outputs, isolatedInlineInput = false, persistMoves = false, fileShortcut = false, line) {
12052
+ this.signal.throwIfAborted();
12053
+ if (redirects.length > this.budget.limits.maxRedirects) this.budget.fail("maxRedirects");
12051
12054
  io.descriptors ??= /* @__PURE__ */ new Map([
12052
12055
  [0, { input: io.stdin, ...io.stdinIsDefault === void 0 ? {} : { stdinIsDefault: io.stdinIsDefault } }],
12053
12056
  [1, { output: io.stdout }],
@@ -15681,6 +15684,7 @@ var cloudflareWorkerLimits = Object.freeze({
15681
15684
  maxInputBytes: 4 * 1024 * 1024,
15682
15685
  maxOutputBytes: 4 * 1024 * 1024,
15683
15686
  maxCommands: 1e3,
15687
+ maxRedirects: 64,
15684
15688
  maxPipelineStages: 64,
15685
15689
  maxLoopIterations: 1e3,
15686
15690
  maxSubstitutionDepth: 16,