@computesdk/sandbox0 1.0.22 → 1.0.24

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/index.js CHANGED
@@ -22543,10 +22543,11 @@ function normalizeMemory(value) {
22543
22543
  }
22544
22544
  function buildClaimOptions(config, options) {
22545
22545
  const providerOptions = options;
22546
- const ttl = optionalPositiveSeconds("ttl", providerOptions?.ttl ?? config.ttl);
22546
+ const timeoutSeconds = typeof options?.timeout === "number" && Number.isFinite(options.timeout) && options.timeout > 0 ? Math.ceil(options.timeout / 1e3) : void 0;
22547
+ const ttl = optionalPositiveSeconds("ttl", providerOptions?.ttl ?? timeoutSeconds ?? config.ttl);
22547
22548
  const hardTtl = optionalPositiveSeconds(
22548
22549
  "hardTtl",
22549
- providerOptions?.hardTtl ?? config.hardTtl
22550
+ providerOptions?.hardTtl ?? timeoutSeconds ?? config.hardTtl
22550
22551
  );
22551
22552
  const autoResume = providerOptions?.autoResume;
22552
22553
  if (autoResume !== void 0 && typeof autoResume !== "boolean") {