@replit/protocol 0.3.38 → 0.3.40
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/gen.sh +0 -12
- package/main/index.d.ts +6 -0
- package/main/index.js +23 -0
- package/package.json +1 -2
- package/iotester/index.js.flow +0 -2947
- package/main/index.js.flow +0 -48599
package/gen.sh
CHANGED
|
@@ -39,15 +39,3 @@ fi
|
|
|
39
39
|
sed -i.bak 's/constructor(/private constructor(/' "${TARGET}.d.ts"
|
|
40
40
|
|
|
41
41
|
rm -f "${TARGET}.d.ts.bak"
|
|
42
|
-
flowgen \
|
|
43
|
-
--interface-records \
|
|
44
|
-
--no-inexact \
|
|
45
|
-
--add-flow-header \
|
|
46
|
-
--output-file "${TARGET}.js.flow" "${TARGET}.d.ts"
|
|
47
|
-
|
|
48
|
-
if [ "$MODE" = "fix" ]; then
|
|
49
|
-
sed -i.bak 's/declare var replit: typeof npm\$namespace\$replit;/export var replit = npm$namespace$replit;/' "${TARGET}.js.flow"
|
|
50
|
-
sed -i.bak 's/declare var google: typeof npm\$namespace\$google;/export var google = npm$namespace$google;/' "${TARGET}.js.flow"
|
|
51
|
-
sed -i.bak 's/declare export { api };/export var api = npm$namespace$replit$goval$api;/' "${TARGET}.js.flow"
|
|
52
|
-
rm -f "${TARGET}.js.flow.bak"
|
|
53
|
-
fi
|
package/main/index.d.ts
CHANGED
|
@@ -24887,6 +24887,9 @@ export namespace replit {
|
|
|
24887
24887
|
|
|
24888
24888
|
/** ReplToken pid2Info */
|
|
24889
24889
|
pid2Info?: (replit.goval.api.repl.Pid2Binary|replit.goval.api.repl.IPid2Binary|null);
|
|
24890
|
+
|
|
24891
|
+
/** ReplToken paid */
|
|
24892
|
+
paid?: (boolean|null);
|
|
24890
24893
|
}
|
|
24891
24894
|
|
|
24892
24895
|
/** Represents a ReplToken. */
|
|
@@ -24949,6 +24952,9 @@ export namespace replit {
|
|
|
24949
24952
|
/** ReplToken pid2Info. */
|
|
24950
24953
|
public pid2Info?: (replit.goval.api.repl.Pid2Binary|null);
|
|
24951
24954
|
|
|
24955
|
+
/** ReplToken paid. */
|
|
24956
|
+
public paid: boolean;
|
|
24957
|
+
|
|
24952
24958
|
/** ReplToken metadata. */
|
|
24953
24959
|
public metadata?: ("repl"|"id"|"classroom");
|
|
24954
24960
|
|
package/main/index.js
CHANGED
|
@@ -62634,6 +62634,7 @@
|
|
|
62634
62634
|
* @property {Array.<replit.goval.api.features.Feature|replit.goval.api.features.IFeature>|null} [features] ReplToken features
|
|
62635
62635
|
* @property {replit.goval.api.repl.BuildInfo|replit.goval.api.repl.IBuildInfo|null} [buildInfo] ReplToken buildInfo
|
|
62636
62636
|
* @property {replit.goval.api.repl.Pid2Binary|replit.goval.api.repl.IPid2Binary|null} [pid2Info] ReplToken pid2Info
|
|
62637
|
+
* @property {boolean|null} [paid] ReplToken paid
|
|
62637
62638
|
*/
|
|
62638
62639
|
|
|
62639
62640
|
/**
|
|
@@ -62788,6 +62789,14 @@
|
|
|
62788
62789
|
*/
|
|
62789
62790
|
ReplToken.prototype.pid2Info = null;
|
|
62790
62791
|
|
|
62792
|
+
/**
|
|
62793
|
+
* ReplToken paid.
|
|
62794
|
+
* @member {boolean} paid
|
|
62795
|
+
* @memberof replit.goval.api.ReplToken
|
|
62796
|
+
* @instance
|
|
62797
|
+
*/
|
|
62798
|
+
ReplToken.prototype.paid = false;
|
|
62799
|
+
|
|
62791
62800
|
// OneOf field names bound to virtual getters and setters
|
|
62792
62801
|
var $oneOfFields;
|
|
62793
62802
|
|
|
@@ -62862,6 +62871,8 @@
|
|
|
62862
62871
|
$root.replit.goval.api.repl.BuildInfo.encode(message.buildInfo, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
|
|
62863
62872
|
if (message.pid2Info != null && Object.hasOwnProperty.call(message, "pid2Info"))
|
|
62864
62873
|
$root.replit.goval.api.repl.Pid2Binary.encode(message.pid2Info, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
|
|
62874
|
+
if (message.paid != null && Object.hasOwnProperty.call(message, "paid"))
|
|
62875
|
+
writer.uint32(/* id 20, wireType 0 =*/160).bool(message.paid);
|
|
62865
62876
|
return writer;
|
|
62866
62877
|
};
|
|
62867
62878
|
|
|
@@ -62968,6 +62979,10 @@
|
|
|
62968
62979
|
message.pid2Info = $root.replit.goval.api.repl.Pid2Binary.decode(reader, reader.uint32());
|
|
62969
62980
|
break;
|
|
62970
62981
|
}
|
|
62982
|
+
case 20: {
|
|
62983
|
+
message.paid = reader.bool();
|
|
62984
|
+
break;
|
|
62985
|
+
}
|
|
62971
62986
|
default:
|
|
62972
62987
|
reader.skipType(tag & 7);
|
|
62973
62988
|
break;
|
|
@@ -63113,6 +63128,9 @@
|
|
|
63113
63128
|
if (error)
|
|
63114
63129
|
return "pid2Info." + error;
|
|
63115
63130
|
}
|
|
63131
|
+
if (message.paid != null && message.hasOwnProperty("paid"))
|
|
63132
|
+
if (typeof message.paid !== "boolean")
|
|
63133
|
+
return "paid: boolean expected";
|
|
63116
63134
|
return null;
|
|
63117
63135
|
};
|
|
63118
63136
|
|
|
@@ -63248,6 +63266,8 @@
|
|
|
63248
63266
|
throw TypeError(".replit.goval.api.ReplToken.pid2Info: object expected");
|
|
63249
63267
|
message.pid2Info = $root.replit.goval.api.repl.Pid2Binary.fromObject(object.pid2Info);
|
|
63250
63268
|
}
|
|
63269
|
+
if (object.paid != null)
|
|
63270
|
+
message.paid = Boolean(object.paid);
|
|
63251
63271
|
return message;
|
|
63252
63272
|
};
|
|
63253
63273
|
|
|
@@ -63281,6 +63301,7 @@
|
|
|
63281
63301
|
object.interactiveResourceLimits = null;
|
|
63282
63302
|
object.buildInfo = null;
|
|
63283
63303
|
object.pid2Info = null;
|
|
63304
|
+
object.paid = false;
|
|
63284
63305
|
}
|
|
63285
63306
|
if (message.iat != null && message.hasOwnProperty("iat"))
|
|
63286
63307
|
object.iat = $root.google.protobuf.Timestamp.toObject(message.iat, options);
|
|
@@ -63331,6 +63352,8 @@
|
|
|
63331
63352
|
object.buildInfo = $root.replit.goval.api.repl.BuildInfo.toObject(message.buildInfo, options);
|
|
63332
63353
|
if (message.pid2Info != null && message.hasOwnProperty("pid2Info"))
|
|
63333
63354
|
object.pid2Info = $root.replit.goval.api.repl.Pid2Binary.toObject(message.pid2Info, options);
|
|
63355
|
+
if (message.paid != null && message.hasOwnProperty("paid"))
|
|
63356
|
+
object.paid = message.paid;
|
|
63334
63357
|
return object;
|
|
63335
63358
|
};
|
|
63336
63359
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@replit/protocol",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.40",
|
|
4
4
|
"description": "JavaScript bindings for the Replit protocol",
|
|
5
5
|
"main": "main/index.js",
|
|
6
6
|
"repository": "https://github.com/replit/protocol",
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
"protobufjs": "^7.2.5"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"flowgen": "~1.21.0",
|
|
20
19
|
"protobufjs-cli": "^1.1.2"
|
|
21
20
|
}
|
|
22
21
|
}
|