@ricsam/isolate-client 0.1.25 → 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.
- package/dist/cjs/connection.cjs +5 -3
- package/dist/cjs/connection.cjs.map +3 -3
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/package.json +1 -1
- package/dist/mjs/connection.mjs +5 -3
- package/dist/mjs/connection.mjs.map +3 -3
- package/dist/mjs/index.mjs.map +1 -1
- package/dist/mjs/package.json +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/types.d.ts +7 -1
- package/package.json +3 -3
package/dist/cjs/connection.cjs
CHANGED
|
@@ -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=
|
|
1792
|
+
//# debugId=27BD5708C6169B9164756E2164756E21
|