@ricsam/isolate-client 0.1.24 → 0.1.26

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.
@@ -1078,7 +1078,7 @@ async function createRuntime(state, options = {}, namespaceId) {
1078
1078
  payload
1079
1079
  });
1080
1080
  },
1081
- dispose: async () => {
1081
+ dispose: async (options2) => {
1082
1082
  for (const cleanup of pageListenerCleanups) {
1083
1083
  cleanup();
1084
1084
  }
@@ -1101,7 +1101,9 @@ async function createRuntime(state, options = {}, namespaceId) {
1101
1101
  const req = {
1102
1102
  type: import_isolate_protocol.MessageType.DISPOSE_RUNTIME,
1103
1103
  requestId: reqId,
1104
- isolateId
1104
+ isolateId,
1105
+ hard: options2?.hard === true ? true : undefined,
1106
+ reason: typeof options2?.reason === "string" && options2.reason.length > 0 ? options2.reason : undefined
1105
1107
  };
1106
1108
  try {
1107
1109
  await sendRequest(state, req);
@@ -1787,4 +1789,4 @@ function handleClientWsClose(isolateId, payload, state) {
1787
1789
  }
1788
1790
  }
1789
1791
 
1790
- //# debugId=D533D4D673D0E39164756E2164756E21
1792
+ //# debugId=27BD5708C6169B9164756E2164756E21