poe-code 12.0.9 → 12.0.10

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poe-code",
3
- "version": "12.0.9",
3
+ "version": "12.0.10",
4
4
  "description": "CLI tool to configure Poe API for developer workflows.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -18291,6 +18291,9 @@ function isCapturedException(value) {
18291
18291
  return typeof value === "object" && value !== null && capturedExceptionBrand in value;
18292
18292
  }
18293
18293
  function coerceThrownValue(reason, budget, stackFrames, span, sandbox = false) {
18294
+ if (reason instanceof HostCallResumabilityError) {
18295
+ throw reason;
18296
+ }
18294
18297
  if (isSubsetErrorValue(reason)) {
18295
18298
  attachErrorSpan(reason, readErrorSpan(reason) ?? span);
18296
18299
  return reason;
@@ -20779,9 +20782,13 @@ function own(value, key) {
20779
20782
 
20780
20783
  // packages/safe-js/src/interp/host-call.ts
20781
20784
  var HostCallResumabilityError = class extends Error {
20785
+ #nativeInstance = true;
20782
20786
  action;
20783
20787
  callId;
20784
20788
  lifecycle;
20789
+ static [Symbol.hasInstance](value) {
20790
+ return typeof value === "object" && value !== null && #nativeInstance in value && Function.prototype[Symbol.hasInstance].call(this, value);
20791
+ }
20785
20792
  constructor(record2, action, message) {
20786
20793
  super(message);
20787
20794
  this.name = "HostCallResumabilityError";
@@ -22516,6 +22523,9 @@ function executeHostCall(record2, restored, invoke, stackFrames, options, span,
22516
22523
  try {
22517
22524
  result = invoke();
22518
22525
  } catch (error) {
22526
+ if (error instanceof HostCallResumabilityError) {
22527
+ throw error;
22528
+ }
22519
22529
  const reason = createHostErrorValue(error, stackFrames, options.budget, span);
22520
22530
  hostCalls.settle(record2, { status: "rejected", reason });
22521
22531
  throw error;
@@ -29751,4 +29761,4 @@ export {
29751
29761
  FileSnapshotBackend,
29752
29762
  run
29753
29763
  };
29754
- //# sourceMappingURL=chunk-4D75HUZZ.js.map
29764
+ //# sourceMappingURL=chunk-5TMXWUAL.js.map