@replit/protocol 0.2.48 → 0.2.51
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 +6 -0
- package/main/index.js +22 -0
- package/main/index.js.flow +10 -0
- package/package.json +2 -2
package/main/index.d.ts
CHANGED
|
@@ -8744,6 +8744,9 @@ export namespace api {
|
|
|
8744
8744
|
|
|
8745
8745
|
/** OTPacket nonce */
|
|
8746
8746
|
nonce?: (number|null);
|
|
8747
|
+
|
|
8748
|
+
/** OTPacket userId */
|
|
8749
|
+
userId?: (number|null);
|
|
8747
8750
|
}
|
|
8748
8751
|
|
|
8749
8752
|
/** Represents a OTPacket. */
|
|
@@ -8773,6 +8776,9 @@ export namespace api {
|
|
|
8773
8776
|
/** OTPacket nonce. */
|
|
8774
8777
|
public nonce: number;
|
|
8775
8778
|
|
|
8779
|
+
/** OTPacket userId. */
|
|
8780
|
+
public userId: number;
|
|
8781
|
+
|
|
8776
8782
|
/**
|
|
8777
8783
|
* Creates a new OTPacket instance using the specified properties.
|
|
8778
8784
|
* @param [properties] Properties to set
|
package/main/index.js
CHANGED
|
@@ -22765,6 +22765,7 @@
|
|
|
22765
22765
|
* @property {number|null} [crc32] OTPacket crc32
|
|
22766
22766
|
* @property {google.protobuf.Timestamp|google.protobuf.ITimestamp|null} [committed] OTPacket committed
|
|
22767
22767
|
* @property {number|null} [nonce] OTPacket nonce
|
|
22768
|
+
* @property {number|null} [userId] OTPacket userId
|
|
22768
22769
|
*/
|
|
22769
22770
|
|
|
22770
22771
|
/**
|
|
@@ -22830,6 +22831,14 @@
|
|
|
22830
22831
|
*/
|
|
22831
22832
|
OTPacket.prototype.nonce = 0;
|
|
22832
22833
|
|
|
22834
|
+
/**
|
|
22835
|
+
* OTPacket userId.
|
|
22836
|
+
* @member {number} userId
|
|
22837
|
+
* @memberof api.OTPacket
|
|
22838
|
+
* @instance
|
|
22839
|
+
*/
|
|
22840
|
+
OTPacket.prototype.userId = 0;
|
|
22841
|
+
|
|
22833
22842
|
/**
|
|
22834
22843
|
* Creates a new OTPacket instance using the specified properties.
|
|
22835
22844
|
* @function create
|
|
@@ -22867,6 +22876,8 @@
|
|
|
22867
22876
|
writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.version);
|
|
22868
22877
|
if (message.nonce != null && Object.hasOwnProperty.call(message, "nonce"))
|
|
22869
22878
|
writer.uint32(/* id 6, wireType 0 =*/48).uint32(message.nonce);
|
|
22879
|
+
if (message.userId != null && Object.hasOwnProperty.call(message, "userId"))
|
|
22880
|
+
writer.uint32(/* id 7, wireType 0 =*/56).uint32(message.userId);
|
|
22870
22881
|
return writer;
|
|
22871
22882
|
};
|
|
22872
22883
|
|
|
@@ -22921,6 +22932,9 @@
|
|
|
22921
22932
|
case 6:
|
|
22922
22933
|
message.nonce = reader.uint32();
|
|
22923
22934
|
break;
|
|
22935
|
+
case 7:
|
|
22936
|
+
message.userId = reader.uint32();
|
|
22937
|
+
break;
|
|
22924
22938
|
default:
|
|
22925
22939
|
reader.skipType(tag & 7);
|
|
22926
22940
|
break;
|
|
@@ -22982,6 +22996,9 @@
|
|
|
22982
22996
|
if (message.nonce != null && message.hasOwnProperty("nonce"))
|
|
22983
22997
|
if (!$util.isInteger(message.nonce))
|
|
22984
22998
|
return "nonce: integer expected";
|
|
22999
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
23000
|
+
if (!$util.isInteger(message.userId))
|
|
23001
|
+
return "userId: integer expected";
|
|
22985
23002
|
return null;
|
|
22986
23003
|
};
|
|
22987
23004
|
|
|
@@ -23020,6 +23037,8 @@
|
|
|
23020
23037
|
}
|
|
23021
23038
|
if (object.nonce != null)
|
|
23022
23039
|
message.nonce = object.nonce >>> 0;
|
|
23040
|
+
if (object.userId != null)
|
|
23041
|
+
message.userId = object.userId >>> 0;
|
|
23023
23042
|
return message;
|
|
23024
23043
|
};
|
|
23025
23044
|
|
|
@@ -23044,6 +23063,7 @@
|
|
|
23044
23063
|
object.committed = null;
|
|
23045
23064
|
object.version = 0;
|
|
23046
23065
|
object.nonce = 0;
|
|
23066
|
+
object.userId = 0;
|
|
23047
23067
|
}
|
|
23048
23068
|
if (message.spookyVersion != null && message.hasOwnProperty("spookyVersion"))
|
|
23049
23069
|
object.spookyVersion = message.spookyVersion;
|
|
@@ -23060,6 +23080,8 @@
|
|
|
23060
23080
|
object.version = message.version;
|
|
23061
23081
|
if (message.nonce != null && message.hasOwnProperty("nonce"))
|
|
23062
23082
|
object.nonce = message.nonce;
|
|
23083
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
23084
|
+
object.userId = message.userId;
|
|
23063
23085
|
return object;
|
|
23064
23086
|
};
|
|
23065
23087
|
|
package/main/index.js.flow
CHANGED
|
@@ -12327,6 +12327,11 @@ declare type api$IOTPacket = {|
|
|
|
12327
12327
|
* OTPacket nonce
|
|
12328
12328
|
*/
|
|
12329
12329
|
nonce?: number | null,
|
|
12330
|
+
|
|
12331
|
+
/**
|
|
12332
|
+
* OTPacket userId
|
|
12333
|
+
*/
|
|
12334
|
+
userId?: number | null,
|
|
12330
12335
|
|};
|
|
12331
12336
|
|
|
12332
12337
|
/**
|
|
@@ -12369,6 +12374,11 @@ declare class api$OTPacket {
|
|
|
12369
12374
|
*/
|
|
12370
12375
|
nonce: number;
|
|
12371
12376
|
|
|
12377
|
+
/**
|
|
12378
|
+
* OTPacket userId.
|
|
12379
|
+
*/
|
|
12380
|
+
userId: number;
|
|
12381
|
+
|
|
12372
12382
|
/**
|
|
12373
12383
|
* Creates a new OTPacket instance using the specified properties.
|
|
12374
12384
|
* @param [properties] Properties to set
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@replit/protocol",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.51",
|
|
4
4
|
"description": "JavaScript bindings for the Replit protocol",
|
|
5
5
|
"main": "main/index.js",
|
|
6
6
|
"repository": "https://github.com/replit/protocol",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"build:main": "TARGET='./main/index' ./gen.sh ../types.proto ../client.proto ../signing.proto"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"protobufjs": "^6.
|
|
16
|
+
"protobufjs": "^6.11.3"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"flowgen": "^1.13.0"
|