electrobun 0.0.6 → 0.0.8
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/api/bun/index.js +9 -2
- package/dist/api/bun/index.js.map +4 -4
- package/dist/webview +0 -0
- package/package.json +1 -1
package/dist/api/bun/index.js
CHANGED
|
@@ -8700,7 +8700,13 @@ var createStdioTransport = function(proc) {
|
|
|
8700
8700
|
send(message) {
|
|
8701
8701
|
try {
|
|
8702
8702
|
const messageString = JSON.stringify(message) + "\n";
|
|
8703
|
-
|
|
8703
|
+
let offset = 0;
|
|
8704
|
+
while (offset < messageString.length) {
|
|
8705
|
+
const chunk = messageString.slice(offset, offset + CHUNK_SIZE2);
|
|
8706
|
+
inStream.write(chunk);
|
|
8707
|
+
offset += CHUNK_SIZE2;
|
|
8708
|
+
}
|
|
8709
|
+
inStream.write("\n");
|
|
8704
8710
|
} catch (error) {
|
|
8705
8711
|
console.error("bun: failed to serialize message to zig", error);
|
|
8706
8712
|
}
|
|
@@ -8739,6 +8745,7 @@ var createStdioTransport = function(proc) {
|
|
|
8739
8745
|
}
|
|
8740
8746
|
};
|
|
8741
8747
|
};
|
|
8748
|
+
var CHUNK_SIZE2 = 4096;
|
|
8742
8749
|
var webviewBinaryPath = join3("native", "webview");
|
|
8743
8750
|
var hash2 = await Updater.localInfo.hash();
|
|
8744
8751
|
var randomId2 = Math.random().toString(36).substring(7);
|
|
@@ -9244,4 +9251,4 @@ export {
|
|
|
9244
9251
|
exports_ApplicationMenu as ApplicationMenu
|
|
9245
9252
|
};
|
|
9246
9253
|
|
|
9247
|
-
//# debugId=
|
|
9254
|
+
//# debugId=6C7DA4A50F37B3BE64756e2164756e21
|