@replit/protocol 0.3.62 → 0.4.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/main/index.d.ts +8 -1
- package/main/index.js +33 -3
- package/package.json +1 -1
package/main/index.d.ts
CHANGED
|
@@ -21804,6 +21804,9 @@ export namespace replit {
|
|
|
21804
21804
|
|
|
21805
21805
|
/** NixModule formatters */
|
|
21806
21806
|
formatters?: ((replit.goval.api.FormatterOption|replit.goval.api.IFormatterOption)[]|null);
|
|
21807
|
+
|
|
21808
|
+
/** NixModule displayVersion */
|
|
21809
|
+
displayVersion?: (string|null);
|
|
21807
21810
|
}
|
|
21808
21811
|
|
|
21809
21812
|
/** Represents a NixModule. */
|
|
@@ -21854,6 +21857,9 @@ export namespace replit {
|
|
|
21854
21857
|
/** NixModule formatters. */
|
|
21855
21858
|
public formatters: replit.goval.api.FormatterOption[];
|
|
21856
21859
|
|
|
21860
|
+
/** NixModule displayVersion. */
|
|
21861
|
+
public displayVersion: string;
|
|
21862
|
+
|
|
21857
21863
|
/**
|
|
21858
21864
|
* Creates a new NixModule instance using the specified properties.
|
|
21859
21865
|
* @param [properties] Properties to set
|
|
@@ -29471,7 +29477,8 @@ export namespace replit {
|
|
|
29471
29477
|
enum WireFormat {
|
|
29472
29478
|
PROTOBUF = 0,
|
|
29473
29479
|
JSON = 1,
|
|
29474
|
-
|
|
29480
|
+
MUXED = 2,
|
|
29481
|
+
RIVER = 3
|
|
29475
29482
|
}
|
|
29476
29483
|
|
|
29477
29484
|
/** Properties of a Presenced. */
|
package/main/index.js
CHANGED
|
@@ -55139,6 +55139,7 @@
|
|
|
55139
55139
|
* @property {string|null} [resolvedId] NixModule resolvedId
|
|
55140
55140
|
* @property {string|null} [referencedId] NixModule referencedId
|
|
55141
55141
|
* @property {Array.<replit.goval.api.FormatterOption|replit.goval.api.IFormatterOption>|null} [formatters] NixModule formatters
|
|
55142
|
+
* @property {string|null} [displayVersion] NixModule displayVersion
|
|
55142
55143
|
*/
|
|
55143
55144
|
|
|
55144
55145
|
/**
|
|
@@ -55265,6 +55266,14 @@
|
|
|
55265
55266
|
*/
|
|
55266
55267
|
NixModule.prototype.formatters = $util.emptyArray;
|
|
55267
55268
|
|
|
55269
|
+
/**
|
|
55270
|
+
* NixModule displayVersion.
|
|
55271
|
+
* @member {string} displayVersion
|
|
55272
|
+
* @memberof replit.goval.api.NixModule
|
|
55273
|
+
* @instance
|
|
55274
|
+
*/
|
|
55275
|
+
NixModule.prototype.displayVersion = "";
|
|
55276
|
+
|
|
55268
55277
|
/**
|
|
55269
55278
|
* Creates a new NixModule instance using the specified properties.
|
|
55270
55279
|
* @function create
|
|
@@ -55321,6 +55330,8 @@
|
|
|
55321
55330
|
if (message.formatters != null && message.formatters.length)
|
|
55322
55331
|
for (var i = 0; i < message.formatters.length; ++i)
|
|
55323
55332
|
$root.replit.goval.api.FormatterOption.encode(message.formatters[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
|
|
55333
|
+
if (message.displayVersion != null && Object.hasOwnProperty.call(message, "displayVersion"))
|
|
55334
|
+
writer.uint32(/* id 14, wireType 2 =*/114).string(message.displayVersion);
|
|
55324
55335
|
return writer;
|
|
55325
55336
|
};
|
|
55326
55337
|
|
|
@@ -55419,6 +55430,10 @@
|
|
|
55419
55430
|
message.formatters.push($root.replit.goval.api.FormatterOption.decode(reader, reader.uint32()));
|
|
55420
55431
|
break;
|
|
55421
55432
|
}
|
|
55433
|
+
case 14: {
|
|
55434
|
+
message.displayVersion = reader.string();
|
|
55435
|
+
break;
|
|
55436
|
+
}
|
|
55422
55437
|
default:
|
|
55423
55438
|
reader.skipType(tag & 7);
|
|
55424
55439
|
break;
|
|
@@ -55527,6 +55542,9 @@
|
|
|
55527
55542
|
return "formatters." + error;
|
|
55528
55543
|
}
|
|
55529
55544
|
}
|
|
55545
|
+
if (message.displayVersion != null && message.hasOwnProperty("displayVersion"))
|
|
55546
|
+
if (!$util.isString(message.displayVersion))
|
|
55547
|
+
return "displayVersion: string expected";
|
|
55530
55548
|
return null;
|
|
55531
55549
|
};
|
|
55532
55550
|
|
|
@@ -55613,6 +55631,8 @@
|
|
|
55613
55631
|
message.formatters[i] = $root.replit.goval.api.FormatterOption.fromObject(object.formatters[i]);
|
|
55614
55632
|
}
|
|
55615
55633
|
}
|
|
55634
|
+
if (object.displayVersion != null)
|
|
55635
|
+
message.displayVersion = String(object.displayVersion);
|
|
55616
55636
|
return message;
|
|
55617
55637
|
};
|
|
55618
55638
|
|
|
@@ -55645,6 +55665,7 @@
|
|
|
55645
55665
|
object.buildType = "";
|
|
55646
55666
|
object.resolvedId = "";
|
|
55647
55667
|
object.referencedId = "";
|
|
55668
|
+
object.displayVersion = "";
|
|
55648
55669
|
}
|
|
55649
55670
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
55650
55671
|
object.id = message.id;
|
|
@@ -55690,6 +55711,8 @@
|
|
|
55690
55711
|
for (var j = 0; j < message.formatters.length; ++j)
|
|
55691
55712
|
object.formatters[j] = $root.replit.goval.api.FormatterOption.toObject(message.formatters[j], options);
|
|
55692
55713
|
}
|
|
55714
|
+
if (message.displayVersion != null && message.hasOwnProperty("displayVersion"))
|
|
55715
|
+
object.displayVersion = message.displayVersion;
|
|
55693
55716
|
return object;
|
|
55694
55717
|
};
|
|
55695
55718
|
|
|
@@ -73978,6 +74001,7 @@
|
|
|
73978
74001
|
case 0:
|
|
73979
74002
|
case 1:
|
|
73980
74003
|
case 2:
|
|
74004
|
+
case 3:
|
|
73981
74005
|
break;
|
|
73982
74006
|
}
|
|
73983
74007
|
if (message.presenced != null && message.hasOwnProperty("presenced")) {
|
|
@@ -74107,10 +74131,14 @@
|
|
|
74107
74131
|
case 1:
|
|
74108
74132
|
message.format = 1;
|
|
74109
74133
|
break;
|
|
74110
|
-
case "
|
|
74134
|
+
case "MUXED":
|
|
74111
74135
|
case 2:
|
|
74112
74136
|
message.format = 2;
|
|
74113
74137
|
break;
|
|
74138
|
+
case "RIVER":
|
|
74139
|
+
case 3:
|
|
74140
|
+
message.format = 3;
|
|
74141
|
+
break;
|
|
74114
74142
|
}
|
|
74115
74143
|
if (object.presenced != null) {
|
|
74116
74144
|
if (typeof object.presenced !== "object")
|
|
@@ -74716,13 +74744,15 @@
|
|
|
74716
74744
|
* @enum {number}
|
|
74717
74745
|
* @property {number} PROTOBUF=0 PROTOBUF value
|
|
74718
74746
|
* @property {number} JSON=1 JSON value
|
|
74719
|
-
* @property {number}
|
|
74747
|
+
* @property {number} MUXED=2 MUXED value
|
|
74748
|
+
* @property {number} RIVER=3 RIVER value
|
|
74720
74749
|
*/
|
|
74721
74750
|
ReplToken.WireFormat = (function() {
|
|
74722
74751
|
var valuesById = {}, values = Object.create(valuesById);
|
|
74723
74752
|
values[valuesById[0] = "PROTOBUF"] = 0;
|
|
74724
74753
|
values[valuesById[1] = "JSON"] = 1;
|
|
74725
|
-
values[valuesById[2] = "
|
|
74754
|
+
values[valuesById[2] = "MUXED"] = 2;
|
|
74755
|
+
values[valuesById[3] = "RIVER"] = 3;
|
|
74726
74756
|
return values;
|
|
74727
74757
|
})();
|
|
74728
74758
|
|