@replit/protocol 0.2.80 → 0.2.81
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 +2 -1
- package/main/index.js +12 -0
- package/main/index.js.flow +1 -0
- package/package.json +1 -1
package/main/index.d.ts
CHANGED
|
@@ -21272,7 +21272,8 @@ export namespace replit {
|
|
|
21272
21272
|
enum Persistence {
|
|
21273
21273
|
PERSISTENT = 0,
|
|
21274
21274
|
EPHEMERAL = 1,
|
|
21275
|
-
NONE = 2
|
|
21275
|
+
NONE = 2,
|
|
21276
|
+
READ_ONLY = 3
|
|
21276
21277
|
}
|
|
21277
21278
|
|
|
21278
21279
|
/** Properties of a Metadata. */
|
package/main/index.js
CHANGED
|
@@ -45553,6 +45553,7 @@
|
|
|
45553
45553
|
case 0:
|
|
45554
45554
|
case 1:
|
|
45555
45555
|
case 2:
|
|
45556
|
+
case 3:
|
|
45556
45557
|
break;
|
|
45557
45558
|
}
|
|
45558
45559
|
if (message.repl != null && message.hasOwnProperty("repl")) {
|
|
@@ -45664,6 +45665,10 @@
|
|
|
45664
45665
|
case 2:
|
|
45665
45666
|
message.persistence = 2;
|
|
45666
45667
|
break;
|
|
45668
|
+
case "READ_ONLY":
|
|
45669
|
+
case 3:
|
|
45670
|
+
message.persistence = 3;
|
|
45671
|
+
break;
|
|
45667
45672
|
}
|
|
45668
45673
|
if (object.repl != null) {
|
|
45669
45674
|
if (typeof object.repl !== "object")
|
|
@@ -52942,12 +52947,14 @@
|
|
|
52942
52947
|
* @property {number} PERSISTENT=0 PERSISTENT value
|
|
52943
52948
|
* @property {number} EPHEMERAL=1 EPHEMERAL value
|
|
52944
52949
|
* @property {number} NONE=2 NONE value
|
|
52950
|
+
* @property {number} READ_ONLY=3 READ_ONLY value
|
|
52945
52951
|
*/
|
|
52946
52952
|
repl.Persistence = (function() {
|
|
52947
52953
|
var valuesById = {}, values = Object.create(valuesById);
|
|
52948
52954
|
values[valuesById[0] = "PERSISTENT"] = 0;
|
|
52949
52955
|
values[valuesById[1] = "EPHEMERAL"] = 1;
|
|
52950
52956
|
values[valuesById[2] = "NONE"] = 2;
|
|
52957
|
+
values[valuesById[3] = "READ_ONLY"] = 3;
|
|
52951
52958
|
return values;
|
|
52952
52959
|
})();
|
|
52953
52960
|
|
|
@@ -53175,6 +53182,7 @@
|
|
|
53175
53182
|
case 0:
|
|
53176
53183
|
case 1:
|
|
53177
53184
|
case 2:
|
|
53185
|
+
case 3:
|
|
53178
53186
|
break;
|
|
53179
53187
|
}
|
|
53180
53188
|
if (message.flags != null && message.hasOwnProperty("flags")) {
|
|
@@ -53236,6 +53244,10 @@
|
|
|
53236
53244
|
case 2:
|
|
53237
53245
|
message.persistence = 2;
|
|
53238
53246
|
break;
|
|
53247
|
+
case "READ_ONLY":
|
|
53248
|
+
case 3:
|
|
53249
|
+
message.persistence = 3;
|
|
53250
|
+
break;
|
|
53239
53251
|
}
|
|
53240
53252
|
if (object.flags) {
|
|
53241
53253
|
if (!Array.isArray(object.flags))
|
package/main/index.js.flow
CHANGED
|
@@ -30256,6 +30256,7 @@ declare var replit$goval$api$repl$Persistence: {|
|
|
|
30256
30256
|
+PERSISTENT: 0, // 0
|
|
30257
30257
|
+EPHEMERAL: 1, // 1
|
|
30258
30258
|
+NONE: 2, // 2
|
|
30259
|
+
+READ_ONLY: 3, // 3
|
|
30259
30260
|
|};
|
|
30260
30261
|
|
|
30261
30262
|
/**
|