@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.
- 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/index.cjs.map
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.ts"],
|
|
4
4
|
"sourcesContent": [
|
|
5
|
-
"/**\n * @ricsam/isolate-client\n *\n * Client library for connecting to the isolate daemon.\n * Works with Bun, Node.js, and other JavaScript runtimes.\n */\n\nexport { connect, isBenignDisposeError } from \"./connection.cjs\";\nexport type {\n ConnectOptions,\n DaemonConnection,\n Namespace,\n RuntimeOptions,\n RemoteRuntime,\n RemoteFetchHandle,\n RemoteTimersHandle,\n RemoteConsoleHandle,\n RemoteTestEnvironmentHandle,\n RemotePlaywrightHandle,\n DispatchOptions,\n ConsoleCallbacks,\n FetchCallback,\n FileSystemCallbacks,\n PlaywrightOptions,\n PlaywrightEvent,\n TestEnvironmentOptions,\n RunResults,\n TestResult,\n TestInfo,\n TestError,\n TestEvent,\n SuiteInfo,\n SuiteResult,\n CollectedData,\n ConsoleEntry,\n CustomFunctions,\n UpgradeRequest,\n WebSocketCommand,\n} from \"./types.cjs\";\n"
|
|
5
|
+
"/**\n * @ricsam/isolate-client\n *\n * Client library for connecting to the isolate daemon.\n * Works with Bun, Node.js, and other JavaScript runtimes.\n */\n\nexport { connect, isBenignDisposeError } from \"./connection.cjs\";\nexport type {\n ConnectOptions,\n DaemonConnection,\n Namespace,\n RuntimeOptions,\n RemoteRuntime,\n RemoteFetchHandle,\n RemoteTimersHandle,\n RemoteConsoleHandle,\n RemoteTestEnvironmentHandle,\n RemotePlaywrightHandle,\n DisposeRuntimeOptions,\n DispatchOptions,\n ConsoleCallbacks,\n FetchCallback,\n FileSystemCallbacks,\n PlaywrightOptions,\n PlaywrightEvent,\n TestEnvironmentOptions,\n RunResults,\n TestResult,\n TestInfo,\n TestError,\n TestEvent,\n SuiteInfo,\n SuiteResult,\n CollectedData,\n ConsoleEntry,\n CustomFunctions,\n UpgradeRequest,\n WebSocketCommand,\n} from \"./types.cjs\";\n"
|
|
6
6
|
],
|
|
7
7
|
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAO8C,IAA9C;",
|
|
8
8
|
"debugId": "DCD79312172BA81064756E2164756E21",
|
package/dist/cjs/package.json
CHANGED
package/dist/mjs/connection.mjs
CHANGED
|
@@ -1027,7 +1027,7 @@ async function createRuntime(state, options = {}, namespaceId) {
|
|
|
1027
1027
|
payload
|
|
1028
1028
|
});
|
|
1029
1029
|
},
|
|
1030
|
-
dispose: async () => {
|
|
1030
|
+
dispose: async (options2) => {
|
|
1031
1031
|
for (const cleanup of pageListenerCleanups) {
|
|
1032
1032
|
cleanup();
|
|
1033
1033
|
}
|
|
@@ -1050,7 +1050,9 @@ async function createRuntime(state, options = {}, namespaceId) {
|
|
|
1050
1050
|
const req = {
|
|
1051
1051
|
type: MessageType.DISPOSE_RUNTIME,
|
|
1052
1052
|
requestId: reqId,
|
|
1053
|
-
isolateId
|
|
1053
|
+
isolateId,
|
|
1054
|
+
hard: options2?.hard === true ? true : undefined,
|
|
1055
|
+
reason: typeof options2?.reason === "string" && options2.reason.length > 0 ? options2.reason : undefined
|
|
1054
1056
|
};
|
|
1055
1057
|
try {
|
|
1056
1058
|
await sendRequest(state, req);
|
|
@@ -1740,4 +1742,4 @@ export {
|
|
|
1740
1742
|
connect
|
|
1741
1743
|
};
|
|
1742
1744
|
|
|
1743
|
-
//# debugId=
|
|
1745
|
+
//# debugId=743304E0653BD6EF64756E2164756E21
|