@rstreamlabs/webtty 1.1.0 → 1.3.0
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.js +51 -51
- package/dist/index.mjs +51 -51
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -42,11 +42,11 @@ var $util = $protobuf.util;
|
|
|
42
42
|
var $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {});
|
|
43
43
|
var rstream = $root.rstream = (() => {
|
|
44
44
|
const rstream2 = {};
|
|
45
|
-
rstream2.webtty = function() {
|
|
45
|
+
rstream2.webtty = (function() {
|
|
46
46
|
const webtty = {};
|
|
47
|
-
webtty.protobuf = function() {
|
|
47
|
+
webtty.protobuf = (function() {
|
|
48
48
|
const protobuf = {};
|
|
49
|
-
protobuf.Options = function() {
|
|
49
|
+
protobuf.Options = (function() {
|
|
50
50
|
function Options(properties) {
|
|
51
51
|
if (properties) {
|
|
52
52
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -172,8 +172,8 @@ var rstream = $root.rstream = (() => {
|
|
|
172
172
|
return typeUrlPrefix + "/rstream.webtty.protobuf.Options";
|
|
173
173
|
};
|
|
174
174
|
return Options;
|
|
175
|
-
}();
|
|
176
|
-
protobuf.Environment = function() {
|
|
175
|
+
})();
|
|
176
|
+
protobuf.Environment = (function() {
|
|
177
177
|
function Environment(properties) {
|
|
178
178
|
if (properties) {
|
|
179
179
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -280,8 +280,8 @@ var rstream = $root.rstream = (() => {
|
|
|
280
280
|
return typeUrlPrefix + "/rstream.webtty.protobuf.Environment";
|
|
281
281
|
};
|
|
282
282
|
return Environment;
|
|
283
|
-
}();
|
|
284
|
-
protobuf.Username = function() {
|
|
283
|
+
})();
|
|
284
|
+
protobuf.Username = (function() {
|
|
285
285
|
function Username(properties) {
|
|
286
286
|
if (properties) {
|
|
287
287
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -400,8 +400,8 @@ var rstream = $root.rstream = (() => {
|
|
|
400
400
|
return typeUrlPrefix + "/rstream.webtty.protobuf.Username";
|
|
401
401
|
};
|
|
402
402
|
return Username;
|
|
403
|
-
}();
|
|
404
|
-
protobuf.Workdir = function() {
|
|
403
|
+
})();
|
|
404
|
+
protobuf.Workdir = (function() {
|
|
405
405
|
function Workdir(properties) {
|
|
406
406
|
if (properties) {
|
|
407
407
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -488,8 +488,8 @@ var rstream = $root.rstream = (() => {
|
|
|
488
488
|
return typeUrlPrefix + "/rstream.webtty.protobuf.Workdir";
|
|
489
489
|
};
|
|
490
490
|
return Workdir;
|
|
491
|
-
}();
|
|
492
|
-
protobuf.Config = function() {
|
|
491
|
+
})();
|
|
492
|
+
protobuf.Config = (function() {
|
|
493
493
|
function Config(properties) {
|
|
494
494
|
this.cmdArgs = [];
|
|
495
495
|
this.envVars = [];
|
|
@@ -702,8 +702,8 @@ var rstream = $root.rstream = (() => {
|
|
|
702
702
|
return typeUrlPrefix + "/rstream.webtty.protobuf.Config";
|
|
703
703
|
};
|
|
704
704
|
return Config;
|
|
705
|
-
}();
|
|
706
|
-
protobuf.Open = function() {
|
|
705
|
+
})();
|
|
706
|
+
protobuf.Open = (function() {
|
|
707
707
|
function Open(properties) {
|
|
708
708
|
if (properties) {
|
|
709
709
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -794,8 +794,8 @@ var rstream = $root.rstream = (() => {
|
|
|
794
794
|
return typeUrlPrefix + "/rstream.webtty.protobuf.Open";
|
|
795
795
|
};
|
|
796
796
|
return Open;
|
|
797
|
-
}();
|
|
798
|
-
protobuf.Ack = function() {
|
|
797
|
+
})();
|
|
798
|
+
protobuf.Ack = (function() {
|
|
799
799
|
function Ack(properties) {
|
|
800
800
|
if (properties) {
|
|
801
801
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -858,8 +858,8 @@ var rstream = $root.rstream = (() => {
|
|
|
858
858
|
return typeUrlPrefix + "/rstream.webtty.protobuf.Ack";
|
|
859
859
|
};
|
|
860
860
|
return Ack;
|
|
861
|
-
}();
|
|
862
|
-
protobuf.Error = function() {
|
|
861
|
+
})();
|
|
862
|
+
protobuf.Error = (function() {
|
|
863
863
|
function Error2(properties) {
|
|
864
864
|
if (properties) {
|
|
865
865
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -867,18 +867,18 @@ var rstream = $root.rstream = (() => {
|
|
|
867
867
|
this[keys[i]] = properties[keys[i]];
|
|
868
868
|
}
|
|
869
869
|
}
|
|
870
|
-
Error2.prototype.
|
|
870
|
+
Error2.prototype.msg = "";
|
|
871
871
|
Error2.create = function create(properties) {
|
|
872
872
|
return new Error2(properties);
|
|
873
873
|
};
|
|
874
874
|
Error2.encode = function encode(message, writer) {
|
|
875
875
|
if (!writer)
|
|
876
876
|
writer = $Writer.create();
|
|
877
|
-
if (message.
|
|
877
|
+
if (message.msg != null && Object.hasOwnProperty.call(message, "msg"))
|
|
878
878
|
writer.uint32(
|
|
879
|
-
/* id 1, wireType
|
|
880
|
-
|
|
881
|
-
).
|
|
879
|
+
/* id 1, wireType 2 =*/
|
|
880
|
+
10
|
|
881
|
+
).string(message.msg);
|
|
882
882
|
return writer;
|
|
883
883
|
};
|
|
884
884
|
Error2.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -894,7 +894,7 @@ var rstream = $root.rstream = (() => {
|
|
|
894
894
|
break;
|
|
895
895
|
switch (tag >>> 3) {
|
|
896
896
|
case 1: {
|
|
897
|
-
message.
|
|
897
|
+
message.msg = reader.string();
|
|
898
898
|
break;
|
|
899
899
|
}
|
|
900
900
|
default:
|
|
@@ -912,9 +912,9 @@ var rstream = $root.rstream = (() => {
|
|
|
912
912
|
Error2.verify = function verify(message) {
|
|
913
913
|
if (typeof message !== "object" || message === null)
|
|
914
914
|
return "object expected";
|
|
915
|
-
if (message.
|
|
916
|
-
if (!$util.
|
|
917
|
-
return "
|
|
915
|
+
if (message.msg != null && message.hasOwnProperty("msg")) {
|
|
916
|
+
if (!$util.isString(message.msg))
|
|
917
|
+
return "msg: string expected";
|
|
918
918
|
}
|
|
919
919
|
return null;
|
|
920
920
|
};
|
|
@@ -922,8 +922,8 @@ var rstream = $root.rstream = (() => {
|
|
|
922
922
|
if (object instanceof $root.rstream.webtty.protobuf.Error)
|
|
923
923
|
return object;
|
|
924
924
|
let message = new $root.rstream.webtty.protobuf.Error();
|
|
925
|
-
if (object.
|
|
926
|
-
message.
|
|
925
|
+
if (object.msg != null)
|
|
926
|
+
message.msg = String(object.msg);
|
|
927
927
|
return message;
|
|
928
928
|
};
|
|
929
929
|
Error2.toObject = function toObject(message, options) {
|
|
@@ -931,9 +931,9 @@ var rstream = $root.rstream = (() => {
|
|
|
931
931
|
options = {};
|
|
932
932
|
let object = {};
|
|
933
933
|
if (options.defaults)
|
|
934
|
-
object.
|
|
935
|
-
if (message.
|
|
936
|
-
object.
|
|
934
|
+
object.msg = "";
|
|
935
|
+
if (message.msg != null && message.hasOwnProperty("msg"))
|
|
936
|
+
object.msg = message.msg;
|
|
937
937
|
return object;
|
|
938
938
|
};
|
|
939
939
|
Error2.prototype.toJSON = function toJSON() {
|
|
@@ -946,8 +946,8 @@ var rstream = $root.rstream = (() => {
|
|
|
946
946
|
return typeUrlPrefix + "/rstream.webtty.protobuf.Error";
|
|
947
947
|
};
|
|
948
948
|
return Error2;
|
|
949
|
-
}();
|
|
950
|
-
protobuf.Close = function() {
|
|
949
|
+
})();
|
|
950
|
+
protobuf.Close = (function() {
|
|
951
951
|
function Close(properties) {
|
|
952
952
|
if (properties) {
|
|
953
953
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -1034,8 +1034,8 @@ var rstream = $root.rstream = (() => {
|
|
|
1034
1034
|
return typeUrlPrefix + "/rstream.webtty.protobuf.Close";
|
|
1035
1035
|
};
|
|
1036
1036
|
return Close;
|
|
1037
|
-
}();
|
|
1038
|
-
protobuf.EndOfStream = function() {
|
|
1037
|
+
})();
|
|
1038
|
+
protobuf.EndOfStream = (function() {
|
|
1039
1039
|
function EndOfStream(properties) {
|
|
1040
1040
|
if (properties) {
|
|
1041
1041
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -1098,8 +1098,8 @@ var rstream = $root.rstream = (() => {
|
|
|
1098
1098
|
return typeUrlPrefix + "/rstream.webtty.protobuf.EndOfStream";
|
|
1099
1099
|
};
|
|
1100
1100
|
return EndOfStream;
|
|
1101
|
-
}();
|
|
1102
|
-
protobuf.Data = function() {
|
|
1101
|
+
})();
|
|
1102
|
+
protobuf.Data = (function() {
|
|
1103
1103
|
function Data(properties) {
|
|
1104
1104
|
if (properties) {
|
|
1105
1105
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -1270,16 +1270,16 @@ var rstream = $root.rstream = (() => {
|
|
|
1270
1270
|
}
|
|
1271
1271
|
return typeUrlPrefix + "/rstream.webtty.protobuf.Data";
|
|
1272
1272
|
};
|
|
1273
|
-
Data.Type = function() {
|
|
1273
|
+
Data.Type = (function() {
|
|
1274
1274
|
const valuesById = {}, values = Object.create(valuesById);
|
|
1275
1275
|
values[valuesById[0] = "TYPE_STDIN"] = 0;
|
|
1276
1276
|
values[valuesById[1] = "TYPE_STDOUT"] = 1;
|
|
1277
1277
|
values[valuesById[2] = "TYPE_STDERR"] = 2;
|
|
1278
1278
|
return values;
|
|
1279
|
-
}();
|
|
1279
|
+
})();
|
|
1280
1280
|
return Data;
|
|
1281
|
-
}();
|
|
1282
|
-
protobuf.TerminalSize = function() {
|
|
1281
|
+
})();
|
|
1282
|
+
protobuf.TerminalSize = (function() {
|
|
1283
1283
|
function TerminalSize(properties) {
|
|
1284
1284
|
if (properties) {
|
|
1285
1285
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -1424,8 +1424,8 @@ var rstream = $root.rstream = (() => {
|
|
|
1424
1424
|
return typeUrlPrefix + "/rstream.webtty.protobuf.TerminalSize";
|
|
1425
1425
|
};
|
|
1426
1426
|
return TerminalSize;
|
|
1427
|
-
}();
|
|
1428
|
-
protobuf.Parameter = function() {
|
|
1427
|
+
})();
|
|
1428
|
+
protobuf.Parameter = (function() {
|
|
1429
1429
|
function Parameter(properties) {
|
|
1430
1430
|
if (properties) {
|
|
1431
1431
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -1526,8 +1526,8 @@ var rstream = $root.rstream = (() => {
|
|
|
1526
1526
|
return typeUrlPrefix + "/rstream.webtty.protobuf.Parameter";
|
|
1527
1527
|
};
|
|
1528
1528
|
return Parameter;
|
|
1529
|
-
}();
|
|
1530
|
-
protobuf.Heartbeat = function() {
|
|
1529
|
+
})();
|
|
1530
|
+
protobuf.Heartbeat = (function() {
|
|
1531
1531
|
function Heartbeat(properties) {
|
|
1532
1532
|
if (properties) {
|
|
1533
1533
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -1590,8 +1590,8 @@ var rstream = $root.rstream = (() => {
|
|
|
1590
1590
|
return typeUrlPrefix + "/rstream.webtty.protobuf.Heartbeat";
|
|
1591
1591
|
};
|
|
1592
1592
|
return Heartbeat;
|
|
1593
|
-
}();
|
|
1594
|
-
protobuf.Message = function() {
|
|
1593
|
+
})();
|
|
1594
|
+
protobuf.Message = (function() {
|
|
1595
1595
|
function Message(properties) {
|
|
1596
1596
|
if (properties) {
|
|
1597
1597
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -1872,11 +1872,11 @@ var rstream = $root.rstream = (() => {
|
|
|
1872
1872
|
return typeUrlPrefix + "/rstream.webtty.protobuf.Message";
|
|
1873
1873
|
};
|
|
1874
1874
|
return Message;
|
|
1875
|
-
}();
|
|
1875
|
+
})();
|
|
1876
1876
|
return protobuf;
|
|
1877
|
-
}();
|
|
1877
|
+
})();
|
|
1878
1878
|
return webtty;
|
|
1879
|
-
}();
|
|
1879
|
+
})();
|
|
1880
1880
|
return rstream2;
|
|
1881
1881
|
})();
|
|
1882
1882
|
|
|
@@ -2040,7 +2040,7 @@ var WebTTY = class {
|
|
|
2040
2040
|
new Uint8Array(evt.data)
|
|
2041
2041
|
);
|
|
2042
2042
|
if (message.error) {
|
|
2043
|
-
this.close(`Server error
|
|
2043
|
+
this.close(`Server error (${message.error.msg})`);
|
|
2044
2044
|
} else if (message.ack) {
|
|
2045
2045
|
if (this.connectionState === "connecting") {
|
|
2046
2046
|
this.connectionState = "connected";
|
package/dist/index.mjs
CHANGED
|
@@ -6,11 +6,11 @@ var $util = $protobuf.util;
|
|
|
6
6
|
var $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {});
|
|
7
7
|
var rstream = $root.rstream = (() => {
|
|
8
8
|
const rstream2 = {};
|
|
9
|
-
rstream2.webtty = function() {
|
|
9
|
+
rstream2.webtty = (function() {
|
|
10
10
|
const webtty = {};
|
|
11
|
-
webtty.protobuf = function() {
|
|
11
|
+
webtty.protobuf = (function() {
|
|
12
12
|
const protobuf = {};
|
|
13
|
-
protobuf.Options = function() {
|
|
13
|
+
protobuf.Options = (function() {
|
|
14
14
|
function Options(properties) {
|
|
15
15
|
if (properties) {
|
|
16
16
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -136,8 +136,8 @@ var rstream = $root.rstream = (() => {
|
|
|
136
136
|
return typeUrlPrefix + "/rstream.webtty.protobuf.Options";
|
|
137
137
|
};
|
|
138
138
|
return Options;
|
|
139
|
-
}();
|
|
140
|
-
protobuf.Environment = function() {
|
|
139
|
+
})();
|
|
140
|
+
protobuf.Environment = (function() {
|
|
141
141
|
function Environment(properties) {
|
|
142
142
|
if (properties) {
|
|
143
143
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -244,8 +244,8 @@ var rstream = $root.rstream = (() => {
|
|
|
244
244
|
return typeUrlPrefix + "/rstream.webtty.protobuf.Environment";
|
|
245
245
|
};
|
|
246
246
|
return Environment;
|
|
247
|
-
}();
|
|
248
|
-
protobuf.Username = function() {
|
|
247
|
+
})();
|
|
248
|
+
protobuf.Username = (function() {
|
|
249
249
|
function Username(properties) {
|
|
250
250
|
if (properties) {
|
|
251
251
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -364,8 +364,8 @@ var rstream = $root.rstream = (() => {
|
|
|
364
364
|
return typeUrlPrefix + "/rstream.webtty.protobuf.Username";
|
|
365
365
|
};
|
|
366
366
|
return Username;
|
|
367
|
-
}();
|
|
368
|
-
protobuf.Workdir = function() {
|
|
367
|
+
})();
|
|
368
|
+
protobuf.Workdir = (function() {
|
|
369
369
|
function Workdir(properties) {
|
|
370
370
|
if (properties) {
|
|
371
371
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -452,8 +452,8 @@ var rstream = $root.rstream = (() => {
|
|
|
452
452
|
return typeUrlPrefix + "/rstream.webtty.protobuf.Workdir";
|
|
453
453
|
};
|
|
454
454
|
return Workdir;
|
|
455
|
-
}();
|
|
456
|
-
protobuf.Config = function() {
|
|
455
|
+
})();
|
|
456
|
+
protobuf.Config = (function() {
|
|
457
457
|
function Config(properties) {
|
|
458
458
|
this.cmdArgs = [];
|
|
459
459
|
this.envVars = [];
|
|
@@ -666,8 +666,8 @@ var rstream = $root.rstream = (() => {
|
|
|
666
666
|
return typeUrlPrefix + "/rstream.webtty.protobuf.Config";
|
|
667
667
|
};
|
|
668
668
|
return Config;
|
|
669
|
-
}();
|
|
670
|
-
protobuf.Open = function() {
|
|
669
|
+
})();
|
|
670
|
+
protobuf.Open = (function() {
|
|
671
671
|
function Open(properties) {
|
|
672
672
|
if (properties) {
|
|
673
673
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -758,8 +758,8 @@ var rstream = $root.rstream = (() => {
|
|
|
758
758
|
return typeUrlPrefix + "/rstream.webtty.protobuf.Open";
|
|
759
759
|
};
|
|
760
760
|
return Open;
|
|
761
|
-
}();
|
|
762
|
-
protobuf.Ack = function() {
|
|
761
|
+
})();
|
|
762
|
+
protobuf.Ack = (function() {
|
|
763
763
|
function Ack(properties) {
|
|
764
764
|
if (properties) {
|
|
765
765
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -822,8 +822,8 @@ var rstream = $root.rstream = (() => {
|
|
|
822
822
|
return typeUrlPrefix + "/rstream.webtty.protobuf.Ack";
|
|
823
823
|
};
|
|
824
824
|
return Ack;
|
|
825
|
-
}();
|
|
826
|
-
protobuf.Error = function() {
|
|
825
|
+
})();
|
|
826
|
+
protobuf.Error = (function() {
|
|
827
827
|
function Error2(properties) {
|
|
828
828
|
if (properties) {
|
|
829
829
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -831,18 +831,18 @@ var rstream = $root.rstream = (() => {
|
|
|
831
831
|
this[keys[i]] = properties[keys[i]];
|
|
832
832
|
}
|
|
833
833
|
}
|
|
834
|
-
Error2.prototype.
|
|
834
|
+
Error2.prototype.msg = "";
|
|
835
835
|
Error2.create = function create(properties) {
|
|
836
836
|
return new Error2(properties);
|
|
837
837
|
};
|
|
838
838
|
Error2.encode = function encode(message, writer) {
|
|
839
839
|
if (!writer)
|
|
840
840
|
writer = $Writer.create();
|
|
841
|
-
if (message.
|
|
841
|
+
if (message.msg != null && Object.hasOwnProperty.call(message, "msg"))
|
|
842
842
|
writer.uint32(
|
|
843
|
-
/* id 1, wireType
|
|
844
|
-
|
|
845
|
-
).
|
|
843
|
+
/* id 1, wireType 2 =*/
|
|
844
|
+
10
|
|
845
|
+
).string(message.msg);
|
|
846
846
|
return writer;
|
|
847
847
|
};
|
|
848
848
|
Error2.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -858,7 +858,7 @@ var rstream = $root.rstream = (() => {
|
|
|
858
858
|
break;
|
|
859
859
|
switch (tag >>> 3) {
|
|
860
860
|
case 1: {
|
|
861
|
-
message.
|
|
861
|
+
message.msg = reader.string();
|
|
862
862
|
break;
|
|
863
863
|
}
|
|
864
864
|
default:
|
|
@@ -876,9 +876,9 @@ var rstream = $root.rstream = (() => {
|
|
|
876
876
|
Error2.verify = function verify(message) {
|
|
877
877
|
if (typeof message !== "object" || message === null)
|
|
878
878
|
return "object expected";
|
|
879
|
-
if (message.
|
|
880
|
-
if (!$util.
|
|
881
|
-
return "
|
|
879
|
+
if (message.msg != null && message.hasOwnProperty("msg")) {
|
|
880
|
+
if (!$util.isString(message.msg))
|
|
881
|
+
return "msg: string expected";
|
|
882
882
|
}
|
|
883
883
|
return null;
|
|
884
884
|
};
|
|
@@ -886,8 +886,8 @@ var rstream = $root.rstream = (() => {
|
|
|
886
886
|
if (object instanceof $root.rstream.webtty.protobuf.Error)
|
|
887
887
|
return object;
|
|
888
888
|
let message = new $root.rstream.webtty.protobuf.Error();
|
|
889
|
-
if (object.
|
|
890
|
-
message.
|
|
889
|
+
if (object.msg != null)
|
|
890
|
+
message.msg = String(object.msg);
|
|
891
891
|
return message;
|
|
892
892
|
};
|
|
893
893
|
Error2.toObject = function toObject(message, options) {
|
|
@@ -895,9 +895,9 @@ var rstream = $root.rstream = (() => {
|
|
|
895
895
|
options = {};
|
|
896
896
|
let object = {};
|
|
897
897
|
if (options.defaults)
|
|
898
|
-
object.
|
|
899
|
-
if (message.
|
|
900
|
-
object.
|
|
898
|
+
object.msg = "";
|
|
899
|
+
if (message.msg != null && message.hasOwnProperty("msg"))
|
|
900
|
+
object.msg = message.msg;
|
|
901
901
|
return object;
|
|
902
902
|
};
|
|
903
903
|
Error2.prototype.toJSON = function toJSON() {
|
|
@@ -910,8 +910,8 @@ var rstream = $root.rstream = (() => {
|
|
|
910
910
|
return typeUrlPrefix + "/rstream.webtty.protobuf.Error";
|
|
911
911
|
};
|
|
912
912
|
return Error2;
|
|
913
|
-
}();
|
|
914
|
-
protobuf.Close = function() {
|
|
913
|
+
})();
|
|
914
|
+
protobuf.Close = (function() {
|
|
915
915
|
function Close(properties) {
|
|
916
916
|
if (properties) {
|
|
917
917
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -998,8 +998,8 @@ var rstream = $root.rstream = (() => {
|
|
|
998
998
|
return typeUrlPrefix + "/rstream.webtty.protobuf.Close";
|
|
999
999
|
};
|
|
1000
1000
|
return Close;
|
|
1001
|
-
}();
|
|
1002
|
-
protobuf.EndOfStream = function() {
|
|
1001
|
+
})();
|
|
1002
|
+
protobuf.EndOfStream = (function() {
|
|
1003
1003
|
function EndOfStream(properties) {
|
|
1004
1004
|
if (properties) {
|
|
1005
1005
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -1062,8 +1062,8 @@ var rstream = $root.rstream = (() => {
|
|
|
1062
1062
|
return typeUrlPrefix + "/rstream.webtty.protobuf.EndOfStream";
|
|
1063
1063
|
};
|
|
1064
1064
|
return EndOfStream;
|
|
1065
|
-
}();
|
|
1066
|
-
protobuf.Data = function() {
|
|
1065
|
+
})();
|
|
1066
|
+
protobuf.Data = (function() {
|
|
1067
1067
|
function Data(properties) {
|
|
1068
1068
|
if (properties) {
|
|
1069
1069
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -1234,16 +1234,16 @@ var rstream = $root.rstream = (() => {
|
|
|
1234
1234
|
}
|
|
1235
1235
|
return typeUrlPrefix + "/rstream.webtty.protobuf.Data";
|
|
1236
1236
|
};
|
|
1237
|
-
Data.Type = function() {
|
|
1237
|
+
Data.Type = (function() {
|
|
1238
1238
|
const valuesById = {}, values = Object.create(valuesById);
|
|
1239
1239
|
values[valuesById[0] = "TYPE_STDIN"] = 0;
|
|
1240
1240
|
values[valuesById[1] = "TYPE_STDOUT"] = 1;
|
|
1241
1241
|
values[valuesById[2] = "TYPE_STDERR"] = 2;
|
|
1242
1242
|
return values;
|
|
1243
|
-
}();
|
|
1243
|
+
})();
|
|
1244
1244
|
return Data;
|
|
1245
|
-
}();
|
|
1246
|
-
protobuf.TerminalSize = function() {
|
|
1245
|
+
})();
|
|
1246
|
+
protobuf.TerminalSize = (function() {
|
|
1247
1247
|
function TerminalSize(properties) {
|
|
1248
1248
|
if (properties) {
|
|
1249
1249
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -1388,8 +1388,8 @@ var rstream = $root.rstream = (() => {
|
|
|
1388
1388
|
return typeUrlPrefix + "/rstream.webtty.protobuf.TerminalSize";
|
|
1389
1389
|
};
|
|
1390
1390
|
return TerminalSize;
|
|
1391
|
-
}();
|
|
1392
|
-
protobuf.Parameter = function() {
|
|
1391
|
+
})();
|
|
1392
|
+
protobuf.Parameter = (function() {
|
|
1393
1393
|
function Parameter(properties) {
|
|
1394
1394
|
if (properties) {
|
|
1395
1395
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -1490,8 +1490,8 @@ var rstream = $root.rstream = (() => {
|
|
|
1490
1490
|
return typeUrlPrefix + "/rstream.webtty.protobuf.Parameter";
|
|
1491
1491
|
};
|
|
1492
1492
|
return Parameter;
|
|
1493
|
-
}();
|
|
1494
|
-
protobuf.Heartbeat = function() {
|
|
1493
|
+
})();
|
|
1494
|
+
protobuf.Heartbeat = (function() {
|
|
1495
1495
|
function Heartbeat(properties) {
|
|
1496
1496
|
if (properties) {
|
|
1497
1497
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -1554,8 +1554,8 @@ var rstream = $root.rstream = (() => {
|
|
|
1554
1554
|
return typeUrlPrefix + "/rstream.webtty.protobuf.Heartbeat";
|
|
1555
1555
|
};
|
|
1556
1556
|
return Heartbeat;
|
|
1557
|
-
}();
|
|
1558
|
-
protobuf.Message = function() {
|
|
1557
|
+
})();
|
|
1558
|
+
protobuf.Message = (function() {
|
|
1559
1559
|
function Message(properties) {
|
|
1560
1560
|
if (properties) {
|
|
1561
1561
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -1836,11 +1836,11 @@ var rstream = $root.rstream = (() => {
|
|
|
1836
1836
|
return typeUrlPrefix + "/rstream.webtty.protobuf.Message";
|
|
1837
1837
|
};
|
|
1838
1838
|
return Message;
|
|
1839
|
-
}();
|
|
1839
|
+
})();
|
|
1840
1840
|
return protobuf;
|
|
1841
|
-
}();
|
|
1841
|
+
})();
|
|
1842
1842
|
return webtty;
|
|
1843
|
-
}();
|
|
1843
|
+
})();
|
|
1844
1844
|
return rstream2;
|
|
1845
1845
|
})();
|
|
1846
1846
|
|
|
@@ -2004,7 +2004,7 @@ var WebTTY = class {
|
|
|
2004
2004
|
new Uint8Array(evt.data)
|
|
2005
2005
|
);
|
|
2006
2006
|
if (message.error) {
|
|
2007
|
-
this.close(`Server error
|
|
2007
|
+
this.close(`Server error (${message.error.msg})`);
|
|
2008
2008
|
} else if (message.ack) {
|
|
2009
2009
|
if (this.connectionState === "connecting") {
|
|
2010
2010
|
this.connectionState = "connected";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rstreamlabs/webtty",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Client-side implementation of the rstream WebTTY protocol.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -19,17 +19,17 @@
|
|
|
19
19
|
"type-check": "tsc --noEmit"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@turbo/gen": "^2.
|
|
23
|
-
"@types/node": "^
|
|
22
|
+
"@turbo/gen": "^2.5.6",
|
|
23
|
+
"@types/node": "^24",
|
|
24
24
|
"eslint-config": "*",
|
|
25
|
-
"eslint": "9.
|
|
26
|
-
"protobufjs-cli": "^1.
|
|
27
|
-
"tsup": "^8.
|
|
25
|
+
"eslint": "9.35.0",
|
|
26
|
+
"protobufjs-cli": "^1.2.0",
|
|
27
|
+
"tsup": "^8.5.0",
|
|
28
28
|
"typescript-config": "*",
|
|
29
|
-
"typescript": "5.
|
|
29
|
+
"typescript": "5.9.2"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"protobufjs": "^7.4
|
|
32
|
+
"protobufjs": "^7.5.4"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|