@poe-platform/safe-bash 0.1.162 → 0.1.164
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 +7 -2
- package/dist/safe-bash/browser.js.map +2 -2
- package/dist/safe-bash/commands/network/aggregate.d.ts +5 -0
- package/dist/safe-bash/commands/network/aggregate.d.ts.map +1 -0
- package/dist/safe-bash/commands/network/aggregate.js +24 -0
- package/dist/safe-bash/commands/network/aggregate.js.map +1 -0
- package/dist/safe-bash/commands/network/curl.d.ts.map +1 -1
- package/dist/safe-bash/commands/network/curl.js +54 -20
- package/dist/safe-bash/commands/network/curl.js.map +1 -1
- package/dist/safe-bash/commands/network/types.d.ts +1 -0
- package/dist/safe-bash/commands/network/types.d.ts.map +1 -1
- package/dist/safe-bash/commands/network/types.js +2 -0
- package/dist/safe-bash/commands/network/types.js.map +1 -1
- package/dist/safe-bash/contracts/command.d.ts +1 -0
- package/dist/safe-bash/contracts/command.d.ts.map +1 -1
- package/dist/safe-bash/contracts/command.js.map +1 -1
- package/dist/safe-bash/shell/runtime.d.ts +1 -0
- package/dist/safe-bash/shell/runtime.d.ts.map +1 -1
- package/dist/safe-bash/shell/runtime.js +3 -0
- package/dist/safe-bash/shell/runtime.js.map +1 -1
- package/package.json +2 -2
|
@@ -11700,6 +11700,7 @@ var Budget = class {
|
|
|
11700
11700
|
this.#armWallClock();
|
|
11701
11701
|
}
|
|
11702
11702
|
limits;
|
|
11703
|
+
executionScope = Object.freeze({});
|
|
11703
11704
|
parsing;
|
|
11704
11705
|
values;
|
|
11705
11706
|
commands = 0;
|
|
@@ -14167,6 +14168,7 @@ var Runtime = class _Runtime {
|
|
|
14167
14168
|
cwd: state.cwd,
|
|
14168
14169
|
fs: this.fs,
|
|
14169
14170
|
signal: this.commandSignal,
|
|
14171
|
+
executionScope: this.budget.executionScope,
|
|
14170
14172
|
registerCleanup: (cleanup) => scope.register(cleanup),
|
|
14171
14173
|
invoke: (name3, args, options3) => {
|
|
14172
14174
|
const invocation = this.invoke(name3, args, options3, context, state, scope);
|
|
@@ -14771,6 +14773,7 @@ ${prefix2} line ${offset + line}: \`${source.split("\n")[line - 1] ?? ""}'
|
|
|
14771
14773
|
...incoming,
|
|
14772
14774
|
args: argumentValues.args,
|
|
14773
14775
|
argumentValues,
|
|
14776
|
+
executionScope: this.budget.executionScope,
|
|
14774
14777
|
env: Object.assign(/* @__PURE__ */ Object.create(null), incoming.env),
|
|
14775
14778
|
stdin: input3 ?? incoming.stdin,
|
|
14776
14779
|
stdout: this.budget.sink(incoming.stdout, runtime.signal),
|
|
@@ -17723,7 +17726,8 @@ var defaultNetworkLimits = Object.freeze({
|
|
|
17723
17726
|
maxRedirects: 10,
|
|
17724
17727
|
maxRetries: 5,
|
|
17725
17728
|
maxUrls: 32,
|
|
17726
|
-
maxTimeMs: 12e4
|
|
17729
|
+
maxTimeMs: 12e4,
|
|
17730
|
+
maxTotalTimeMs: 12e4
|
|
17727
17731
|
});
|
|
17728
17732
|
var cloudflareWorkerNetworkLimits = Object.freeze({
|
|
17729
17733
|
maxUploadBytes: 4 * 1024 * 1024,
|
|
@@ -17733,7 +17737,8 @@ var cloudflareWorkerNetworkLimits = Object.freeze({
|
|
|
17733
17737
|
maxRedirects: 2,
|
|
17734
17738
|
maxRetries: 1,
|
|
17735
17739
|
maxUrls: 8,
|
|
17736
|
-
maxTimeMs: 1e4
|
|
17740
|
+
maxTimeMs: 1e4,
|
|
17741
|
+
maxTotalTimeMs: 1e4
|
|
17737
17742
|
});
|
|
17738
17743
|
var CurlError = class extends Error {
|
|
17739
17744
|
constructor(exitCode, message2) {
|