@kubb/studio 5.3.0 → 5.3.2
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.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/protocol.cjs +3 -3
- package/dist/protocol.cjs.map +1 -1
- package/dist/protocol.d.ts +4 -4
- package/dist/protocol.js +3 -3
- package/dist/protocol.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __name } from "./rolldown-runtime-CRm0XQPb.js";
|
|
2
|
-
import { createJobId, isCommandMessage, isDisconnectMessage,
|
|
2
|
+
import { createJobId, isCommandMessage, isDisconnectMessage, isStudioPongMessage, isStudioReadyMessage } from "./protocol.js";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import { styleText } from "node:util";
|
|
5
5
|
import process$1 from "node:process";
|
|
@@ -646,7 +646,7 @@ async function createAgent({ studioUrl, token, name, machineToken }) {
|
|
|
646
646
|
}
|
|
647
647
|
//#endregion
|
|
648
648
|
//#region package.json
|
|
649
|
-
var version = "5.3.
|
|
649
|
+
var version = "5.3.2";
|
|
650
650
|
//#endregion
|
|
651
651
|
//#region src/hooks.ts
|
|
652
652
|
/**
|
|
@@ -2153,7 +2153,7 @@ var StudioSession = class {
|
|
|
2153
2153
|
#onMessage = async (message) => {
|
|
2154
2154
|
try {
|
|
2155
2155
|
const data = JSON.parse(message.data);
|
|
2156
|
-
if (
|
|
2156
|
+
if (isStudioPongMessage(data)) {
|
|
2157
2157
|
this.#lastPongAt = Date.now();
|
|
2158
2158
|
return;
|
|
2159
2159
|
}
|